标签:
在Oracle 10g中CRS Resource 包括GSD(Global Serveice Daemon),ONS(Oracle Notification Service),VIP, Database, Instance 和 Service
[root@racnode1 ~]# crsctl status resource -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.ARCH.dg ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 ora.DATA.dg ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 ora.LISTENER.lsnr ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 ora.asm ONLINE ONLINE racnode1 Started ONLINE ONLINE racnode2 Started ora.gsd OFFLINE OFFLINE racnode1 OFFLINE OFFLINE racnode2 ora.net1.network ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 ora.ons ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 ora.registry.acfs ONLINE ONLINE racnode1 ONLINE ONLINE racnode2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE racnode1 ora.cvu 1 ONLINE ONLINE racnode1 ora.oc4j 1 ONLINE ONLINE racnode1 ora.prod.db 1 ONLINE ONLINE racnode1 Open 2 ONLINE ONLINE racnode2 Open ora.racnode1.vip 1 ONLINE ONLINE racnode1 ora.racnode2.vip 1 ONLINE ONLINE racnode2 ora.scan1.vip 1 ONLINE ONLINE racnode1
如果要关闭RAC 不能再通过crs_stop -all,这个命令是10g所使用的,在11g由于CRS的信息也是放在ASM 实例里的,所以要关asm,必须关闭crs,在Oracle11g RAC的架构如下
export ORACLE_HOME=/u01/grid/product/11gr2 export PATH=$ORACLE_HOME/bin:$PATH
[root@racnode1 ~]# crsctl stop has [root@racnode2 ~]# crsctl stop has
[root@racnode1 ~]# crsctl start has [root@racnode2 ~]# crsctl start has
[root@racnode1 ~]# crsctl stop cluster -n racnode1 racnode2
[root@racnode1 ~]# crsctl start cluster -n racnode1 racnode2
[root@racnode1 ~]# srvctl stop database -d prod
[root@racnode2 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ARCH.dg ora....up.type ONLINE ONLINE racnode1
ora.DATA.dg ora....up.type ONLINE ONLINE racnode1
ora....ER.lsnr ora....er.type ONLINE ONLINE racnode1
ora....N1.lsnr ora....er.type ONLINE ONLINE racnode1
ora.asm ora.asm.type ONLINE ONLINE racnode1
ora.cvu ora.cvu.type ONLINE ONLINE racnode1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE racnode1
ora.oc4j ora.oc4j.type ONLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE racnode1
ora.prod.db ora....se.type ONLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE racnode1
ora....E1.lsnr application ONLINE ONLINE racnode1
ora....de1.gsd application OFFLINE OFFLINE
ora....de1.ons application ONLINE ONLINE racnode1
ora....de1.vip ora....t1.type ONLINE ONLINE racnode1
ora....SM2.asm application ONLINE ONLINE racnode2
ora....E2.lsnr application ONLINE ONLINE racnode2
ora....de2.gsd application OFFLINE OFFLINE
ora....de2.ons application ONLINE ONLINE racnode2
ora....de2.vip ora....t1.type ONLINE ONLINE racnode2
ora....ry.acfs ora....fs.type ONLINE ONLINE racnode1
ora.scan1.vip ora....ip.type ONLINE ONLINE racnode1
srvctl start instance -d prod -i prod1
[root@racnode2 ~]# crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.ARCH.dg ora....up.type ONLINE ONLINE racnode1 ora.DATA.dg ora....up.type ONLINE ONLINE racnode1 ora....ER.lsnr ora....er.type ONLINE ONLINE racnode1 ora....N1.lsnr ora....er.type ONLINE ONLINE racnode1 ora.asm ora.asm.type ONLINE ONLINE racnode1 ora.cvu ora.cvu.type ONLINE ONLINE racnode1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE racnode1 ora.oc4j ora.oc4j.type ONLINE ONLINE racnode1 ora.ons ora.ons.type ONLINE ONLINE racnode1 ora.prod.db ora....se.type ONLINE ONLINE racnode1 ora....SM1.asm application ONLINE ONLINE racnode1 ora....E1.lsnr application ONLINE ONLINE racnode1 ora....de1.gsd application OFFLINE OFFLINE ora....de1.ons application ONLINE ONLINE racnode1 ora....de1.vip ora....t1.type ONLINE ONLINE racnode1 ora....SM2.asm application ONLINE ONLINE racnode2 ora....E2.lsnr application ONLINE ONLINE racnode2 ora....de2.gsd application OFFLINE OFFLINE ora....de2.ons application ONLINE ONLINE racnode2 ora....de2.vip ora....t1.type ONLINE ONLINE racnode2 ora....ry.acfs ora....fs.type ONLINE ONLINE racnode1 ora.scan1.vip ora....ip.type ONLINE ONLINE racnode1
标签:
原文地址:http://www.cnblogs.com/houzhiqing/p/5768649.html