# Listener in INTERMEDIATE status with Not All Endpoints
# APPLIES TO
Operating System - Oracle Linux Server 7.9
Oracle Database - Enterprise Edition - Version 11.2.0.4.0
Oracle Grid Infrastructure - Version 11.2.0.4.0
# SYMPTOMS
crsctl stat res -t shows the listeners are in INTERMEDIATE status on node 1.
ora.LISTENER.lsnr | |
ONLINE INTERMEDIATE rac1 Not All Endpoints R | |
egistered | |
ONLINE ONLINE rac2 | |
ora.LISTENER_SCAN1.lsnr | |
1 ONLINE ONLINE rac2 | |
ora.LISTENER_SCAN2.lsnr | |
1 ONLINE INTERMEDIATE rac1 Not All Endpoints R | |
egistered |
# CAUSE
The problem is caused by another listener defined statically in listener.ora, using the same port and IP is running from the RDBMS ORACLE_HOME, started manually causing the default listener starting from GRID_HOME can not register its endpoint.
- Node 1 (Incorrect LISTENER started in RDBMS ORACLE_HOME):
~]# ps aux | grep [t]ns | |
root 21 0.0 0.0 0 0 ? I< 09:46 0:00 [netns] | |
oracle 5896 0.0 0.4 243228 8112 ? Ssl 10:23 0:00 /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inherit | |
grid 6007 0.0 0.9 216972 19112 ? Ssl 10:24 0:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit | |
grid 6158 0.0 0.9 216972 19268 ? Ssl 10:25 0:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit | |
~]# cat /u01/app/11.2.0/grid/network/admin/listener.ora | |
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent | |
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent | |
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent |
- Node 2:
~]# ps aux | grep [t]ns | |
root 21 0.0 0.0 0 0 ? I< 09:46 0:00 [netns] | |
grid 5405 0.0 0.9 217240 20256 ? Ssl 10:20 0:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit | |
grid 5755 0.0 1.0 217504 21672 ? Ssl 10:25 0:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit | |
~]# cat /u01/app/11.2.0/grid/network/admin/listener.ora | |
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent | |
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent | |
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent | |
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent |
# SOLUTION
From 11.2 on wards, all listeners should be running from GRID_HOME, listener and listener_scan
- Stop the listener running from RDBMS ORACLE_HOME.
~]$ /u01/app/oracle/product/11.2.0/db_1/bin/lsnrctl stop LISTENER |
- Stop the listener from GRID_HOME.
~]$ /u01/app/11.2.0/grid/bin/srvctl stop listener -n rac1 | |
~]$ /u01/app/11.2.0/grid/bin/srvctl stop scan_listener -i 2 |
If above command fails to stop the tnslsnr process, please use kill -9 <pid of tnslsnr> to stop the LISTENER and LISTENER_SCANn process.
Remove any manually added LISTENER definition from listener.ora if it exists.
restart the LISTENER and LISTENER_SCAN1 from GRID_HOME
~]$ /u01/app/11.2.0/grid/bin/srvctl start listener -n rac1 | |
~]$ /u01/app/11.2.0/grid/bin/srvctl start scan_listener -i 2 |
- Check
crsctl stat res -toutput, they both should show ONLINE status now.
# REFERENCE
・ Listener in INTERMEDIATE status with "Not All Endpoints Registered" (Doc ID 1454439.1) |
・ Not All Endpoints Registered for SCAN Listener (Doc ID 2391077.1) |
・ [SCAN] Listener In INTERMEDIATE Mode - "Not All Endpoints Registered" or "MONITOR DISABLED" (Doc ID 1667873.1) |