Oracle RAC常用命令
2019-01-11 本文已影响0人
Chennybaba
检查集群状态:
[grid@rac02 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
所有 Oracle 数据库(实例)状态:
[grid@rac02 ~]$ srvctl status database -d [实例名]
Instance racdb1 is running on node rac01
Instance racdb2 is running on node rac02
ASM状态以及配置:
[grid@rac02 ~]$ srvctl status asm
ASM is running on rac01,rac02
[grid@rac02 ~]$ srvctl config asm -a
ASM home: /u01/app/11.2.0/grid
ASM listener: LISTENER
ASM is enabled.
使用 srvctl 启动、停止所有实例:
[oracle@rac01 ~]# srvctl stop database -d racdb
[oracle@rac01 ~]# srvctl start database -d racdb
查询crs状态
[grid@rac1 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
磁盘组:
[grid@rac1 ~]$ asmca
数据库(实例)管理:
[oracle@rac1 ~]$ dbca