Wednesday, August 12, 2009

Check enable/disable the startup of the Oracle Clusterware daemons


We can use crsctl commands as follows to enable and disable the startup of the Oracle Clusterware daemons. Run the following command to enable startup for all of the Oracle Clusterware daemons:
crsctl enable crs
Run the following command to disable the startup of all of the Oracle Clusterware daemons:
crsctl disable crs
Indeed... Oracle Document told me like that. But How can I know enable/disable startup status for all of the Oracle Clusterware daemons now?

I know... someone don't need to know because they can run "crsctl enable/disable crs" again and again.

Oracle has scls_scr directory at /etc/oracle path. We can check about enable/disable startup status of the Oracle Clusterware daemons at crsstart file in /etc/oracle/scls_scr/<hostname>/root/ path.

really? example:

root@rac1# cat /etc/oracle/scls_scr/rac1/root/crsstart
enable

root@rac1# cd CRS_HOME/bin

root@rac1# ./crsctl disable crs
root@rac1# cat /etc/oracle/scls_scr/rac1/root/crsstart
disable

after disabled by "crsctl disable crs", crsstart file was changed be "disable"

root@rac1# ./crsctl enable crs
root@rac1# cat /etc/oracle/scls_scr/rac1/root/crsstart
enable

after enabled by "crsctl enable crs", crsstart file was changed be "enable"

that justs idea ;)

2 comments:

Anonymous said...

Great article and explanation - helped us troubleshoot why clusterware would not automatically restart on 1 of 3 database servers.

Anonymous said...

Excellent! Very good explanation on the topic.