RAC维护命令总结(1)

1、检查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

2、集群资源启动完毕后,查看集群状态:
[grid@rac1 ~]$ crs_stat –t
[grid@rac1 ~]$ crs_stat –t –v

3、检查集群节点
[grid@rac1 ~]$ olsnodes -n
rac1 1
rac2 2

4、检查两个节点上的oracle tns监听器进程

在节点1上查询:
[grid@rac1 ~]$ ps -ef | grep lsnr | grep -v 'grep' | grep -v 'ocfs' |awk '{print $9}'
LISTENER_SCAN1
LISTENER

在节点2上查询:
[grid@rac2 ~]$ ps -ef | grep lsnr | grep -v 'grep' | grep -v 'ocfs' |awk '{print $9}'
LISTENER_SCAN1
LISTENER

5、如果在 Oracle ASM 上安装了 OCR 和表决磁盘文件,则以 Grid Infrastructure 安装所有者的身份,使用下面的命令语法来确认当前正在运行已安装的 Oracle ASM
[grid@rac1 ~]$ srvctl status asm –a
ASM is running on rac1,rac2
ASM is enabled.

6、检查 Oracle 集群注册表 (OCR)

[grid@rac1 ~]$ ocrcheck

Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2720
Available space (kbytes) : 259400
ID : 1482448137
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded

7、检查表决磁盘
[grid@rac1 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 286aa1683d864f11bf4478228196a1e6 (ORCL:CRSVOL1) [CRS]
Located 1 voting disk(s).

8、检查集群的运行状况(集群化命令)

grid 用户身份运行以下命令。

[grid@rac1 ~]$ crsctl check cluster

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

[grid@rac1 ~]$[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25837813/viewspace-1052005/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25837813/viewspace-1052005/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值