How to change the existing Https Port from OEM 13.5C
Posted by Mir Sayeed Hassan on July 28th, 2021
How to change the existing Https Port from OEM 13.5C
First you need to verify the existing https console port used in OEM Server
[oracle(oemsw)@cloudctl bin]$ ./emctl get property -name oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. SYSMAN password: Value for property oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort for oms cloudctl:4889_Management_Service is 7803
If you want more information about the OEM Ports are used in server, Issue the below command
[oracle(oemsw)@cloudctl bin]$ ./emctl status oms -details Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : cloudctl HTTP Console Port : 7788 HTTPS Console Port : 7803 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /u02/OEM13.5C/gc_inst/em/EMGC_OMS1 OMS Log Directory Location : /u02/OEM13.5C/gc_inst/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://cloudctl:7803/em Upload URL: https://cloudctl:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : cloudctl Admin Server HTTPS Port: 7102 Admin Server is RUNNING Oracle Management Server Information Managed Server Instance Name: EMGC_OMS1 Oracle Management Server Instance Host: cloudctl WebTier is Up Oracle Management Server is Up JVMD Engine is Up
Stop the current running OMS from $OMS Bin Location
[oracle(oemsw)@cloudctl ~]$ cd /u02/OEM13.5C/middleware/bin/
[oracle(oemsw)@cloudctl bin]$ ./emctl stop oms Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. Stopping Oracle Management Server... Oracle Management Server Successfully Stopped Oracle Management Server is Down JVMD Engine is Down
Change the https console port, example: from 7803 to 7802
[oracle(oemsw)@cloudctl bin]$ ./emctl set property -name oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort -value 7802 Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. SYSMAN password: ********* Property oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort for oms cloudctl:4889_Management_Service has been set to value 7802 OMS restart is required to reflect the new property value
Backup the emgc.properties & ssl.conf as shown below
[oracle(oemsw)@cloudctl ~]$ cd /u02/OEM13.5C/gc_inst/em/EMGC_OMS1
[oracle(oemsw)@cloudctl EMGC_OMS1]$ ls emgc.properties sysman
[oracle(oemsw)@cloudctl EMGC_OMS1]$ cp emgc.properties emgc.properties_bkp
[oracle(oemsw)@cloudctl ~]$ cd /u02/OEM13.5C/gc_inst/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/ [oracle(oemsw)@cloudctl ohs1]$ cp ssl.conf ssl.conf_bkp
Update the files emgc.properties & ssl.conf
[oracle(oemsw)@cloudctl ~]$ vi /u02/OEM13.5C/gc_inst/em/EMGC_OMS1/emgc.properties From: EM_CONSOLE_HTTPS_PORT=7803 To: EM_CONSOLE_HTTPS_PORT=7802
[oracle(oemsw)@cloudctl ~]$ vi /u02/OEM13.5C/gc_inst/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/ssl.conf From: Listen 7803 #OHS_SSL_PORT . . #OHS_SSL_VH To: Listen 7802 #OHS_SSL_PORT . . #OHS_SSL_VH
Stop the OMS
[oracle(oemsw)@cloudctl bin]$ ./emctl stop oms -all -force Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. Stopping Oracle Management Server... WebTier Successfully Stopped Oracle Management Server Already Stopped AdminServer Successfully Stopped Oracle Management Server is Down JVMD Engine is Down
Start the OMS
[oracle(oemsw)@cloudctl bin]$ ./emctl start oms Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. Starting Oracle Management Server... WebTier Successfully Started Oracle Management Server Successfully Started Oracle Management Server is Up JVMD Engine is Up
Verify the new https console port is using on OMS Server
[oracle(oemsw)@cloudctl bin]$ ./emctl get property -name oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort Oracle Enterprise Manager Cloud Control 13c Release 5 Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved. SYSMAN password: Value for property oracle.sysman.emSDK.svlt.EMConsoleServerHTTPSPort for oms cloudctl:4889_Management_Service is 7802