How to add a port to a service in firewalld

This post shows how to add port 5000 into filrewalld for Oracle Autonomous Health Framework (AHF) running on GI/RAC.

  1. List existing services:
    # firewall-cmd –get-services
  2. Add the port: If the service you want to modify already exists, use the following command to add the port: 

    # firewall-cmd –permanent –add-port=<port>/<protocol> –service=<service-name>
    eg.

    #firewall-cmd –permanent –add-port=5000/tcp –service=oracle_rac
  3. Reload firewalld: After making changes, reload firewalld to apply the new configuration:

    # firewall-cmd –reload
  4. Check the port added into service:

    # firewall-cmd –info-service=oracle_rac
    oracle_rac
    ports: 1521/tcp 5000/tcp
    protocols:
    source-ports:
    modules:
    destination:
    includes:
    helpers:

Step by Step Installing Oracle 12c GI and RAC on Linux 7 Using VirtualBox

Great start to build your own RAC with detailed instructions and explanations. For building 18c/19c/20c GI/RAC, this post is still helpful. After completing this lab, you should be in better position as an Oracle RAC DBA.

Contents

Introduction

This article describes the detailed step by step installation of Oracle Database 12c  (12.1.0.2 64-bit) GI and RAC on Linux (Oracle Linux 7.1 64-bit) using VirtualBox (5.0.10). It applies to Oracle 18c and 19c GI and RAC as well.

Subscribe to get access

Read more of this content when you subscribe today.