分类: Oracle
2010-07-02 08:54:57
发生一下crs的服务出现offline 或 unknown 状态的时候。我们可能看到的状态如下:
ecsrac01$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ecsdb.db application ONLINE ONLINE ecsrac01
ora....b1.inst application ONLINE ONLINE ecsrac01
ora....b2.inst application ONLINE UNKNOWN ecsrac02
ora....01.lsnr application ONLINE UNKNOWN ecsrac01
ora....c01.gsd application ONLINE ONLINE ecsrac01
ora....c01.ons application ONLINE ONLINE ecsrac01
ora....c01.vip application ONLINE ONLINE ecsrac01
ora....02.lsnr application ONLINE UNKNOWN ecsrac02
ora....c02.gsd application ONLINE UNKNOWN ecsrac02
ora....c02.ons application ONLINE UNKNOWN ecsrac02
ora....c02.vip application ONLINE ONLINE ecsrac02
ecsrac01$
ecsrac02$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ecsdb.db application OFFLINE OFFLINE
ora....b1.inst application OFFLINE OFFLINE
ora....b2.inst application OFFLINE OFFLINE
ora....01.lsnr application OFFLINE OFFLINE
ora....c01.gsd application OFFLINE OFFLINE
ora....c01.ons application OFFLINE OFFLINE
ora....c01.vip application OFFLINE OFFLINE
ora....02.lsnr application OFFLINE OFFLINE
ora....c02.gsd application OFFLINE OFFLINE
ora....c02.ons application OFFLINE OFFLINE
ora....c02.vip application OFFLINE OFFLINE
ecsrac02$
ecsrac02$
ecsrac02$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ecsdb.db application ONLINE ONLINE ecsrac01
ora....b1.inst application OFFLINE OFFLINE
ora....b2.inst application ONLINE ONLINE ecsrac02
ora....01.lsnr application OFFLINE OFFLINE
ora....c01.gsd application OFFLINE OFFLINE
ora....c01.ons application OFFLINE OFFLINE
ora....c01.vip application OFFLINE OFFLINE
ora....02.lsnr application ONLINE ONLINE ecsrac02
ora....c02.gsd application ONLINE ONLINE ecsrac02
ora....c02.ons application ONLINE ONLINE ecsrac02
ora....c02.vip application ONLINE ONLINE ecsrac02
ecsrac02$
如何解决上面的问题呢 ?
例子1:
ecsrac01$
ecsrac01$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ecsdb.db application ONLINE ONLINE ecsrac01
ora....b1.inst application ONLINE ONLINE ecsrac01
ora....b2.inst application ONLINE ONLINE ecsrac02
ora....01.lsnr application OFFLINE UNKNOWN ecsrac01
ora....c01.gsd application OFFLINE UNKNOWN ecsrac01
ora....c01.ons application OFFLINE UNKNOWN ecsrac01
ora....c01.vip application OFFLINE UNKNOWN ecsrac01
ora....02.lsnr application ONLINE ONLINE ecsrac02
ora....c02.gsd application ONLINE ONLINE ecsrac02
ora....c02.ons application ONLINE ONLINE ecsrac02
ora....c02.vip application ONLINE ONLINE ecsrac02
ecsrac01$
ecsrac01$
ecsrac01$
ecsrac01$srvctl stop nodeapps -n ecsrac01
ecsrac01$srvctl start nodeapps -n ecsrac01
ecsrac01$
ecsrac01$
ecsrac01$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ecsdb.db application ONLINE ONLINE ecsrac01
ora....b1.inst application ONLINE ONLINE ecsrac01
ora....b2.inst application ONLINE ONLINE ecsrac02
ora....01.lsnr application ONLINE ONLINE ecsrac01
ora....c01.gsd application ONLINE ONLINE ecsrac01
ora....c01.ons application ONLINE ONLINE ecsrac01
ora....c01.vip application ONLINE ONLINE ecsrac01
ora....02.lsnr application ONLINE ONLINE ecsrac02
ora....c02.gsd application ONLINE ONLINE ecsrac02
ora....c02.ons application ONLINE ONLINE ecsrac02
ora....c02.vip application ONLINE ONLINE ecsrac02
ecsrac01$
例子2: 单独启动crs服务
ecsrac01$crs_stop ora.ecsrac01.ons
ecsrac01$crs_stop ora.ecsrac01.gsd
ecsrac01$crs_stop ora.ecsrac01.vip
ecsrac01$crs_stop ora.ecsrac01.LISTENER_ECSRAC01.lsnr
ecsrac01$crs_stop ora.ecsdb.ecsdb1.inst
ecsrac01$crs_start ora.ecsrac01.ons
ecsrac01$crs_start ora.ecsrac01.gsd
ecsrac01$crs_start ora.ecsrac01.vip
ecsrac01$crs_start ora.ecsrac01.LISTENER_ECSRAC01.lsnr
ecsrac01$crs_start ora.ecsdb.ecsdb1.inst