crsctl command line
crsctl (Cluster Ready Services Control) is used to manage and troubleshoot Oracle Cluster ware in Oracle Real Application Clusters environments
oraclesqlhigh-availabilityv1.0.0
0 stars0 downloads35 views0 comments
By fathy • Created
Code
(92 lines)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
CRSCTL Utility is used to managed oracle clusterware resources and components.
rac command line -----crs-----------
----restart RAC---------
$GRID_HOME/bin/crsctl stop crs
$GRID_HOME/bin/crsctl start crs
-------enable and disable crs-----------
$GRID_HOME/bin/crsctl config crs
$GRID_HOME/bin/crsctl disable crs
$GRID_HOME/bin/crsctl enable crs
--------get cluster name------
$GRID_HOME/bin/cemutlo -n
###or
$GRID_HOME/bin/olsnodes -c
-----------get grid version-----
SYNATX – $GRID_HOME/bin/crsctl query crs softwareversion <hostname>
--------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
-----------voting disk location------
$GRID_HOME/bin/crsctl query css votedisk
----------OCR location------
$GRID_HOME/bin/ocrcheck
--------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
----------CRS status of local node----
crsctl check crs
---------- status of all crs resourcs---------
$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -t -init
-----------active version of cluster--------
crsctl query crs activeversion
----------Stop and start high availability service ( HAS)-------
crsctl stop has
crsctl start has
------------------Check CRS status of remote nodes--------
crsctl check cluster
crsctl check cluster -all
------------Check CRS configuation---------
crsctl config crs
crsctl get cluster configuration
-------------node roles in cluster------
crsctl get node role status -all
--------crsctl has commands for standalone grid infrastrcuture-----
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 hasUsage Instructions
Always make sure you test the changes in a non-production (DEV/UAT) environment first before implementing them in Production.