Tuesday, December 1, 2015

IMPORTANT RAC COMMANDS

$crsctl check cluster              check the status for a local node
$crsctl check cluster -all         check the status for all nodes

#crsctl stop cluster                stops the cluster on local nodes

#crsctl stop cluster -all           stops the cluster on all the  nodes
#crsctl start cluster                starts the cluster on local nodes
#crsctl start cluster  -all        starts the cluster on all nodes
#crsctl stop crs                stops the cluster including OHAS
#crsctl start crs               start the cluster stack
#crsctl quert css votedisk      check the status of voting disk
#crsctl quert crs activeversion      check the status of crs version
#crsctl status resource -t            list of resources running on the cluster
#crsctl status resource -t -init            list of background process for the resources
#crs_stat-t-v            list of resources running on the cluster


OCR RELATED COMMANDS
==================
#ocrcheck    check the status of OCR
#ocrdump     takes the dump of the OCR
#ocrconfig -export Take the export of OCR
#ocrconfig-showbackup     shows the OCR backup
#ocrconfig manual backup    take the OCR manual backup
#ocrconfig - replace ocr<filename>  Add OCR
#ocrconfig - replace ocrmirror<filename>  Add OCR mirror
#ocrconfig - delete  delete a file

RESOURCE RELATED COMMANDS
=======================
$srvctl config database  -d <databasename>    describes the database configuration
$srvctl status scan-lister
$srvctl status listener
srvctl start/stop  listener/scan-listener
$srvctl status database -d <databasename>     status of database
$srvctl stop database -d <databasename>     stops database
$srvctl start database -d <databasename>     starts database
$srvctl start instance -i <instance>  -d <databasename>     start instance
$srvctl stop instance -i <instance>  -d <databasename>     stops instance

SERVICE RELATED COMMANDS

$srvctl status service -d <dbname>
$srvctl stop service -s servicename -d <dbname>
$srvctl start service -s servicename -d <dbname>
$srvctl config service -s servicename -d <dbname>
$srvctl relocate service
$srvctl modify service



=====================================================================================






No comments:

Post a Comment