In this post, you will know how to change the Listener Port In Oracle RAC. We can change some listener ports from 1521 to 1525 on a RAC.
1. Check the listener status

[oracle@node1 ~]$ srvctl status listener -l LISTENER
Listener LISTENER is enabled
Listener LISTENER is running on node(s): node1,node2

2. Modify the listener

[oracle@node1 ~]$ srvctl modify listener -l LISTENER -p 1525

3. Bounce the listener

[oracle@node1 ~]$ srvctl stop listener
[oracle@node1 ~]$ srvctl start listener

4. Change the MGMTDB listener

[oracle@node1 ~]$ srvctl status listener -l MGMTLSNR
Listener MGMTLSNR is enabled
Listener MGMTLSNR is running on node(s): node1
[oracle@node1 ~]$ srvctl modify listener -l MGMTLSNR -p 1525

5. Restart the MGMTDB listener
Had to also restart the MGMTDB database before restarting the listener

[oracle@node1 ~]$ srvctl stop MGMTLSNR
PRCR-1065 : Failed to stop resource ora.MGMTLSNR
CRS-2529: Unable to act on 'ora.MGMTLSNR' because that would require stopping or relocating 'ora.mgmtdb', but the force option was not specified

If above error occured, then we need to stop MGMTDB also.

[oracle@node1 ~]$ srvctl stop MGMTDB
[oracle@node1 ~]$ srvctl stop MGMTLSNR
[oracle@node1 ~]$ srvctl start MGMTLSNR
[oracle@node1 ~]$ srvctl start MGMTDB

6. Scan Listener already at 1525

[oracle@node1 ~]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
Registration invited nodes:
Registration invited subnets:
SCAN Listener is enabled.
SCAN Listener is individually enabled on nodes:
SCAN Listener is individually disabled on nodes:
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1525
Registration invited nodes:
Registration invited subnets:
SCAN Listener is enabled.
SCAN Listener is individually enabled on nodes:
SCAN Listener is individually disabled on nodes:
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1525
Registration invited nodes:
Registration invited subnets:
SCAN Listener is enabled.
SCAN Listener is individually enabled on nodes:
SCAN Listener is individually disabled on nodes:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.