Oracle Clustware Command Line Tools in RAC

++++++++Command Line Tools to administer Oracle Clusterware in RAC 10G++++++++

Below are some more  frequently used command line tools list, and we will discuss about each one by one:

crsctl

crs_stat     –shows current status of list of resources

ocrconfig
ocrcheck
ocrdump
srvctl
oifcfgcrs_profile   — creates and edit a resource profile
crs_register  —  adds the resource to the list of applications managed by CRS
crs_setperm   —  crs_start     —  starts the resources as per their profile
crs_relocate  —  moves resource to another node of the cluster
crs_stop      —  Stops the resources
crs_unregister — removes the resource from the monitoring scope of CRS.

—-crsctl

crsctl stop crs  –stop Oracle Clusterware
crsctl start crs  –start Oracle Clusterware
crsctl disable crs   –disable Oracle Clusterware from being started in a subsequent reboot.
crsctl enable crs   –enable Oracle Clusterware from being started in a subsequent reboot.

–To add a new voting disk:

# crsctl add css votedisk <new voting_disk_path>

–To remove a voting disk:

# crsctl delete css votedisk <voting_disk_path>

–If Oracle Clustware is  down on all nodes, we can use "force" option:

# crsctl add css votedisk <new voting_disk_path> -force
# crsctl delete css votedisk <voting_disk_path> -force

Backup and Recovery of Voting Disks:

NOTE:
1.crsctl commands should run from root user.
2.Voting disk configuration can be changed dynamically.

 

—crs_stat


crs_stat  –shows current status of list of resources.(deprecated in 11G RAC and has been replaced by 'crsctl status resource')
crs_stat -t -show all your named resource's status which  are currently under Cluster control
crs_stat -p <resource_name> –print the OCR contents for the named resource.

NOTE:- Applications which are managed by CRS are called
RAC "Resources"(such as: Database Instance,ASM instance,Listeners,VIPs,Services,ONS,GSD)

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply