How to stop the RAC cluster for maintenance?
Before you shut down any processes that are monitored by Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime, rather than an unplanned system outage.
Shut down all Oracle RAC instances on all nodes. To shut down all Oracle RAC instances for a database, enter the following command, where db_name is the name of the database:
$ORACLE_HOME/bin/srvctl stop database -d db_name
Shut down all ASM instances on all nodes. To shut down an ASM instance, enter the following command, where node is the name of the node where the ASM instance is running:
$ORACLE_HOME/bin/srvctl stop asm -n node
Stop all node applications on all nodes. To stop node applications running on a node, enter the following command,where node is the name of the node where the applications are running
$ORACLE_HOME/bin/srvctl stop nodeapps -n node
Log in as the root user, and shut down the Oracle Clusterware or CRS process by entering the following command on all nodes:
#CRS_HOME/bin/crsctl stop crs # as root
or
#CRS_HOME/bin/crsctl stop cluster (11gR2 only) # as root
Starting the Cluster:
# CRS_HOME/bin/crsctl start crs # as root
# CRS_HOME/bin/crsctl start Cluster(11gR2 only) # as root
$ORACLE_HOME/bin/srvctl start nodeapps -n node
$ORACLE_HOME/bin/srvctl start asm -n node
$ORACLE_HOME/bin/srvctl start database -d db_name # will start all instances of the Database
Before you shut down any processes that are monitored by Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime, rather than an unplanned system outage.
Shut down all Oracle RAC instances on all nodes. To shut down all Oracle RAC instances for a database, enter the following command, where db_name is the name of the database:
$ORACLE_HOME/bin/srvctl stop database -d db_name
Shut down all ASM instances on all nodes. To shut down an ASM instance, enter the following command, where node is the name of the node where the ASM instance is running:
$ORACLE_HOME/bin/srvctl stop asm -n node
Stop all node applications on all nodes. To stop node applications running on a node, enter the following command,where node is the name of the node where the applications are running
$ORACLE_HOME/bin/srvctl stop nodeapps -n node
Log in as the root user, and shut down the Oracle Clusterware or CRS process by entering the following command on all nodes:
#CRS_HOME/bin/crsctl stop crs # as root
or
#CRS_HOME/bin/crsctl stop cluster (11gR2 only) # as root
Starting the Cluster:
# CRS_HOME/bin/crsctl start crs # as root
# CRS_HOME/bin/crsctl start Cluster(11gR2 only) # as root
$ORACLE_HOME/bin/srvctl start nodeapps -n node
$ORACLE_HOME/bin/srvctl start asm -n node
$ORACLE_HOME/bin/srvctl start database -d db_name # will start all instances of the Database
No comments:
Post a Comment