Reprinted: Oracle RAC cluster startup and shutdown

http://www.cnblogs.com/yhfssp/p/8184761.html

Oracle 11G RAC cluster startup and shutdown:
1. Stop the database
$srvctl stop database –d oradb
2. Stop the cluster service
Shutting down the cluster requires root to run
#/u01/11.2.0/grid/bin/crsctl stop cluster -all --stop all node services
#/u01/11.2.0/grid/bin/crsctl stop cluster --Stop this node service
or
To stop HAS (High Availability Services), you must be the root user  
[root@rac1 oracle]# cd /u01/grid/11.2.0/grid/bin
[root@rac1 bin]# ./crsctl stop has –f -- stop this node service
or
/u01/app/11.2.0/grid/bin/crsctl stop crs

1. Start the cluster service
#/u01/11.2.0/grid/bin/crsctl start cluster -- will start the database
or
#/u01/11.2.0/grid/bin/crsctl start has -- start the database
or
#/u01/11.2.0/grid/bin/crsctl start crs
--------------------------------------------------------------------------

Oracle 10G RAC cluster startup and shutdown:
1. Use the crs_stat -t -v command to query whether the service status of the RAC node is normal
2. Use the srvctl (service control) command to turn off cluster services in turn
Shutdown sequence: close the database (instance) --> close the ASM instance --> close the node service
1) Close the database
srvctl stop database -d oradb
2) Close the ASM instance of each node

srvctl stop asm -n oradb1

srvctl stop asm -n oradb2
3) The services of closing each node include: listener, gsd, ons, vip
srvctl stop nodeapps -n oradb1

srvctl stop nodeapps -n oradb2
3. Use the srvctl (service control) command to start the cluster services in turn
Startup sequence: start node service --> start ASM instance --> start database instance
1) Start the service of each node
srvctl start nodeapps -n oradb1

srvctl start nodeapps -n oradb2
2) Start the ASM instance
srvctl start asm -n oradb1

srvctl start asm -n oradb2
3) Start the database and instance
srvctl start database -d oradb

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325858135&siteId=291194637