【RAC】使用crsctl命令获取Oracle CRS版本信息

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/519536/viewspace-678150/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值