Managing Oracle Clusterware CRS
Essential commands for starting, stopping, checking, and monitoring CRS services
Note: Start/stop need to be run as root from the CRS home
SQL Code
Start CRS
1crsctl start crs
Stop CRS
1crsctl stop crs
Check CRS's status
1crsctl check crs
See the status of the various services
1crs_stat -t
Sample Oracle Output
1
2no rows selected
3SQL>
Description of the Oracle Database SQL code
Purpose:
- To manage the lifecycle and monitor the health of Oracle Clusterware (CRS), the foundational infrastructure for Oracle Real Application Clusters (RAC) and other high availability solutions.
Breakdown of Commands:
crsctl start crsPurpose: Starts the entire Oracle Clusterware stack on the local node.
Key Points:
- Crucial for restoring CRS functionality after planned or unplanned outages.
- Must be run as root.
crsctl stop crsPurpose: Stops the entire Oracle Clusterware stack on the local node, typically for maintenance or troubleshooting. Must be run as root.
Key Points:
- Ensures orderly shutdown of CRS resources and services.
- Should be used cautiously as it impacts database availability.
crsctl check crsPurpose: Checks the status of Oracle High Availability Services and the Oracle Clusterware stack on the local server.
Key Points:
- Provides a quick overview of CRS health.
- Helps identify potential issues or inconsistencies.
crs_stat -tPurpose: Displays the status of CRS resources.
crs_statis deprecated; current releases usecrsctl status resource(for examplecrsctl status resource -t) orcrsctl check cluster.Key Points:
- Offers a more granular view of CRS components for in-depth analysis.
- Useful for troubleshooting specific issues or monitoring resource usage.
Insights and Explanations:
- Essential for High Availability: CRS is vital for managing cluster resources and ensuring high availability in Oracle RAC environments.
- Root Privileges:
crsctl start crsandcrsctl stop crsmust be run as root. - Planned Maintenance: Use
crsctl stop crsandcrsctl start crsfor planned maintenance or software updates. - Troubleshooting:
crsctl check crsandcrs_stat -tare valuable tools for diagnosing and resolving CRS-related issues. - Regular Monitoring: Regularly monitor CRS status to proactively identify and address potential problems.
- Additional Commands: CRS provides a rich set of commands for managing various aspects of the cluster, such as resource management, configuration, and logging.
Posts in this series
- Managing Oracle Clusterware CRS
- Oracle Clusterware: Manage Node Apps with srvctl
- Oracle Clusterware: srvctl start asm and srvctl stop asm
- Oracle srvctl Start and Stop Database in Clusterware
- Starting and Stopping Oracle Database Instances with SRVCTL
- Oracle srvctl config nodeapps Command in Clusterware
- Oracle Clusterware: Modify VIP Address and Network Interface
- Oracle Clusterware: Modify Interconnect Subnet with oifcfg
- Oracle oifcfg getif: Identify Cluster Interconnect Subnet
- Oracle srvctl disable database: Prevent Auto Startup
- Oracle Clusterware ocrcheck: Verify OCR Health
- Oracle crsctl query css votedisk Command Explained