RAC集群OCR的维护(4)
时间:2025-05-07
时间: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字,全部文档内容请下载后查看。喜欢就下载吧 ……上一篇:双升打法技巧指南