OCR的操作
OCR的操作基本都需要root使用者
ORACLE建議將OCR預設自動備份位置改變到RAC共享儲存上,
OCR預設自動備份位置:node1的$ORACLE_BASE/crs/cdata/crsname
改變自動備份位置:
# ocrconfig -backuploc
OCR預設自動備份位置:node1的$ORACLE_BASE/crs/cdata/crsname
改變自動備份位置:
# ocrconfig -backuploc
物理備份OCR:
# ocrdump -backupfile
PROT-302: Failed to initialize ocrdump
# 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
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
# ocrconfig -restore
邏輯備份OCR:
# ocrconfig -export /shared/export/ocrback.dmp
# ocrconfig -export /shared/export/ocrback.dmp
邏輯恢復OCR:
# ocrconfig -import /shared/export/ocrback.dmp
# ocrconfig -import /shared/export/ocrback.dmp
驗證OCR完整性(oracle使用者執行):
$ cluvfy comp ocr -n all
$ 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.
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.
OCR of correct Version "2" exists.
Checking data integrity of OCR...
Data integrity check for OCR passed.
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
# 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
# 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建立成功。
到這裡mirror ocr建立成功。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17997/viewspace-607299/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- OCR文字識別軟體線上如何操作?
- 11g RAC 中 OCR 及Voting Disk 相關操作
- Tesseract-OCR-02-Tesseract-OCR 的安裝與 環境變數配置變數
- oracle重建ocrOracle
- 中國首份OCR白皮書出爐,基於深度學習的OCR已成主流深度學習
- RPA之眼:AI-OCR,Fax-OCR概述AI
- OCR/Vote disk 維護操作: (新增/刪除/替換/移動) (文件 ID 1674859.1)
- 【OCR】使用ocrdump工具獲取叢集登錄檔(OCR)的詳細內容
- Tesseract OCR AndroidAndroid
- ios OCR技術iOS
- OCR維護命令
- ORACLE RAC重建OCROracle
- 最好用的OCR識別軟體
- Oracle OCR的備份與恢復Oracle
- 管理oracle叢集中的ocr檔案Oracle
- 替換oracle叢集中的OCR 映象Oracle
- 管理RAC中的OCR(Oracle Cluster Register)Oracle
- C#中OCR的靠譜方式C#
- 【MOS】OCR/Vote disk 維護操作: (新增/刪除/替換/移動) (文件 ID 1674859.1)
- OCR自動備份目錄cdata下出現大量的OCR備份檔案問題
- OCR活體檢測
- OCR技術簡介
- OCR識別技術
- oracle遷移OCR盤Oracle
- Android OCR之tesseractAndroid
- How to restore ASM based OCRRESTASM
- Three commands for OCR maintenanceAINaN
- OCR識別的技術流程解析1
- OCR識別的技術流程解析2
- Oracle ClusterWare 的OCR叢集登錄檔Oracle
- 【OCR】OCR備份策略及備份介質有效性驗證
- (轉)【OCR】OCR備份策略及備份介質有效性驗證
- 基於神經網路的OCR識別神經網路
- 模擬 easywechat 開發騰訊的 ocr 包
- Tesseract OCR的下載安裝和啟動
- oracle 11g CSS 和OCR 的恢復OracleCSS
- Oracle10g OCR及Voting Disk的Oracle
- ocr文字識別技術