oracle 11G rac 检查集群组件的状态和配置

1:检查OHASCRS集群

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

 Note:ohasd包含了crsd、ocssd、evmd.

 

2:检查asm的配置和运行情况

   1:检查状态

   srvctl asm status

   Note:可以看到asm在哪几个节点上running

   2:检查asm的

   srvctl config asm -a

   Note:看到asm HOME,asm LISTENER,enable/disable信息

 

3:检查database的配置(mesdb为数据库的名字,mesdb1,mesdb2为数据库实例名,不要hostname和database name混淆)

[grid@rac1 ~]# srvctl config database -d mesdb -a
Database unique name: mesdb
Database name: mesdb
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/mesdb/spfilemesdb.ora
Domain: 
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: mesdb
Database instances: mesdb1,mesdb2
Disk Groups: DATADG,FRA
Mount point paths: 
Services: 
Type: RAC
Database is enabled
Database is administrator managed

 

4:检查instance的status

[grid@rac1 ~]# srvctl status instance -d mesdb -i mesdb1
Instance mesdb1 is running on node rac1

[grid@rac1 ~]# srvctl status instance -d mesdb -i mesdb2
Instance mesdb2 is running on node rac2


5:查看database的status

[grid@rac1 ~]# srvctl status instance -d mesdb


6:节点应用程序状态

[grid@rac1 ~]# srvctl status nodeapps

Note:里面含有VIP、GSD、ONS的上各个节点的运行状态


7:查看nodeapps的配置

[grid@rac1 ~]# srvctl config nodeapps -a -g -s -l


8:查看vip的状态和配置

查看vip rac1和rac2两个节点的状态

[grid@rac1 ~]# srvctl status vip -n rac1
[grid@rac1 ~]# srvctl status vip -n rac2

查看vip的配置

[gird@rac1 ~]# srvctl config vip -n rac1

[gird@rac1 ~]# srvctl config vip -n rac2


9:查看监听的状态和配置

检查监听的状态

[grid@rac1 ~]# srvctl status listener
检查监听的配置

[grid@rac1 ~]# srvctl config listener -a


10:查看scan的状态和配置

检查scan的状态

[grid@rac1 ~]# srvctl status scan

检查scan的配置

[grid@rac1 ~]# srvctl config scan


11:检查资源状态

[grid@rac1 ~]# crsctl status res -t

Note:oc4和gsd默认是offline

你可能感兴趣的:(oracle,rac)