ITPub博客

首页 > Linux操作系统 > Linux操作系统 > OCR的操作

OCR的操作

原创 Linux操作系统 作者:byfree 时间:2009-06-23 17:46:16 0 删除 编辑
OCR的操作基本都需要root用户
ORACLE建议将OCR默认自动备份位置改变到RAC共享存储上,
OCR默认自动备份位置:node1的$ORACLE_BASE/crs/cdata/crsname
改变自动备份位置:
# ocrconfig -backuploc
物理备份OCR:
# ocrdump -backupfile
PROT-302: Failed to initialize ocrdump
metalink对这个问题的解释如下:
Cause:
The command "ocrdump -backupfile filename" fails to dump the content of the specified backup file if the backup file is not placed on an OCR-compatible device, which can be used to configure as an OCR device.
This issue was reported in Bug 4966320, Bug 7421563, Bug 5893432, Bug 5654475, Bug 7698962 fixed via internal unpublished Bug 4870817
Solution:
This bug is known to have been fixed in latest CRS bundle patch for 10.2.0.4.  For more information, please consult Note 405820.1
物理恢复OCR:
# ocrconfig -restore /cdata/crsname/day.ocr
逻辑备份OCR:
# ocrconfig -export /shared/export/ocrback.dmp
逻辑恢复OCR:
# ocrconfig -import /shared/export/ocrback.dmp
验证OCR完整性(oracle用户执行):
$ cluvfy comp ocr -n all
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.
显示OCR和镜像配置:
# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     262144
         Used space (kbytes)      :       3256
         Available space (kbytes) :     258888
         ID                       :  773639647
         Device/File Name         : /ocr/ocr.ora
                                    Device/File integrity check succeeded
                                    Device/File not configured
         Cluster registry integrity check succeeded
        
# ocrconfig -replace ocrmirror /ocr/ocrmirror.ora
PORT-21: Invalid parameter
用如下方法解决这个报错(linux):
# touch /ocr/ocrmirror.ora
# ocrconfig -replace ocrmirror /ocr/ocrmirror.ora(也可以通过vi /etc/oracle/ocr.loc完成)
# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     262144
         Used space (kbytes)      :       3272
         Available space (kbytes) :     258872
         ID                       :  773639647
         Device/File Name         : /ocr/ocr.ora
                                    Device/File integrity check succeeded
         Device/File Name         : /ocr/ocrmirror.ora
                                    Device/File integrity check succeeded
         Cluster registry integrity check succeeded
到这里mirror ocr创建成功。
 

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

上一篇: votedisk的操作
下一篇: logmnr使用记录
请登录后发表评论 登录
全部评论

注册时间:2008-04-16

  • 博文量
    65
  • 访问量
    211978