Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

How to Auto Start CRS after on Reboot Server

Posted by Mir Sayeed Hassan on December 22nd, 2021

How to Auto Start CRS after on Reboot Server

I wanted to restart the CRS automatically after reboot the server., By default the CRS AUTO_START is never.

You need to configure the AUTO_START=always., Fallow the below steps.

Check the current status of CRS on server

[root@pri-db bin]# ./crsctl stat res ora.cssd -p | grep AUTO_START
AUTO_START=never
[root@pri-db bin]# ./crsctl stat res ora.asm -p | grep AUTO_START
AUTO_START=restore

Login as root & verify the cssd is running or not

Goto the GRID Bin location

[root@pri-db ~]# cd /u01/app/19c/grid/bin/
[root@pri-db bin]# ./crsctl status res ora.cssd -init
NAME=ora.cssd
TYPE=ora.cssd.type
TARGET=ONLINE
STATE=ONLINE on pri-db

In case if its not running start using below command.

[root@pri-db bin]# ./crsctl start res ora.cssd -init

Verify

[root@pri-db bin]# ps -ef | grep cssd.bin
oracle 34765 1 0 13:22 ? 00:00:03 /u01/app/19c/grid/bin/ocssd.bin
root 40633 5501 0 13:42 pts/0 00:00:00 grep --color=auto cssd.bin

Login to the oracle user & check the asm status

[oracle@pri-db ~]$ srvctl status asm
ASM is running on pri-db

In case if its not running., start the asm

[oracle@pri-db ~]$ srvctl start asm

Check the status of CRS & ASM

[oracle@pri-db bin]$ ./crsctl stat res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ORADATA.dg
ONLINE ONLINE pri-db STABLE
ora.asm
ONLINE ONLINE pri-db Started,STABLE
ora.ons
OFFLINE OFFLINE pri-db STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE pri-db STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE pri-db STABLE
--------------------------------------------------------------------------------

As of now CRS & ASM is running fine., lets modify the AUTO_START Parameter to always

Login as root & goto the Grid Bin location and issue

[root@pri-db ~]# cd /u01/app/19c/grid/bin/

If you are using the ASM as single instance., issue the below command

[root@pri-db bin]# ./crsctl modify resource "ora.cssd" -init -attr "AUTO_START=always"
[root@pri-db bin]# ./crsctl modify resource "ora.asm" -init -attr "AUTO_START=always"
[root@pri-db bin]# ./crsctl modify resource "ora.db" -init -attr "AUTO_START=always"

If you are using as ASM as Cluster., Issue below command

[root@pri-db bin]# ./crsctl modify resource "ora.cssd" -attr "AUTO_START=always"
[root@pri-db bin]# ./crsctl modify resource "ora.asm" -attr "AUTO_START=always"
[root@pri-db bin]# ./crsctl modify resource "ora.db" -attr "AUTO_START=always"

Verify

[root@pri-db bin]# ./crsctl stat res ora.asm -p | grep AUTO_START
AUTO_START=always
[root@pri-db bin]# ./crsctl stat res ora.cssd -p | grep AUTO_START
AUTO_START=always
[root@pri-db bin]# ./crsctl stat res ora.db -p | grep AUTO_START
AUTO_START=always

NOTE:

always: starts the resource ONLINE automatically after the node server restart.
restore: remains the resource state as same as when the node server was shutdown, which means, if it was ONLINE/OFFLINE, then restarts the resource as ONLINE/OFFLINE.
never: does not restart the resource after node server restart.

[root@pri-db bin]#

Now let’s Reboot the server & Verify

=====Hence tested & verified in our env=====