Print Scan Listener status

  • All RAC listeners [ Listener , ASM Listener, SCAN listener ]  should be owned by GRID
  • Therefore run the commands mentioned below as GRID user
$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521

$ srvctl status  scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node grac2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node grac1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node grac1

$  nslookup GRACE2-scan
Server:        192.168.1.55
Address:    192.168.1.55#53

Name:    GRACE2-scan.grid.example.com
Address: 192.168.1.108
Name:    GRACE2-scan.grid.example.com
Address: 192.168.1.109
Name:    GRACE2-scan.grid.example.com
Address: 192.168.1.110

Print the SCAN listener status
$ lsnrctl  status LISTENER_SCAN2
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 19-MAR-2014 19:42:23
Copyright (c) 1991, 2013, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN2
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                19-MAR-2014 18:51:05
Uptime                    0 days 0 hr. 51 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11204/grid/network/admin/listener.ora
Listener Log File         /u01/app/11204/grid/log/diag/tnslsnr/grac41/listener_scan2/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.170)(PORT=1521)))
Services Summary...
Service "grac4" has 3 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
  Instance "grac42", status READY, has 1 handler(s) for this service...
  Instance "grac43", status READY, has 1 handler(s) for this service...
Service "grac41" has 1 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
Service "grac42" has 1 instance(s).
  Instance "grac42", status READY, has 1 handler(s) for this service...
Service "grac43" has 1 instance(s).
  Instance "grac43", status READY, has 1 handler(s) for this service...
Service "grac4XDB" has 3 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
  Instance "grac42", status READY, has 1 handler(s) for this service...
  Instance "grac43", status READY, has 1 handler(s) for this service...
Service "report" has 1 instance(s).
  Instance "grac42", status READY, has 1 handler(s) for this service...
The command completed successfully

Print the local listener status
[grid@grac41 ~]$ lsnrctl status 
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 19-MAR-2014 19:42:42
Copyright (c) 1991, 2013, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                19-MAR-2014 17:05:46
Uptime                    0 days 2 hr. 36 min. 57 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11204/grid/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/grac41/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.101)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.167)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "grac4" has 1 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
Service "grac41" has 1 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
Service "grac4XDB" has 1 instance(s).
  Instance "grac41", status READY, has 1 handler(s) for this service...
The command completed successfully

Monitor RAC Listener at OS level:
[oracle@hract21 ~]$ ps -elf |grep tns
0 S grid      6511     1  0  80   0 - 42965 ...  /u01/app/121/grid/bin/tnslsnr LISTENER -no_crs_notify -inherit
0 S grid      9375     1  0  80   0 - 42932 ...  /u01/app/121/grid/bin/tnslsnr ASMNET1LSNR_ASM -no_crs_notify -inherit
0 S grid      9500     1  0  80   0 - 43036 ...  /u01/app/121/grid/bin/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit

2 thoughts on “Print Scan Listener status”

Leave a Reply

Your email address will not be published. Required fields are marked *