您好,登錄后才能下訂單哦!
本篇內容主要講解“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”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。