In Oracle RAC databases, for cluster operations, errors can be received because the crsd process is stopped or suspended. In this case, it should check the crsd process, then kill and start it again.
If crs is not running, it will be necessary to start crs. (crsctl start crs)
For example, when you check the scan listener status, the following error will be taken.
1 2 3 4 5 6 |
-bash-4.3$ . oraenv ORACLE_SID = [oracle] ? +ASM1 The Oracle base remains unchanged with value /u01/app/oracle -bash-4.3$ srvctl status scan_listener PRCR-1068 : Failed to query resources Cannot communicate with crsd |
First, check whether the crsd process is started. If you have only “grep crs” as follows, it is probably stopped.
1 2 |
-bash-4.3$ ps -ef|grep crs oracle 17958388 7210848 0 18:26:50 pts/0 0:00 grep crs |
If the crs service is still running, process id information should be detected and terminated with “kill -9”.
1 2 3 |
-bash-4.3$ ps -ef|grep crs oracle 65208528 42599586 0 18:45:50 pts/0 0:00 grep crs root 47841838 1 0 18:28:10 - 0:05 /u01/app/11.2.0/grid/bin/crsd.bin reboot |
1 |
-bash-4.3$ kill -9 47841838 |
Then we can start as follows.
1 2 3 |
-bash-4.3$ crsctl start res ora.crsd -init CRS-2672: Attempting to start 'ora.crsd' on 'oradb1' CRS-2676: Start of 'ora.crsd' on 'oradb1' succeeded |
The results should be similar to the following when we check.
1 2 3 4 5 6 7 8 9 10 11 12 |
-bash-4.3$ crsctl check cluster -all ************************************************************** oradb1: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ************************************************************** oradb2: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ************************************************************** |
With the following command, ensure that the cluster resources that must be ONLINE are ONLINE.
1 |
-bash-4.3$ crsctl stat res -t |