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:
/oracle/Middleware/oms11g/bin/emctl stop oms -all
Then modify the port information in repository:
/oracle/Middleware/oms11g/bin/emctl set property -name \ oracle.sysman.emSDK.svlt.ConsoleServerHTTPSPort -value 2000 /oracle/Middleware/oms11g/bin/emctl set property -name \ oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort -value 8000
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)
EM_CONSOLE_HTTPS_PORT=8000 EM_UPLOAD_HTTPS_PORT=2000
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:
# OHS Listen Port Listen 8000 <VirtualHost *:8000>
Edit SSL configuration of EM Upload service (/oracle/gc_inst/WebTierIH1/config/OHS/ohs1/httpd_em.conf), find the following lines:
<IfDefine SSL> Listen 1159 <VirtualHost *:1159>
and enter new port numbers:
<IfDefine SSL> Listen 2000 <VirtualHost *:2000>
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:
REPOSITORY_URL=https://gridcontrol11.gokhanatil.com:2000/em/upload