CRSCTL clusterware command in Oracle

CRSCTL clusterware command in Oracle

CRSCTL is an interface provided by Oracle for managing Oracle Clusterware such as health check, enable, disable, start and stop of clusterware.
You can use these commands from any node in the cluster. CRSCTL utility present in Grid_home/bin location.

Check the Clusterware on all nodes or single node

crsctl check cluster -all | -n nodename

crsctl check cluster -all

*****************************************************************
RAC1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
*****************************************************************
RAC2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

Start and stop the Clusterware on all nodes or Single node

-- Start the clusterware
crsctl start cluster -all | -n nodename

--Stop the clusterware
crsctl stop cluster -all | -n nodename

Get hostname with CRSCTL

crsctl get hostname
RAC2

Add and Delete resource with Crsctl commands
Crsctl also manages resource. A resource can be an application process, a database, a service, a listener, and so on.

-- Add resource
crsctl add resource resource_name -type resource_type [-group group_name [-file file_path | -attr "attribute_name=attribute_value

Example register apache web server application
crsctl add resource my_apache -type generic_application -attr "START_PROGRAM='/usr/sbin/httpd -k start',STOP_PROGRAM='/usr/sbin/httpd -k stop', PID_FILES=/etc/httpd/run/httpd.pid"

--Drop resource
crsctl delete resource resource_name

Get the cluster configuration

crsctl get cluster configuration

Get cluster name

crsctl get cluster name

Configure the CRS

crsctl config crs
CRS-4622: Oracle High Availability Services autostart is enabled.

Enable and disable the CRS

-- For enable
crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.

--For disable
crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.

Manage users of cluster administrators

-- Check the list of user
crsctl query crs administrator
-- Add new user
crsctl add crs administrator -u user_name [-f]
-- Delete old user
crsctl delete crs administrator -u user_name [-f]

Check the status of the Cluster Time Synchronization services

crsctl check ctss

Check votedisk information

crsctl query css votedisk

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.