How to bring down 11g RAC Environment

Oracle RAC

How to bring down 11g RAC Environment

rac1>su – oracle

$ps -ef|grep smon
$export ORACLE_SID=hrms1
$sqlplus
>show parameter cluster
>exit

rac1>$emctl ORACLE_UNQNAME=hrms1
$emctl stop dbconsole
$srvctl stop database -d hrms
$exit

rac1>#su – grid
$crsctl check crs
$crsctl check cluster
$crsctl check cluster -all

rac1>srvctl status asm
$srvctl status nodeapps
$crsctl stop crs (error)

rac1># cd /u01/product/11.2.0/grid_home/bin
bin># ./crsctl stop crs
bin>#./crsctl disable crs
#ps -ef | grep smon

# ssh rac2
rac2>cd /u01/product/11.2.0/grid_home/bin
bin>./crsctl stop crs
#./crsctl disable crs

dns>ifconfig -a
#service named stop
#init 0 (for shutting down the system)