CRSCTL is an interface between you and Oracle Clusterware, parsing and calling Oracle Clusterware APIs for Oracle Clusterware objects.

Oracle Clusterware 11g release 2 (11.2) introduces cluster-aware commands with which you can perform check, start, and stop operations on the cluster. You can run these commands from any node in the cluster on another node in the cluster, or on all nodes in the cluster, depending on the operation.

You can use CRSCTL commands to perform several operations on Oracle Clusterware, such as:

  • Starting and stopping Oracle Clusterware resources
  • Enabling and disabling Oracle Clusterware daemons
  • Checking the health of the cluster
  • Managing resources that represent third-party applications
  • Integrating Intelligent Platform Management Interface (IPMI) with Oracle Clusterware to provide failure isolation support and to ensure cluster integrity
  • Debugging Oracle Clusterware components
  1. STOP & START CRS: ( run from root user)

$GRID_HOME/bin/crsctl stop crs

$GRID_HOME/bin/crsctl start crs

  1. Enable/Disable auto restart of CRS.

$GRID_HOME/bin/crsctl disable crs

$GRID_HOME/bin/crsctl enable crs

  1. Find the cluster name

$GRID_HOME/bin/cemutlo -n

or

$GRID_HOME/bin/olsnodes -c

  1. Find grid version:

SYNATX – $GRID_HOME/bin/crsctl query crs softwareversion <hostname)

$GRID_HOME/bin/crsctl query crs softwareversion host-dbaclass1

  1. check cluster component status

$GRID_HOME/bin/crsctl stat res -t

$GRID_HOME/bin/crsctl check crs

$GRID_HOME/bin/crsctl check cssd

$GRID_HOME/bin/crsctl check crsd

$GRID_HOME/bin/crsctl check evmd

  1. Find voting disk location

$GRID_HOME/bin/crsctl query cssvotedisk

  1. Find OCR location:

$GRID_HOME/bin/ocrcheck

  1. Find cluster interconnect details

$GRID_HOME/bin/oifcfg getif

app-ipmp0 172.21.39.128 global public
loypredbib0 172.16.3.192 global cluster_interconnect
loypredbib1 172.16.4.0 global cluster_interconnect

select NAME,IP_ADDRESS from v$cluster_interconnects;

NAME IP_ADDRESS
————— —————-
loypredbib0 172.16.3.193
loypredbib1 172.16.4.1

  1. Check CRS status of local node 

crsctl check crs

CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

  1. Check status of all crs resources

$GRID_HOME/bin/crsctl stat res -t

  1. Check active version of cluster

crsctl query crs active version
Oracle Clusterware active version on the cluster is [12.1.0.2.0]

  1. Stop and start high availability service ( HAS)

crsctl check cluster

  1. Check CRS status of remote nodes

crsctl check cluster

  1. Disk timeout from node to voting disk(disktimeout)

crsctl get css disktimeout
CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services

  1. Network latency in the node interconnect (Misscount)

crsctl get css misscount
CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.

  1. Move voting disk to another diskgroup:

crsctl replace votedisk +OCRVD
Successful addition of voting disk 2e4ded6cee504fc8bf078b080fb7be6f.
Successful addition of voting disk 8e87826024e24fffbf5add65c011fc66.
Successful addition of voting disk e1ba56dedff84fa8bf5605e0302fc81e.
Successful deletion of voting disk 2b7ce864c44d4fecbf60885a188290af.
Successfully replaced voting disk group with +OCRVD.
CRS-4266: Voting file(s) successfully replaced

  1. Add another voting disk:

crsctl add css votedisk

18 . Get ocr disk backup details

ocrconfig -showbackup

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: www.linkedin.com/in/SirDBaaSJoelPerez

Anuradha’s LinkedIn: https://www.linkedin.com/in/dbaanuradhamudgal/

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Leave a Reply