Oracle RAC normal restart sequence:
Oracle 10g rac:
Generally, the 10g RAC (ASM) Switch sequence is as follows:
1) Stop Oracle RAC 10g environment
Stop the Oracle instance first. When this instance (and related services) is closed, the ASM instance is closed.
Finally, close the node application (virtual IP, GSD, TNS Listener, and ONS ).
$ Export ORACLE_SID = escdb1
$ Emctl stop dbconsole
$ Srvctl stop instance-d ecsdb-I ecsdb1
$ Srvctl stop asm-n ecsrac01
$ Srvctl stop nodeapps-n ecsrac01
2) Start the Oracle RAC 10g environment
The first step is to start the node application (virtual IP, GSD, TNS Listener, and ONS ). After the node application is successfully started,
Start the ASM instance. Finally, start the Oracle instance (related services) and the Enterprise Manager Database Console.
$ Export ORACLE_SID = ecsdb1
$ Srvctl start nodeapps-n ecsrac01
$ Srvctl start asm-n ecsrac01
$ Srvctl start instance-d ecsdb-I ecsdb1
$ Emctl start dbconsole
However, in 11g rac, 10G commands can be used for database and instance shutdown, and srvctl stop asm-n ecsrac01 can be used for shutdown.
If there is a problem with asm, close and report an error.
Oracle 11g rac:
1. Close the database first:
Oracle $ srvctl stop database-d rac (set the database name as needed)
2. Disable the crs service.
[Root @ rac1 ~] #/Opt/11202/11 .2.0/grid/bin/crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora. crsd' on 'rac1'
CRS-2790: starting to close resources managed by cluster ready service on 'rac1'
CRS-2673: Try to stop 'ora. c1' (on 'rac1)
CRS-2673: Try to stop 'ora. gsd' (on 'rac1)
CRS-2673: Try to stop 'ora. DATA1.dg '(on 'rac1)
CRS-2673: Try to stop 'ora. DATA2.dg '(on 'rac1)
CRS-2673: Try to stop 'ora. LISTENER. lsnr '(on 'rac1)
CRS-2673: Try to stop 'ora. YANGQL. lsnr '(on 'rac1)
CRS-2677: 'ora. YANGQL. lsnr 'is stopped successfully (on 'rac1)
CRS-2677: 'ora. LISTENER. lsnr 'is stopped successfully (on 'rac1)
CRS-2673: Try to stop 'ora. rac1.vip '(on 'rac1)
CRS-2677: 'ora. rac1.vip 'is stopped successfully (on 'rac1)
CRS-2672: Try to start 'ora. rac1.vip '(on 'rac2)
CRS-2677: 'ora. gsd' stopped successfully (on 'rac1)
CRS-2676: 'ora. rac1.vip 'started successfully (on 'rac2)
CRS-2677: 'ora. DATA2.dg 'stopped successfully (on 'rac1)
CRS-2677: 'ora. c1' stopped successfully (on 'rac1)
CRS-2672: Try to start 'ora. c1' (on 'rac2)
CRS-2677: 'ora. DATA1.dg 'stopped successfully (on 'rac1)
CRS-2673: Try to stop 'ora. asm '(on 'rac1)
CRS-2677: successfully stopped 'ora. asm '(on 'rac1)
CRS-2676: successfully started 'ora. c1' (on 'rac2)
CRS-2673: Try to stop 'ora. ons' (on 'rac1)
CRS-2677: 'ora. ons' stopped successfully (on 'rac1)
CRS-2673: Try to stop 'ora. net1.network' (on 'rac1)
CRS-2677: 'ora. net1.network' stopped successfully (on 'rac1)
CRS-2792: The operation to close the resources managed by cluster-ready services on 'rac1' has been completed
CRS-2677: Stop of 'ora. crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora. crf' on 'rac1'
CRS-2673: Attempting to stop 'ora. ctssd 'on 'rac1'
CRS-2673: Attempting to stop 'ora. evmd 'on 'rac1'
CRS-2673: Attempting to stop 'ora. asm 'on 'rac1'
CRS-2673: Attempting to stop 'ora. mdnsd' on 'rac1'
CRS-2677: Stop of 'ora. evmd 'on 'rac1' succeeded
CRS-2677: Stop of 'ora. asm 'on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora. cluster_interconnect.haip 'on 'rac1'
CRS-2677: Stop of 'ora. crf' on 'rac1' succeeded
CRS-2677: Stop of 'ora. mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora. cluster_interconnect.haip 'on 'rac1' succeeded
CRS-2677: Stop of 'ora. ctssd 'on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.css d' on 'rac1'
CRS-2677: Stop of 'ora.css d' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora. gipcd 'on 'rac1'
CRS-2673: Attempting to stop 'ora. diskmon 'on 'rac1'
CRS-2677: Stop of 'ora. diskmon' on 'rac1' succeeded
CRS-2677: Stop of 'ora. gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora. gpnpd 'on 'rac1'
CRS-2677: Stop of 'ora. gpnpd 'on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
In 11g, the ocr service information in 11.2.0.2 is stored on the asm disk and depends on asm. Therefore, disable crs instead of directly disabling the asm instance.