LISTENER SCAN LISTENERS
#######################################
Two Types of Listener
#######################################
1) Local listener called "LISTENER"
2) SCAN Listener called "LISTENER_SCAN1/2/3"
Check using this must list SCAN_LISTENER and LISTENER
ps -ef | grep -i listener
they must be running from the GRID Home
LISTENER
==============
srvctl start/stop/status listener will stop LISTENER on local node
srvctl start/stop/status scan_listener will stop LISTENER_SCAN1/2/3 on ALL local node
Note: services are registered in all Listeners
Check
========
1) Service is running or Not [use srvctl status service -d pcfxm]
2) Does Listener Knows about the Service [use lsnrctl ]
lsnrctl services LISTENER
lsnrctl services LISTENER_SCAN1
lsnrctl services LISTENER_SCAN2
lsnrctl services LISTENER_SCAN3
srvctl config scan_listener
========================================================================
[oracle@orastby01a:/apps/crs/12.2.0.1/bin]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node orastby01a
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node orastby02a
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node orastby02a
============= Services ============
only one command
lsnrctl services
srvctl add database -d dbname -o /apps/oracle/product/11.2.0.4/db
srvctl add instance -d dbname -i pcfxm1 -n orastby01a
srvctl add instance -d dbname -i pcfxm2 -n orastby02a
srvctl add service -d dbname -s vinservice -r pcfxm1 -a pcfxm2
srvctl add service -d dbname -s oilservice -r pcfxm1 -a pcfxm2
srvctl add service -d dbname -s gasservice -r pcfxm1 -a pcfxm2