【Oracle】RAC集群中的命令
数据库名称:racdb
节点名称:rac3、rac4
注:以下命令均在grid用户中执行
1.查看集群节点的状态:
[grid@rac3 ~]$ crsctl check cluster
[grid@rac3 ~]$ crsctl check crs
2.查看全部节点的实例启动情况:
[grid@rac3 ~]$ srvctl status database -d racdb
3.查看指定节点的实例启动情况:
[grid@rac3 ~]$ srvctl status instance -d racdb -i RACDB1
4.查看节点中应用程序状态:
[grid@rac3 ~]$ srvctl status nodeapps
5.查询数据库名称:
[grid@rac3 ~]$ srvctl config database
6.列出数据库的配置信息:
[grid@rac3 ~]$ srvctl config database -d racdb -a
7.查看ASM磁盘状态:
[grid@rac3 ~]$ srvctl status asm
8.查看ASM磁盘的配置情况:
[grid@rac3 ~]$ srvctl config asm -a
9.查看集群监听状态:
[grid@rac3 ~]$ srvctl status listener
10.查看集群监听配置:
[grid@rac3 ~]$ srvctl config listener -a
11.查看集群中各种资源状态:
[grid@rac3 ~]$ crsctl stat resource -t
[grid@rac3 ~]$ crsctl stat resource
[grid@rac3 ~]$ crs_stat -t