CRSCTL Commands for Managing Oracle Clusterware Services
This guide provides essential CRSCTL commands for managing Oracle Clusterware services, including starting, stopping, and checking the status of components, as well as managing voting disks, OCR, and cluster configurations.
Task | Command |
---|---|
1. Stop & Start CRS (run from root user) | $GRID_HOME/bin/crsctl stop crs $GRID_HOME/bin/crsctl start crs |
2. Enable/Disable Auto Restart of CRS | $GRID_HOME/bin/crsctl disable crs $GRID_HOME/bin/crsctl enable crs |
3. Find Cluster Name | $GRID_HOME/bin/cemutlo -n $GRID_HOME/bin/olsnodes -c |
4. Find Grid Version | $GRID_HOME/bin/crsctl query crs softwareversion <hostname> |
5. 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 |
6. Find Voting Disk Location | $GRID_HOME/bin/crsctl query css votedisk |
7. Find OCR Location | $GRID_HOME/bin/ocrcheck |
8. Find Cluster Interconnect Details | $GRID_HOME/bin/oifcfg getif SELECT NAME, IP_ADDRESS FROM v$cluster_interconnects; |
9. Check CRS Status of Local Node | crsctl check crs |
10. Check Status of All CRS Resources | $GRID_HOME/bin/crsctl stat res -t $GRID_HOME/bin/crsctl stat res -t -init |
11. Check Active Version of Cluster | crsctl query crs activeversion |
12. Stop & Start High Availability Service | crsctl stop has crsctl start has |
13. Check CRS Status of Remote Nodes | crsctl check cluster crsctl check cluster -all |
14. Disk Timeout from Node to Voting Disk | crsctl get css disktimeout |
15. Network Latency in Node Interconnect | crsctl get css misscount |
16. Move Voting Disk to Another Diskgroup | crsctl replace votedisk +OCRVD |
17. Add Another Voting Disk | crsctl add css votedisk |
18. Delete Voting Disk | crsctl delete css votedisk |
19. Get OCR Disk Backup Details | ocrconfig -showbackup |
20. Check Whether Standard or Flex ASM | crsctl get cluster mode status |
21. Check CRS Configuration | crsctl config crs |
22. Find Cluster Configuration Information | crsctl get cluster configuration |
23. Find Node Roles in Cluster | crsctl get node role status -all |
24. CRSCTL Commands for Standalone Grid Infrastructure | crsctl check has crsctl config has crsctl disable has crsctl enable has crsctl query has releaseversion crsctl query has softwareversion crsctl start has crsctl stop has |