首页 > 代码库 > crsctl stat res -t 和 crsctl stat res -init -t

crsctl stat res -t 和 crsctl stat res -init -t

11.2.0.2的grid infrastructure中crsctl stat res命令不再显示如ora.cssd、ora.ctssd、ora.diskmon等基础资源的信息。但是查看这些基础资源的状态信息对于系统状态检查很有意义的。如果想要了解这些resource状态需要加上-init选项。

 

11.2.0.4为例:

$ crsctl query crs activeversionOracle Clusterware active version on the cluster is [11.2.0.4.0]$ crsctl stat res -init -t--------------------------------------------------------------------------------NAME           TARGET  STATE        SERVER                   STATE_DETAILS       --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.asm      1        ONLINE  ONLINE       db1                    Started             ora.cluster_interconnect.haip      1        ONLINE  ONLINE       db1                                        ora.crf      1        ONLINE  ONLINE       db1                                        ora.crsd      1        ONLINE  ONLINE       db1                                        ora.cssd      1        ONLINE  ONLINE       db1                                        ora.cssdmonitor      1        ONLINE  ONLINE       db1                                        ora.ctssd      1        ONLINE  ONLINE       db1                    ACTIVE:0            ora.diskmon      1        OFFLINE OFFLINE                                                   ora.drivers.acfs      1        ONLINE  ONLINE       db1                                        ora.evmd      1        ONLINE  ONLINE       db1                                        ora.gipcd      1        ONLINE  ONLINE       db1                                        ora.gpnpd      1        ONLINE  ONLINE       db1                                        ora.mdnsd      1        ONLINE  ONLINE       db1                                        	  $ crsctl stat res -t--------------------------------------------------------------------------------NAME           TARGET  STATE        SERVER                   STATE_DETAILS       --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.CRS.dg               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        ora.DATA.dg               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        ora.LISTENER.lsnr               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        ora.asm               ONLINE  ONLINE       db1                    Started                            ONLINE  ONLINE       db2                    Started             ora.gsd               OFFLINE OFFLINE      db1                                                       OFFLINE OFFLINE      db2                                        ora.net1.network               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        ora.ons               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        ora.registry.acfs               ONLINE  ONLINE       db1                                                       ONLINE  ONLINE       db2                                        --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr      1        ONLINE  ONLINE       db1                                        ora.cvu      1        ONLINE  ONLINE       db2                                        ora.oc4j      1        ONLINE  ONLINE       db2                                        ora.scan1.vip      1        ONLINE  ONLINE       db1                                        ora.db1.vip      1        ONLINE  ONLINE       db1                                        ora.db2.vip      1        ONLINE  ONLINE       db2                                        ora.rdb.db      1        ONLINE  ONLINE       db2                    Open                      2        ONLINE  ONLINE       db1                    Open                 

12.1.0.2为例:

$ crsctl query crs activeversionOracle Clusterware active version on the cluster is [12.1.0.2.0]$ crsctl stat res -t --------------------------------------------------------------------------------Name           Target  State        Server                   State details       --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.CRS.dg               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLEora.DATA.dg               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLEora.FRA.dg               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLEora.LISTENER.lsnr               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLEora.asm               ONLINE  ONLINE       rac12c1                  Started,STABLE               ONLINE  ONLINE       rac12c2                  Started,STABLEora.net1.network               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLEora.ons               ONLINE  ONLINE       rac12c1                  STABLE               ONLINE  ONLINE       rac12c2                  STABLE--------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr      1        ONLINE  ONLINE       rac12c1                  STABLEora.MGMTLSNR      1        ONLINE  ONLINE       rac12c2                  169.254.86.73 10.10.                                                             18.142,STABLEora.cvu      1        ONLINE  ONLINE       rac12c2                  STABLEora.mgmtdb      1        ONLINE  ONLINE       rac12c2                  Open,STABLEora.oc4j      1        ONLINE  ONLINE       rac12c2                  STABLEora.rac12c.db      1        ONLINE  OFFLINE                               Instance Shutdown,ST                                                             ABLE      2        ONLINE  ONLINE       rac12c2                  Open,STABLEora.rac12c1.vip      1        ONLINE  ONLINE       rac12c1                  STABLEora.rac12c2.vip      1        ONLINE  ONLINE       rac12c2                  STABLEora.scan1.vip      1        ONLINE  ONLINE       rac12c1                  STABLE--------------------------------------------------------------------------------$ crsctl stat res -init  -t --------------------------------------------------------------------------------Name           Target  State        Server                   State details       --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.asm      1        ONLINE  ONLINE       rac12c1                  Started,STABLEora.cluster_interconnect.haip      1        ONLINE  ONLINE       rac12c1                  STABLEora.crf      1        ONLINE  ONLINE       rac12c1                  STABLEora.crsd      1        ONLINE  ONLINE       rac12c1                  STABLEora.cssd      1        ONLINE  ONLINE       rac12c1                  STABLEora.cssdmonitor      1        ONLINE  ONLINE       rac12c1                  STABLEora.ctssd      1        ONLINE  ONLINE       rac12c1                  ACTIVE:0,STABLEora.diskmon      1        OFFLINE OFFLINE                               STABLEora.evmd      1        ONLINE  ONLINE       rac12c1                  STABLEora.gipcd      1        ONLINE  ONLINE       rac12c1                  STABLEora.gpnpd      1        ONLINE  ONLINE       rac12c1                  STABLEora.mdnsd      1        ONLINE  ONLINE       rac12c1                  STABLEora.storage      1        ONLINE  ONLINE       rac12c1                  STABLE--------------------------------------------------------------------------------

 

此外在11.2.0.2的grid infrastructure中想启动、停止、修改这些init资源时都需要加上-init选项,否则将出现CRS-2613: Could not find resource错误。

 

crsctl stat res -t 和 crsctl stat res -init -t