【RAC】使用crsctl命令獲取Oracle CRS版本資訊

secooler發表於2010-11-12
1.檢視Oracle CRS的版本
命令位於$ORA_CRS_HOME/bin $ORACLE_HOME/bin

1)獲取當前節點的CRS版本
RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crsctl query crs softwareversion
CRS software version on node [rac1] is [10.2.0.4.0]

2)檢視指定節點上CRS的版本
RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crsctl query crs softwareversion rac1
CRS software version on node [rac1] is [10.2.0.4.0]
RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crsctl query crs softwareversion rac2
CRS software version on node [rac2] is [10.2.0.4.0]

2.有關crsctl命令的幫助資訊
crsctl命令不帶任何引數的情況下便會給出該命令的使用幫助及示例。
RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crsctl
Usage: 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 css


3.小結
crsctl命令本身功能比較強大,本文給出了獲取Oracle CRS版本的方法用以輔助Oracle CRS升級及故障排查。

Good luck.

secooler
10.11.12

-- The End --

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-678150/,如需轉載,請註明出處,否則將追究法律責任。

相關文章