10g RAC Management Commands

Posted By Sagar Patil

crs_stat -t Shows HA resource status
crsstat Ouptut of crs_stat -t formatted nicely
ps -ef|grep d.bin crsd.bin evmd.bin ocssd.bin
crsctl check crs CSS,CRS,EVM appears healthy
crsctl stop crs Stop crs and all other services
crsctl disable crs* Prevents CRS from starting on reboot
crsctl enable crs* Enables CRS start on reboot
crs_stop -all Stops all registered resources
crs_start -all Starts all registered resources
srvctl start instance -d <db_name> -i <inst_name> Starts an instance
srvctl start database -d <db_name> Starts all instances
srvctl stop database -d <db_name> Stops all instances, closes database
srvctl stop instance -d <db_name> -i <inst_name> Stops an instance
srvctl start service -d <db_name> -s <service_name> Starts a service
srvctl stop service -d <db_name> -s <service_name> Stops a service
srvctl status service -d <db_name> Checks status of a service
srvctl status instance -d <db_name> -i <inst_name> Checks an individual instance
srvctl status database -d <db_name> Checks status of all instances
srvctl start nodeapps -n <node_name> Starts gsd, vip, listener, and ons
srvctl stop nodeapps -n <node_name> Stops gsd, vip and listener

Clusterware can be started and stopped manually by issuing the command /etc/init.d/init.crs (start stop enable disable)
1. /etc/rc.d/init.d/init.evmd
2. /etc/rc.d/init.d/init.cssd
3. /etc/rc.d/init.d/init.crsd
Once the above processes are running, they will automatically start the following services in the following order if they are enabled. This list assumes you are using ASM and have a service set up for TAF/load balancing.
1. The nodeapps (gsd, VIP, ons, listener) are brought online.
2. The ASM instances are brought online.
3. The database instances are brought online.
4. Any defined services are brought online

crsctl check crs

[oracle@wygora01 ~]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

crsctl stop crs

crsctl disable crs :  This command will prevent CRS from starting on a reboot

Sequence of events to bring cluster database online
1. Start all services using “start -nodeapps”
2. Start ASM instnace using “srvctl start asm -n (node)”
3. Start RAC instances using “srvctl start instance -d (database) -I (instance)”
4. Finish up by bringing our load balanced/TAF service online “srvctl start service -d orcl -s RAC”

Locate Nodes in Cluster/ Interconnect IPs used

[oracle@wygora02 ~]$ /u01/crs/oracle/product/10/crs/bin/olsnodes -n -p
wygora01 1 wygorapriv01
wygora02 2 wygorapriv02

[oracle@wygora02 ~]$ /u01/crs/oracle/product/10/crs/bin/oifcfg getif
bond0 10.13.100.0 global public
bond2 172.16.2.0 global cluster_interconnect

Leave a Reply

You must be logged in to post a comment.

Top of Page

Top menu