Friday 11 September 2015

How to disable auto restart of CRS in oracle 10G and 11GR1

Check the present seeings in below folder

/etc/oracle/scls_scr/NODE_NAME/root/ in LINUX & AIX

/var/opt/oracle/scls_scr/NODE_NAME/root in SOLARIS

Step 1
=======
To know the current settings ( note the first word from the second line has the word "ENABLE")

node_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#cat crsstart
enablenode_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#

Step 2
========
Disable the autostart
( Note : if any other way to auto-start via shell script / Vertias Cluster is enabled need to disable that as well)

node_rac1(nus917pg) $ cd /opt/app/crs/bin
node_rac1(nus917pg) $ ./crsctl disable crs
node_rac1(nus917pg) $

Step 3
===========
 ( note the first word from the second line has the word "DISABLE")


node_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#cat crsstart
disablenode_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#

Step 4
===========
To reenable the crs auto restart

node_rac1(nus917pg) $ cd /opt/app/crs/bin
node_rac1(nus917pg) $ ./crsctl enable crs
node_rac1(nus917pg) $


Step 5
===========
To check the enabled status.
 ( note the first word from the second line has the word "DISABLE")

node_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#ls -lrt crsstart
-rw-r--r--   1 root     root           7 Sep 12 05:17 crsstart
node_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#cat crsstart
enablenode_rac1:DB_PROD1:/var/opt/oracle/scls_scr/node_rac1/root#


Before Implementing in Production this must be tested in your test enviroment