RAC中怎么备份与恢复OCR

发布时间:2021-11-11 15:28:03 作者:iii
来源:亿速云 阅读:128

本篇内容主要讲解“RAC中怎么备份与恢复OCR”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“RAC中怎么备份与恢复OCR”吧!

1停所有节点crs

crsctl stop crs

2备份OCR(导出方式)root用户执行

ocrconfig -export /tmp/ocr.exp

3启动crs并破坏OCR内容

crsctl start crs

dd if=/dev/zero f=/dev/raw/raw1 bs=1024 count=102400

4检查OCR(ocrcheck,cluvfy),此时crs已经自动关闭

[root@rac1 cluvfy]# ocrcheck

PROT-601: Failed to initialize ocrcheck

[root@rac1 cluvfy]# ./runcluvfy.sh comp ocr

Verifying OCR integrity 

Checking OCR integrity...

Checking the absence of a non-clustered configuration...

All nodes free of non-clustered, local-only configurations.

ERROR: 

Unable to obtain OCR integrity details from any of the nodes.

OCR integrity check failed.

Verification of OCR integrity was unsuccessful on all the nodes.

5恢复OCR(导入方式)root用户执行

ocrconfig -import /tmp/ocr.exp

6再次检查OCR(ocrcheck,cluvfy)

[root@rac1 tmp]# ocrcheck

Status of Oracle Cluster Registry is as follows :

         Version                  :          2

         Total space (kbytes)     :     104344

         Used space (kbytes)      :       4348

         Available space (kbytes) :      99996

         ID                       :  990580844

         Device/File Name         : /dev/raw/raw1

                                    Device/File integrity check succeeded

                                    Device/File not configured

         Cluster registry integrity check succeeded

[root@rac1 cluvfy]# ./runcluvfy.sh comp ocr

Verifying OCR integrity 

Checking OCR integrity...

Checking the absence of a non-clustered configuration...

All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR...

OCR of correct Version "2" exists.

Checking data integrity of OCR...

Data integrity check for OCR passed.

OCR integrity check passed.

Verification of OCR integrity was successful. 

7启动crs所有资源并检查状态是否正常

[root@rac1 cluvfy]# crs_start -all

[root@rac1 cluvfy]# crs_stat -t

此时所有资源及服务应当全部启动,恢复正常。

到此,相信大家对“RAC中怎么备份与恢复OCR”有了更深的了解,不妨来实际操作一番吧!这里是亿速云网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

推荐阅读:
  1. mongodb 备份与恢复
  2. MongoDB备份与恢复

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

ocr rac

上一篇:如何从远程桌面服务到获取Empire Shell

下一篇:Django中的unittest应用是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》