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

时间:2021-07-11 18:56:13

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

11.2.0.4为例:

$ crsctl query crs activeversion
Oracle 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 activeversion
Oracle 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 STABLE
ora.DATA.dg
ONLINE ONLINE rac12c1 STABLE
ONLINE ONLINE rac12c2 STABLE
ora.FRA.dg
ONLINE ONLINE rac12c1 STABLE
ONLINE ONLINE rac12c2 STABLE
ora.LISTENER.lsnr
ONLINE ONLINE rac12c1 STABLE
ONLINE ONLINE rac12c2 STABLE
ora.asm
ONLINE ONLINE rac12c1 Started,STABLE
ONLINE ONLINE rac12c2 Started,STABLE
ora.net1.network
ONLINE ONLINE rac12c1 STABLE
ONLINE ONLINE rac12c2 STABLE
ora.ons
ONLINE ONLINE rac12c1 STABLE
ONLINE ONLINE rac12c2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac12c1 STABLE
ora.MGMTLSNR
1 ONLINE ONLINE rac12c2 169.254.86.73 10.10.
18.142,STABLE
ora.cvu
1 ONLINE ONLINE rac12c2 STABLE
ora.mgmtdb
1 ONLINE ONLINE rac12c2 Open,STABLE
ora.oc4j
1 ONLINE ONLINE rac12c2 STABLE
ora.rac12c.db
1 ONLINE OFFLINE Instance Shutdown,ST
ABLE
2 ONLINE ONLINE rac12c2 Open,STABLE
ora.rac12c1.vip
1 ONLINE ONLINE rac12c1 STABLE
ora.rac12c2.vip
1 ONLINE ONLINE rac12c2 STABLE
ora.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,STABLE
ora.cluster_interconnect.haip
1 ONLINE ONLINE rac12c1 STABLE
ora.crf
1 ONLINE ONLINE rac12c1 STABLE
ora.crsd
1 ONLINE ONLINE rac12c1 STABLE
ora.cssd
1 ONLINE ONLINE rac12c1 STABLE
ora.cssdmonitor
1 ONLINE ONLINE rac12c1 STABLE
ora.ctssd
1 ONLINE ONLINE rac12c1 ACTIVE:0,STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE rac12c1 STABLE
ora.gipcd
1 ONLINE ONLINE rac12c1 STABLE
ora.gpnpd
1 ONLINE ONLINE rac12c1 STABLE
ora.mdnsd
1 ONLINE ONLINE rac12c1 STABLE
ora.storage
1 ONLINE ONLINE rac12c1 STABLE
--------------------------------------------------------------------------------

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