美文网首页
Oracle RAC常用命令

Oracle RAC常用命令

作者: Chennybaba | 来源:发表于2019-01-11 00:21 被阅读0次

检查集群状态:

[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

相关文章

网友评论

      本文标题:Oracle RAC常用命令

      本文链接:https://www.haomeiwen.com/subject/cpxtdqtx.html