DBAtlas · 数据库运维图谱

检查集群资源状态(crsctl stat res -t)

OracleRAC 与 Grid

命令

# From the Grid home, as the grid user:
crsctl stat res -t
# OHASD (init) layer: ora.cssd, ora.crsd, ora.asm, ora.ctssd...
crsctl stat res -t -init
# Only problem resources (TARGET is ONLINE but STATE is not):
crsctl stat res -t -w "((TARGET = ONLINE) and (STATE != ONLINE))"
# Profile and runtime details of a single resource:
crsctl stat res ora.<db_unique_name>.db -p
crsctl stat res ora.<db_unique_name>.db -v

作用

以表格形式按节点列出 Clusterware 管理的所有资源(数据库、实例、监听、SCAN、VIP、ASM、磁盘组、网络)及其 TARGET/STATE。

适用场景

节点启动后、打补丁后以及每次故障排查时;用于找出 OFFLINE、INTERMEDIATE 或 UNKNOWN 资源。

注意

只读。不要直接用 crsctl start/stop/modify 管理 ora.* 资源;数据库资源请使用 srvctl(受支持的方法)。

在 DBAtlas 中打开 →

相关内容