Customizing HTTPS Console and Upload Ports After Installing Enterprise Manager Grid/Cloud Control

One of my blog readers asked me how we can change the ports of Grid Control after install. Yes it’s possible to change the ports after installing EM Grid Control and it’s well documented for Enterprise Manager Cloud control. I tested if these steps are valid for Grid Control and it worked. I think no one uses insecure ports so I’ll show how I will set Oracle Enterprise Manager (secure) web site port to 8000 and “secure/https upload port” to 2000 on Oracle Enterprise Manager Grid Control 11g:

First we need to stop OMS:

Then modify the port information in repository:

Modify the ports in the configuration files (/oracle/gc_inst/em/EMGC_OMS1/emgc.properties):

Change values of EM_CONSOLE_HTTPS_PORT (Oracle Enterprise Manager web console port) and EM_UPLOAD_HTTPS_PORT (upload port used by agents)

Edit SSL configuration of Apache (/oracle/gc_inst/WebTierIH1/config/OHS/ohs1/ssl.conf ) and find “Listen 7799” and “VirtualHost *:7799” and enter new port numbers:

Edit SSL configuration of EM Upload service (/oracle/gc_inst/WebTierIH1/config/OHS/ohs1/httpd_em.conf), find the following lines:

and enter new port numbers:

Now you can start OMS. Of course you also need to modify agent configuration if you change upload ports. The agent configuration file can be found at $AGENT_INSTANCE_HOME/sysman/config/emd.properties. Open it and search for REPOSITORY_URL.

Modify its value according to your new OMS upload port:

Please share this post Share on Facebook11Share on Google+0Share on LinkedIn0Share on Reddit0Tweet about this on Twitter

Gokhan Atil is a database architect who has hands-on experience with both RDBMS and noSQL databases (Oracle, PostgreSQL, Microsoft SQL Server, Sybase IQ, MySQL, Cassandra, MongoDB and ElasticSearch), and strong background on software development. He is certified as Oracle Certified Professional (OCP) and is awarded as Oracle ACE (in 2011) and Oracle ACE Director (in 2016) for his continuous contributions to the Oracle users community.

13 Comments

  1. Kunal

    hi,
    I have configured a standby oms to my primary oms in 12c. however the https console port for oms and http console port for oms has changed in standby site and do not match primary oms. agent upload port and other configuration is same except the ports.
    When I use the steps above to change ports at standby site I get following error
    “Input oms_name is invalid. Management Server with this name does not exists”
    I also tried with -oms_name local_oms but getting same error. please advise.

  2. amith

    can any one give me good document to create stand by oms, I have already built my 3 node prod oms, now I want to have the standby oms for that 3 nodes
    thanks,
    Amith

  3. IrvingHunk

    Hello Gokhan,

    I just did this last night in EM12c R4 and after restarting I started to get error

    “Failed to find OMS details: null java.lang.NullPointerException”

    while trying to get OMS status. After several hours of being struggling and looking for a solution, I found this which saved me from reinstalling after hours of frustration. In case somebody face the same issue.

    https://community.oracle.com/thread/2476946?tstart=0

    Thank you for the time you spend helping out others!!

  4. Thomas Beetz

    Hi,

    i try to change oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort to 2000 (from 7802) and for cloudcontrol 12.1.0.4 and it doesn’t work, oracle linux 6.5. I change the property and the ssl.conf file. Now i use iptables.

    If someone have time for a test, i’ll be interested in your results.

    Best Regards

    Thomas

  5. Nico

    Thanks again. Yes. Again. Your blog has been a great source of information to manager OEM.
    That’s exactly what I needed.

     

  6. Nico

    During the installation, for the default port used, the documentation says the following for the EM console:

    The first available free port from the range 7799 – 7809 is selected.

    I had a port 7803 but I don’t have anything else running on that server. Does it scan the network ? I do have a 7799 running on another gridcontrol.

     

     

  7. Nico

    I have been working with 13.1 since last week.

    ssl.conf is now located here : /gc_inst/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/instances/ohs1/

    -bash-4.2$ grep -r “7803”
    user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/ssl.conf:Listen 7803 #OHS_SSL_PORT

    user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/ssl.conf:<VirtualHost *:7803> #OHS_SSL_VH

Leave Comment

Your email address will not be published. Required fields are marked *