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
crsctl query crs softwareversion [
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
1.检测crs状态:
[oracle@rac1 bin]$ crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
--单个检测cssd,crsd,evmd状态
[oracle@rac1 bin]$ crsctl check cssd
CSS appears healthy
[oracle@rac1 bin]$ crsctl check crsd
CRS appears healthy
[oracle@rac1 bin]$ crsctl check evmd
EVM appears healthy
2.配置CRS栈是否开机自启动 //这个命令需要root用户执行
[oracle@rac1 bin]$ crsctl disable crs
Insufficient user privileges.
[oracle@rac1 bin]$ crsctl enable crs
Insufficient user privileges.
实际修改这个文件中内容
[oracle@rac1 bin]$ cat /etc/oracle/scls_scr/rac1/root/crsstart
enable
3.启动、停止CRS资源
[root@rac1 bin]# ./crsctl start resources
4.启动、停止CRS栈
oracle 10.1之前,必须通过重启系统重启Clusterware,但是从10.2开始,可以通过命令来启动和停止CRS。
[root@rac1 bin]# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@rac1 bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
5.查看Votedisk磁盘位置
[root@rac1 bin]# ./crsctl query css votedisk
0. 0 /dev/raw/raw2
located 1 votedisk(s).
6.查看和修改CRS参数
[root@rac1 bin]# ./crsctl get css misscount
60
--修改参数:功能慎用
[root@rac1 bin]# ./crsctl set css misscount 60
Configuration parameter misscount is now set to 60.
[root@rac1 bin]# ./crsctl get css misscount
60
--重置CRS参数
[root@rac1 bin]# ./crsctl unset css misscount
Configuration parameter misscount is now undefined.
[root@rac1 bin]# ./crsctl get css misscount
Configuration parameter misscount is not defined.
7,跟踪CRS模块,提供辅助功能
CRS由CRS、CSS、EVM三个服务组成,每个服务又是由一系列module组成,crsctl允许每个module进行跟踪,并把跟踪内容记录到日志中。
[root@rac1 bin]# ./crsctl lsmodules css
The following are the CSS modules ::
CSSD
COMMCRS
COMMNS
[root@rac1 bin]# ./crsctl lsmodules crs
The following are the CRS modules ::
CRSUI
CRSCOMM
CRSRTI
CRSMAIN
CRSPLACE
CRSAPP
CRSRES
CRSCO