--启动和关闭CRS
crs_stat -t
crsctl start crs
crsctl stop crs
--查看CRS资源状态
crs_stat -t
--获取集群资源名的方法
crs_stat | grep -i name= | cut -d '=' -f2
--以关闭ora.RACDB.RACDB1.inst资源为例
crs_stop ora.RACDB.RACDB1.inst
crs_stat -t
--启动特定集群资源
crs_start ora.RACDB.RACDB1.inst
crs_stat -t
--同时停掉所有集群资源
crs_stop -all
crs_stat -t
--同时启动所有集群资源
crs_start -all
crs_stat -t
--使用srvctl停止和启动节点应用
srvctl stop nodeapps -n rac1
crs_stat -t
srvctl start nodeapps -n rac1
crs_stat -t
--停止当前节点所有CRS资源
crsctl stop resources
crs_stat -t
--启动当前节点所有CRS资源
crsctl start resources
crs_stat -t
--对CRS后台进程做健康检查
crsctl check crs
--检查OCR
ocrcheck
--检查表决磁盘
crsctl query css votedisk
crs_stat -t
crsctl start crs
crsctl stop crs
--查看CRS资源状态
crs_stat -t
--获取集群资源名的方法
crs_stat | grep -i name= | cut -d '=' -f2
--以关闭ora.RACDB.RACDB1.inst资源为例
crs_stop ora.RACDB.RACDB1.inst
crs_stat -t
--启动特定集群资源
crs_start ora.RACDB.RACDB1.inst
crs_stat -t
--同时停掉所有集群资源
crs_stop -all
crs_stat -t
--同时启动所有集群资源
crs_start -all
crs_stat -t
--使用srvctl停止和启动节点应用
srvctl stop nodeapps -n rac1
crs_stat -t
srvctl start nodeapps -n rac1
crs_stat -t
--停止当前节点所有CRS资源
crsctl stop resources
crs_stat -t
--启动当前节点所有CRS资源
crsctl start resources
crs_stat -t
--对CRS后台进程做健康检查
crsctl check crs
--检查OCR
ocrcheck
--检查表决磁盘
crsctl query css votedisk
--获取系统当前VIP信息
ifconfig –a
--在操作系统的hosts文件中同样记录了有关VIP的信息
cat /etc/hosts
--停掉所有与VIP相关的资源
确认集群当前状态
crs_stat -t
--停掉第一节点上的数据库实例
srvctl stop instance -d RACDB -i RACDB1
crs_stat -t
--停掉第一节点上的ASM实例
srvctl stop asm -n rac1
crs_stat -t
--停掉第一节点上的nodeapps
srvctl stop nodeapps -n rac1
crs_stat -t
--再次确认VIP已停用
ifconfig -a
crs_stat -t
--修改“/etc/hosts”文件中有关VIP的信息
vi /etc/hosts
192.168.3.100 rac1-vip
192.168.3.101 rac2-vip
:x
--使用srvctl命令调整VIP地址
su - root
123root
srvctl modify nodeapps -n rac1 -A 192.168.3.100/255.255.255.0/eth0
--启动与VIP相关的资源及数据库实例
--启动nodeapps
srvctl start nodeapps -n rac1
--启动ASM实例
srvctl start asm -n rac1
crs_stat -t
--启动数据库实例
srvctl start instance -d RACDB -i RACDB1
crs_stat -t
--确认第一个节点的VIP修改完毕
ifconfig -a
ifconfig –a
--在操作系统的hosts文件中同样记录了有关VIP的信息
cat /etc/hosts
--停掉所有与VIP相关的资源
确认集群当前状态
crs_stat -t
--停掉第一节点上的数据库实例
srvctl stop instance -d RACDB -i RACDB1
crs_stat -t
--停掉第一节点上的ASM实例
srvctl stop asm -n rac1
crs_stat -t
--停掉第一节点上的nodeapps
srvctl stop nodeapps -n rac1
crs_stat -t
--再次确认VIP已停用
ifconfig -a
crs_stat -t
--修改“/etc/hosts”文件中有关VIP的信息
vi /etc/hosts
192.168.3.100 rac1-vip
192.168.3.101 rac2-vip
:x
--使用srvctl命令调整VIP地址
su - root
123root
srvctl modify nodeapps -n rac1 -A 192.168.3.100/255.255.255.0/eth0
--启动与VIP相关的资源及数据库实例
--启动nodeapps
srvctl start nodeapps -n rac1
--启动ASM实例
srvctl start asm -n rac1
crs_stat -t
--启动数据库实例
srvctl start instance -d RACDB -i RACDB1
crs_stat -t
--确认第一个节点的VIP修改完毕
ifconfig -a
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15681893/viewspace-710405/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15681893/viewspace-710405/