RAC集群OCR的维护(4)

时间:2025-05-07

ocrconfig -import file_name

5、 Restoring the Oracle Cluster Registry from Automatically Generated OCR Backups

Use the following procedure to restore the OCR on UNIX-based systems:

1. Identify the OCR backups using the ocrconfig -showbackup

command. Review the contents of the backup using ocrdump

-backupfile file_name where file_name is the name of the

backup file.

2. Stop Oracle Clusterware on all of the nodes in your RAC database by

executing the init.crs stop command on all of the nodes.

3. Perform the restore by applying an OCR backup file that you identified

in Step 1 using the following command where file_name is the name of the OCR that you want to restore. Make sure that the OCR devices that you specify in the OCR configuration exist and that these OCR

devices are valid before running this command.

4. ocrconfig -restore file_name

5. Restart Oracle Clusterware on all of the nodes in your cluster by

restarting each node or by running the init.crs start command.

6. Run the following command to verify the OCR integrity where the -n

all argument retrieves a listing of all of the cluster nodes that are

configured as part of your cluster:

7. cluvfy comp ocr -n all [-verbose]

There is an automatic backup mechanism for OCR. The default location is : $ORA_CRS_HOME\cdata\"clustername"\ To display backups : ocrconfig -showbackup To restore a backup : ocrconfig -restore The automatic backup mechanism keeps upto about a week old copy. So, if you want to retain a backup copy more than that, then you should copy that "backup" file to some other name. Unfortunately there are a couple of bugs regarding backup file manipulation, and changing default backup dir on Windows. These will be fixed in 10.1.0.4. OCR backup on Windows are absent. Only file in the backup directory is temp.ocr which would be the last backup. You can restore this most recent backup by using the command ocr -restore temp.ocr If you want to take a logical copy of OCR at any time use : ocrconfig -export , and use -import option to restore the contents back.

…… 此处隐藏:47字,全部文档内容请下载后查看。喜欢就下载吧 ……
RAC集群OCR的维护(4).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219