Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Crsctl common commands

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

[oracle@rac01 ~] $crsctlUsage: crsctl check crs-checks the viability of the CRS stack crsctl check cssd-checks the viability of CSS crsctl check crsd-checks the viability of CRS crsctl check evmd-checks the viability of EVM crsctl set css-sets a parameter override crsctl get css-gets the value of a CSS parameter crsctl unset css-sets CSS parameter to its default crsctl Query css votedisk-lists the voting disks used by CSS crsctl add css votedisk-adds a new voting disk crsctl delete css votedisk-removes a voting disk crsctl enable crs-enables startup for all CRS daemons crsctl disable crs-disables startup for all CRS daemons crsctl start crs-starts all CRS daemons. Crsctl stop crs-stops all CRS daemons. Stops CRS resources in case of cluster. Crsctl start resources-starts CRS resources. Crsctl stop resources-stops CRS resources. Crsctl debug statedump evm-dumps state info for evm objects crsctl debug statedump crs-dumps state info for crs objects crsctl debug statedump css-dumps state info for css objects crsctl debug log css [module:level] {, module:level}...-Turns on debugging for CSS crsctl debug trace css-dumps CSS in-memory tracing cache crsctl debug log crs [module:level] { Module:level}...-Turns on debugging for CRS crsctl debug trace crs-dumps CRS in-memory tracing cache crsctl debug log evm [module:level] { Module:level}...-Turns on debugging for EVM crsctl debug trace evm-dumps EVM in-memory tracing cache crsctl debug log res turns on debugging for resources crsctl query crs softwareversion []-lists the version of CRS software installed crsctl query crs activeversion-lists the CRS software operating version crsctl lsmodules css-lists the CSS modules that can be used for debugging crsctl lsmodules crs-lists the CRS modules that can be used For debugging crsctl lsmodules evm-lists the EVM modules that can be used for debugging If necesary any of these commands can be run with additional tracing by adding a "trace" argument at the very front. Example: crsctl trace check css1. Check the crs status [oracle@rac01 ~] $crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy output crs css evm components are normal, if any component check failed, the output will give the following Failure information: [oracle@rac01 ~] $crsctl check crsFailure 1 contacting CSS daemonCannot communicate with CRSCannot communicate with EVM 2. Check crs component status information check cssd component status [oracle@rac01 ~] $crsctl check cssdCSS appears healthy check crsd component status [oracle@rac01 ~] $crsctl check crsdCRS appears healthy check evmd component status [oracle@rac01 ~] $crsctl check evmdEVM appears healthy3. To maintain the automatic startup of the crs service with the following two commands, you need to use the root user to execute [root@rac01 ~] # / opt/ora10g/product/10.2.0/crs/bin/crsctl disable crs [root@rac01 ~] # / opt/ora10g/product/10.2.0/crs/bin/crsctl enable crs4. Stop the crs service [root@rac01 ~] # / opt/ora10g/product/10.2.0/crs/bin/crsctl stop crsStopping resources.Successfully stopped CRS resources Stopping CSSD.Shutting down CSS daemon.Shutdown request successfully issued with your root identity. At this time, when we check the status of each component of the crs in the rac01 node, we will have the following information [oracle@rac01 ~] $crsctl check crsFailure 1 contacting CSS daemonCannot communicate with CRSCannot communicate with EVM rac02 node normal [oracle@rac02 ~] $crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy5. Open CRS service with root identity [root@rac01 ~] # / opt/ora10g/product/10.2.0/crs/bin/crsctl start crsAttempting to start CRS stack The CRS stack will be started shortly at this time the system is starting CRS, let's check the status of crs service at this time, crs component service is enabled in turn as long as all component states are healthy [oracle@rac01 ~] $crsctl check crsCSS appears healthyCannot communicate with CRSEVM appears healthy [oracle@rac01 ~] $crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy6. Check the information of votedisk [oracle@rac01 ~] $crsctl query css votedisk 0. 0 / dev/raw/raw1located 1 votedisk (s).

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report