解决方法:
1.用crs_stat查看进程全部信息:
[root@rac2bin]#./crs_stat
NAME=ora.rac.db
TYPE=application
TARGET=ONLINE
STATE=ONLINEonrac2
NAME=ora.rac1.LISTENER_RAC1.lsnr
TYPE=application
TARGET=ONLINE
STATE=UNKNOWNonrac1
NAME=ora.rac1.gsd
TYPE=application
TARGET=ONLINE
STATE=UNKNOWNonrac1
NAME=ora.rac2.LISTENER_RAC2.lsnr
TYPE=application
TARGET=ONLINE
STATE=UNKNOWNonrac2
......
2.对于offline的进程,我们可以直接手动的启动它
[root@rac2bin]#./crs_startora.rac.orcl.rac1.srv
Attemptingtostart`ora.rac.orcl.rac1.srv`onmember`rac1`
Startof`ora.rac.orcl.rac1.srv`onmember`rac1`succeeded.
3.对于UNKNOWN的进程,我们可以先stop它,在start。
[root@rac2bin]#./crs_stopora.rac2.gsd
Attemptingtostop`ora.rac2.gsd`onmember`rac2`
Stopof`ora.rac2.gsd`onmember`rac2`succeeded.
[root@rac2bin]#./crs_startora.rac2.gsd
Attemptingtostart`ora.rac2.gsd`onmember`rac2`
Startof`ora.rac2.gsd`onmember`rac2`succeeded.
4.如果crs_stop不能结束,crs_start不能启动的进程,我们有2中方法来解决:
4.1)是用crs_stop-f参数把crs中状态是UNKNOWN的服务关掉,然后再用crs_start-f(加一个-f的参数)启动所有的服务就可以。要分别在两个节点上执行;
[oracle@rac2~]$crs_start-fora.ora9i.ora9i2.inst
Attemptingtostart`ora.ora9i.ora9i2.inst`onmember`rac2`
Startof`ora.ora9i.ora9i2.inst`onmember`rac2`succeeded.
[oracle@rac2~]$crs_stop-fora.ora9i.db
Attemptingtostop`ora.ora9i.db`onmember`rac2`
Stopof`ora.ora9i.db`onmember`rac2`succeeded.
4.2)转换到root用户下用/etc/init.d/init.crsstop先禁用crs,然后再用/etc/init.d/init.crsstart去启用crs,启用crs后会自动启动crs的一系列服务,注意此种方法需要在两台节点上都执行;
5.可以用命令一次启动和关闭相关进程
[root@rac2bin]#./crs_stop-all
[root@rac2bin]#./crs_start-all
三.手动启动RAC
一般情况下每次节点启动的时候,所有服务都会自动启动,如果需要关闭或者启动某个节点,如下所示
停止RAC:
emctlstopdbconsole
srvctlstopinstance-draw-iraw1
srvctlstopinstance-draw-iraw2
srvctlstopasm-nraw1
srvctlstopasm-nraw2
srvctlstopnodeapps-nraw1
srvctlstopnodeapps-nraw2
启动RAC:
和上面的步骤正好相反即
srvctlstartnodeapps-nraw1
srvctlstartnodeapps-nraw2
srvctlstartasm-nraw1
srvctlstartasm-nraw2
srvctlstartinstance-draw-iraw2
srvctlstartinstance-dorcl-iraw1
emctlstartdbconsole
使用SRVCTL启动/停止所有实例及其启用的服务。
srvctlstartdatabase-dorcl
srvctlstopdatabase-dorcl
注:CRSResource包括GSD(GlobalServeiceDaemon),ONS(OracleNotificationService),VIP,Database,Instance和Service.这些资源被分成2类:
GSD,ONS,VIP和Listener属于Noteapps类
Database,Instance和Service属于Database-RelatedResource类。
有关OracleRAC的概念,请参考我的blog:
RAC的一些概念性和原理性的知识
http://blog.csdn.net/xujinyang/article/details/6837273
示例: