raca 对应实例 rac2
racb 对应实例 rac1
关闭rac顺序 在节点racb上执行以下命令:
srvctl stop listener -n racb 关闭racb节点的监听
srvctl stop listener -n raca
srvctl stop instance -d rac -i rac1 关闭节点racb节点的实例rac1
srvctl stop instance -d rac -i rac2 关闭节点raca节点的实例rac2
srvctl stop asm -n racb 关闭racb节点的asm
srvctl stop asm -n raca
srvctl stop nodeapps -n raca 关闭raca节点的应用程序ons、gsd、vip
srvctl stop nodeapps -n racb
如果是关闭整个数据库,则使用如下命令
srvctl stop database -d
启动rac顺序 在节点raca上执行以下命令
srvctl start nodeapps -n raca 启动raca上的应用程序ons、gsd、vip
srvctl start nodeapps -n racb
srvctl start asm -n raca 启动raca的asm
srvctl start asm -n racb
srvctl start instance -d rac -i rac1 启动节点racb上的rac1实例
srvctl start instance -d rac -i rac2 启动节点raca上的rac2实例
查看crs状态
crs_stat -t -v
启动启停服务:(指定启动某个服务,如果该服务不能看到全名,可以在文件/oracle/product/10.2.0/crs_1/log/raca/crsd/crsd.log文件内找到)
crs_start ora.rac.cxmfyl.cs 这个启动后,下面两个srv就会自动启动,若没有启动,可手动启动,如下命令:
crs_start ora.rac.cxmfyl.rac1.srv
crs_start ora.rac.cxmfyl.rac2.srv
查看数据库实例状态
srvctl status database -d rac
列出rac节点信息:
$srvctl config database -d rac
racb rac1 /oracle/product/10.2.0/db_1
raca rac2 /oracle/product/10.2.0/db_1
==========================
[oracle@RACA ~]$ crs_stat -t -v|grep raca
ora....ac2.srv
ora....c2.inst
ora....SM2.asm
ora....CA.lsnr
ora.raca.gsd application 0/5 0/0 ONLINE ONLINE raca
ora.raca.ons
ora.raca.vip
[oracle@RACA ~]$ crs_stat -t -v|grep raca|wc
7 49 539
[oracle@RACA ~]$ crs_stat -t -v|grep racb
ora....mfyl.cs application 0/0 0/1 ONLINE ONLINE racb
ora....ac1.srv
ora.rac.db application 0/0 0/1 ONLINE ONLINE racb
ora....c1.inst
ora....SM1.asm
ora....CB.lsnr
ora.racb.gsd application 0/5 0/0 ONLINE ONLINE racb
ora.racb.ons
ora.racb.vip
==============================================
||||
==============================================
阅读(3132) | 评论(0) | 转发(0) |