OCR/OLR管理

OCR:

oracle集群注册表(ocr)是oracle rac配置信息的资料库,用于管理集群节点列表和实例的信息
ocr位置是安装crs时指定的,位于== cat /etc/oracle/ocr.loc==

[root@host03 ~]# cat /etc/oracle/ocr.loc
#Device/file  getting replaced by device +DGACFS/cluster01/OCRFILE/registry.255.1117900157 
ocrconfig_loc=+DGDATA/cluster01/OCRFILE/registry.255.1117898429
ocrmirrorconfig_loc=+DGFRA/cluster01/OCRFILE/registry.255.1117900147
ocrconfig_loc3=+DGACFS/cluster01/OCRFILE/registry.255.1117900157

检查OCR的完整性

[root@host03 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          4
	 Total space (kbytes)     :     409568
	 Used space (kbytes)      :       2868
	 Available space (kbytes) :     406700
	 ID                       :  301143007
	 Device/File Name         :    +DGDATA
                                    Device/File integrity check succeeded
	 Device/File Name         :     +DGFRA
                                    Device/File integrity check succeeded
	 Device/File Name         :    +DGACFS
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

	 Cluster registry integrity check succeeded

	 Logical corruption check succeeded

[root@host03 ocrbackup]# ocrconfig -delete +DGACFS
[root@host03 ocrbackup]# ocrcheck 
Status of Oracle Cluster Registry is as follows :
	 Version                  :          4
	 Total space (kbytes)     :     409568
	 Used space (kbytes)      :       2900
	 Available space (kbytes) :     406668
	 ID                       :  301143007
	 Device/File Name         :    +DGDATA
                                    Device/File integrity check succeeded
	 Device/File Name         :     +DGFRA
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

	 Cluster registry integrity check succeeded

	 Logical corruption check succeeded

olr:本地注册表

位于:grid_home/host_name.olr
检查本地节点olr状态

[root@host03 ~]# ocrcheck -local
Status of Oracle Local Registry is as follows :
	 Version                  :          4
	 Total space (kbytes)     :     409568
	 Used space (kbytes)      :        816
	 Available space (kbytes) :     408752
	 ID                       : 1286866930
	 Device/File Name         : /u01/app/12.1.0/grid/cdata/host03.olr
                                    Device/File integrity check succeeded

	 Local registry integrity check succeeded

	 Logical corruption check succeeded

还原olr顺序

1  crsctl stop crs
2  [root@host03 ~]# ocrconfig  -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not available
host04     2022/12/03 20:25:41     /home/oracle/ocrbackup/backup_20221203_202541.ocr     0   
3  ocrconfig -local -restore <file_name>
4  [root@host03 ~]# ocrcheck -local
5  crsctl start crs
6  cluvfy comp clr

还原ocr

crsctl stop crs
crsctl start crs -excl
ocrconfig -local -restore <file_name>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

韶博雅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值