CRSCTL 11G R2 Usage

CRSCTL 11G R2 Utility Usage:

CRSCTL Usage:  CRSCTL is an interface between user and Oracle Clusterware, which is used to perform several operations to start/stop, enable/disable the clusterware, health check, debugging Clusterware components etc.

We can use this command to do operations from one node for all other nodes in the cluster, which benefited us not to login each and every node of the cluster to perform CRSCTL operations.

 

Usage: crsctl <command> <object> [<options>

]

command: enable|disable|config|start|stop|relocate|replace|status|add|delete|modify|getperm

|setperm|check|set|get|unset|debug|lsmodules|query|pin|unpin|discover|release|request

 

Command

Object

Description

crsctl

 add

 add a resource, type or other entity

crsctl

 check    

 check a service, resource or other entity

crsctl

 config   

 output autostart configuration

crsctl

 debug    

 obtain or modify debug state

crsctl

 delete   

 delete a resource, type or other entity

crsctl

 disable  

 disable autostart

crsctl

 discover 

 discover DHCP server

crsctl

 enable   

 enable autostart

crsctl

 get

 get an entity value

crsctl

 getperm  

 get entity permissions

crsctl

 lsmodules

 list debug modules

crsctl

 modify   

 modify a resource, type or other entity

crsctl

 query    

 query service state

crsctl

 pin

 pin the nodes in the node list

crsctl

 relocate 

 relocate a resource, server or other entity

crsctl

 replace  

 replaces the location of voting files

crsctl

 release  

 release a DHCP lease

crsctl

 request  

 request a DHCP lease

crsctl

 setperm  

 set entity permissions

crsctl

 set

 set an entity value

crsctl

 start    

 start a resource, server or other entity

crsctl

 status   

 get status of a resource or other entity

crsctl

 stop     

 stop a resource, server or other entity

crsctl

 unpin    

 unpin the nodes in the node list

crsctl

 unset    

 unset an entity value, restoring its default

 

Deprecated Subprograms or Commands:

Lists of the commands that are deprecated in Oracle Clusterware 11g release 2 (11.2) and their replacements that you can use to perform the same or similar functionality. These commands are not supported in an Oracle Restart environment:

Deprecated Command

Replacement Commands

crs_stat

crsctl check cluster -all

crsctl stat res -t

crs_register

crsctl add resource

crsctl add type

crsctl modify resource

crsctl modify type

crs_unregister

crsctl stop resource

crsctl modify resource resource_name -attr "AUTO_START=never"

crs_start

crsctl start resource

crsctl start crs

crsctl start cluster

crs_stop

crsctl stop resource

crsctl stop crs

crsctl stop cluster

crs_getperm

crsctl getperm resource

crsctl getperm type

crs_profile

crsctl add resource

crsctl add type

crsctl status resource

crsctl status type

crsctl modify resource

crsctl modify type

crs_relocate

crsctl relocate resource

crs_setperm

crsctl setperm resource

crsctl setperm type

crsctl check crsd

crsctl check crs

crsctl check cssd

crsctl check css

crsctl check evmd

crsctl check evm

crsctl debug res log resource_name:level

crsctl set log

crsctl set css votedisk

crsctl add css votedisk

crsctl delete css votedisk

crsctl query css votedisk

crsctl replace votedisk

crsctl start resources

crsctl start resource -all

crsctl stop resources

crsctl stop resource -all

 

Dual Environment CRSCTL Commands:

List of commands, can be used both in Oracle RAC and the Oracle Restart environments:

·         crsctl add resource

·         crsctl add type

·         crsctl check css

·         crsctl check evm

·         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

 

Oracle RAC Environment CRSCTL Commands:

List of below commands manage the Oracle Clusterware stack in an Oracle RAC environment, which consists of the following:

·         Oracle Clusterware, the member nodes and server pools

·         Oracle ASM (if installed)

·         Cluster Synchronization Services

·         Cluster Time Synchronization Services

List of the commands only be used in an Oracle RAC environment:

·         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 discover dhcp

·         crsctl enable crs

·         crsctl get clientid dhcp

·         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 ipmiconfig

·         crsctl query css ipmidevice

·         crsctl query css votedisk

·         crsctl query dns

·         crsctl release dhcp

·         crsctl relocate resource

·         crsctl relocate server

·         crsctl replace discoverystring

·         crsctl replace votedisk

·         crsctl request dhcp

·         crsctl set css

·         crsctl set css ipmiaddr

·         crsctl set css ipmiadmin

·         crsctl setperm serverpool

·         crsctl start cluster

·         crsctl start crs

·         crsctl start ip

·         crsctl start testdns

·         crsctl status ip

·         crsctl status server

·         crsctl status serverpool

·         crsctl status testdns

·         crsctl stop cluster

·         crsctl stop crs

·         crsctl stop ip

·         crsctl stop testdns

·         crsctl unpin css

·         crsctl unset css

·         crsctl unset css ipmiconfig

 

Oracle Restart Environment CRSCTL Commands:

Below list of commands manage Oracle High Availability Services in the Oracle Restart environment, which consists of:

·         Oracle High Availability Services daemon (ohasd)

·         Oracle ASM (if installed)

·         Cluster Synchronization Services (if Oracle ASM is installed).

These commands only affect the local server on which you run them.

Each server in the cluster is in one of two possible states:

·         The whole stack is up, which means that Oracle High Availability Services is active

·         The whole stack is down, which means that Oracle High Availability Services is inactive

You can use the following commands in the Oracle Restart environment, only:

·         crsctl check has  – to check the current status of Restart

·         crsctl config has  – to display the configuration of Oracle Restart

·         crsctl disable has  – to disable the stack for automatic startup at server reboot

·         crsctl enable has  – to enable the stack for automatic startup at server reboot

·         crsctl start has  – to manually start the Oracle Restart stack when running disabled or after manually stopping it

·         crsctl stop has [-f]  – to manually stop the Oracle Restart stack. The -f option

 

Note: Oracle does not support using crs_* commands in an Oracle Restart environment.

 

Oracle Restart – New Feature in 11g R2:

When a hardware or software failure occurs, various Oracle components automatically restarted in the presence of Oracle Restart which improves the availability of the Oracle database.

–List of Oracle Components Automatically Restarted by Oracle Restart:

·         Database instance

·         Oracle Net listener

·         Database services

·         Oracle Automatic Storage Management (ASM) instance

·         Oracle ASM disk groups – Restarting a disk group means mounting it.

·         Oracle Notification Services (ONS)

Oracle Restart runs periodic check operations to monitor the health of these components. If a check operation fails for a component, the component is shut down and restarted.

Oracle Restart is used in standalone server (non-clustered) environments only. For Oracle Real Application Clusters (Oracle RAC) environments, the functionality to automatically restart components is provided by Oracle Clusterware.

Oracle Restart is managed by CRSCTL utility and it uses Oracle High Availability Services to start and stop the components managed by Oracle Restart.

Oracle Restart can be extended to Data Guard configurations as well by integrating with Data Guard Broker to manage the start and stop of database services following a data guard role transition.

Using Oracle Restart, we can stop or start all the components running out of a single Oracle Home with a single srvctl command as well as Oracle Restart will automatically start all components on machine reboot in the proper order taking into account dependencies like ASM instance and the managed database instances. So no more to use the dbstart and dbstop scripts to manage this.

When Oracle Restart is in use, Oracle strongly recommends that you use SRVCTL to manually start and stop components.

An important difference between starting a component with SRVCTL and with SQL*Plus/other utility is:

  • When we start a component with SRVCTL, all dependent components this are automatically started first, and in the proper order.
  • When you start a component with SQL*Plus/other utility, all other dependent components are not automatically started.

 

 

Source: Oracle Doc, Internet

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply