Sunday, November 17, 2013

CRSCTL COMMAND IN 11GR2


CRSCTL Command Syntax Overview
CRSCTL command has

CommandDescription
checkDisplays the Oracle Restart status.
configDisplays the Oracle Restart configuration.
disableDisables automatic restart of Oracle Restart.
enableEnables automatic restart of Oracle Restart.
startStarts Oracle Restart.
stopStops Oracle Restart.

1) Do not use CRSCTL commands on Oracle entities (such as resources, resource types, and server pools) that have names beginning with ora unless you are directed to do so by Oracle Support. The Server Control utility (SRVCTL) is the correct utility to use on Oracle entities.
2) in order to run crsctl command you must be connected as oracle user (for LinuxAIXUnix servers)
3)  There are 3 categories of CRSCTL commands:

a)Dual Environment CRSCTL Commands
The following lists the various crsctl commands and their functions are available for both Oracle RAC and Oracle Restart environments:
crsctl add resource
crsctl add type
crsctl check css
crsctl delete resource
crsctl delete type
crsctl get hostname
crsctl getperm resource
crsctl getperm type
crsctl modify resource
crsctl modify type
crsctl setperm resource
crsctl setperm type
crsctl start resource
crsctl status resource
crsctl status type
crsctl stop resource
b)Oracle RAC Environment CRSCTL Commands. The commands listed in this section manage the Oracle Clusterwarestack in an Oracle RAC environment, which consists of the following:  
  1. Oracle Clusterware, the member nodes and server pools
  2. Oracle ASM (if installed)
  3. Cluster Synchronization Services
  4. Cluster Time Synchronization Services
crsctl add crs administrator
crsctl add css votedisk
crsctl add serverpool
crsctl check cluster
crsctl check crs
crsctl check resource
crsctl check ctss
crsctl config crs
crsctl delete crs administrator
crsctl delete css votedisk
crsctl delete node
crsctl delete serverpool
crsctl disable crs
crsctl enable crs
crsctl get css
crsctl get css ipmiaddr
crsctl get nodename
crsctl getperm serverpool
crsctl lsmodules
crsctl modify serverpool
crsctl pin css
crsctl query crs administrator
crsctl query crs activeversion
crsctl query crs releaseversion
crsctl query crs softwareversion
crsctl query css ipmidevice
crsctl query css votedisk
crsctl relocate resource
crsctl relocate server
crsctl replace discoverystring
crsctl replace votedisk
crsctl set css
crsctl set css ipmiaddr
crsctl set css ipmiadmin
crsctl setperm serverpool
crsctl start cluster
crsctl start crs
crsctl status server
crsctl status serverpool
crsctl stop cluster
crsctl stop crs
crsctl unpin css
crsctl unset css

     c)Oracle Restart Environment CRSCTL Commands:
        These commands only impact the cluster node that they are run on 
  1. Oracle High Availability Services daemon (ohasd)
  2. Oracle ASM 
  3. Cluster Synchronization Services (OSS) if ASM is installed                      
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
NOTE:
The following commands are deprecated in Oracle Clusterware 11g release 2 

crs_stat
crs_register
crs_unregister
crs_start
crs_stop
crs_getperm
crs_profile
crs_relocate
crs_setperm

crsctl check crsd
crsctl check cssd
crsctl check evmd
crsctl debug log
crsctl set css votedisk
crsctl start resources
crsctl stop resources

No comments:

Post a Comment