Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

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

Note: After successfully changed the HTTPS Port by command mode, Therefore you need to update the EM Console Service with New Port by using the GUI OEM Console.

Fallow the below steps:

1. From the Targets menu, select All Targets.
2. In the Search Target Name text box, enter EM Console Service, and click the search icon.
3. In the search results table, click EM Console Service.
4. On the EM Console Service page, from the EM Service menu, select Administration, then select Service Tests and Beacons.
5. On the Service Tests and Beacons page, in the Service Tests table, select EM Console Service Test, and click Edit.
6. On the Edit Service Test: EM Console Service Test page, in the Transaction section, in the Steps table, select Access Login Page.
7. On the Edit Step: Access Login page, in the Request section, in the URL text box, change the port in the URL.
8. Click Continue.
9. Click OK.
10. On the Security Configuration page, click Yes.

=====Hence tested & verified in our test env======