init.crs (Combination of all services' start)
init.crsd (crs daemon)
init.cssd (cluster synchronization service)
init.evmd (event manager)
/etc/init.d/init.crs stop is supported since 10.1.0.2
2. How to start/stop crs related services ?
crsd (crs daemon)
crs_getperm (Get parameter)
crs_profile
crs_register (Register targets on the host)
#list all listener of cluster env
crs_stat |grep lsnr
crs_unregister resource_name -q
3. Detailed 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 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 stop resources - stops CRS resources.
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
- lists the version of CRS software installed
- lists the CRS software operating version
- lists the CSS modules that can be used for debugging
- lists the CRS modules that can be used for debugging
- lists the EVM modules that can be used for debugging
Example: crsctl trace check css
3.2 Startup/shutdown steps
1. Shutdown db console service if it's running
2. Shutdown OraService via "control panel" ->"services"
3. srvctl stop instance -d -i
4. srvctl stop asm -n if using asm
5. srvctl stop nodeapps -n
6. Shutdown crs service via "control panel" ->"services"
1. Startup crs service via "control panel" ->"services"
2. srvctl start nodeapps -n
3. srvctl start asm -n if using asm
4. srvctl start instance -d -i
5. Startup OraService via "control panel" ->"services"
6. Startup db console service if it's running
rac1->srvctl start nodeapps -n rac1
rac1->srvctl start nodeapps -n rac2
rac1->srvctl start asm -n rac1
rac1->srvctl start asm -n rac2
rac1->srvctl start database -d devdb
rac1->srvctl start service -d devdb
rac1->crs_stat -t
SHUTDOWN:
rac1->srvctl stop service -d devdb
rac1->srvctl stop database -d devdb
rac1->srvctl stop asm -n rac2
rac1->srvctl stop asm -n rac1
rac1->srvctl stop nodeapps -n rac2
rac1->srvctl stop nodeapps -n rac1
rac1->crs_stat–t
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-498021/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-498021/
本文介绍了在 Linux 环境下 Oracle Cluster Ready Services (CRS) 的启动与停止方法,包括使用 /etc/init.d/init.crs 脚本及 crsctl 命令的方式,并详细说明了 crsctl 命令的各种用法,如检查 CRS 堆栈、启动/停止 CRS 服务等。
899

被折叠的 条评论
为什么被折叠?



