These steps were tested on a 11.2 Oracle clusterware/ 11.2 Oracle database. When you run srvctl you will perform an operation for the database or for the cluster. If the operation if related to the database you must use the srvctl command from the ORACLE_HOME, and if the operation is related to the cluster, you must use the srvctl from the GRID_HOME.
1. Ensure that you are logged in as the root Linux/ UNIX user.
If you are not connected as root OS user, you must switch to the oracle OS user
su - root
2. Start (startup) the Oracle cluster stack
su - root
cd $CRS_HOME/bin
# ./crsctl start crs (must be run on each node)
3. Startup (start) all Oracle ASM instances on all nodes. (If you are not using the ASM you must skip this step.)
su - oracle (you must be logged as oracle)
To shut down an Oracle ASM instance, enter the following command, where node_name is the name of the node where the Oracle ASM instance is running: $ oracle_home/bin/srvctl start asm -n node_name
4. Startup (start) 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: $ srvctl start database -d db_name (srvctl from ORACLE_HOME) (this command is starting all the instances)
5. Startup (start) all applications using the Oracle database.
This step includes stopping (shutting down) the Oracle Enterprise Manager Database Control:
$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dev1rac.mfol.dgti.ro:1158/em/console/aboutApplication Stopping Oracle Enterprise Manager 11g Database Control ... ... Stopped.
Attention: In previous releases of Oracle Database, you were required to set environment variables for ORACLE_HOME and ORACLE_SID to start, stop, and check the status
of Enterprise Manager. With Oracle Database 11g release 2 (11.2) and later, you need to set the environment variables ORACLE_HOME and ORACLE_UNQNAME to use or manage the Enterprise Manager.
export ORACLE_UNQNAME=GlobalUniqueName
If you want to check if the Entreprise Manager Database Console is running or not:
emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dev1rac:1158/em/console/aboutApplication EM Daemon is not running.
emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. https://dev1rac:1158/em/console/aboutApplication Oracle Enterprise Manager 11g is running.