本篇內(nèi)容主要講解“RAC中怎么備份與恢復OCR”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“RAC中怎么備份與恢復OCR”吧!
成都創(chuàng)新互聯(lián)公司是專業(yè)的杜爾伯特網(wǎng)站建設公司,杜爾伯特接單;提供網(wǎng)站建設、成都網(wǎng)站建設,網(wǎng)頁設計,網(wǎng)站設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;采用PHP框架,可快速的進行杜爾伯特網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!1停所有節(jié)點crs
crsctl stop crs
2備份OCR(導出方式)root用戶執(zhí)行
ocrconfig -export /tmp/ocr.exp
3啟動crs并破壞OCR內(nèi)容
crsctl start crs
dd if=/dev/zero f=/dev/raw/raw1 bs=1024 count=102400
4檢查OCR(ocrcheck,cluvfy),此時crs已經(jīng)自動關(guān)閉
[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用戶執(zhí)行
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所有資源并檢查狀態(tài)是否正常
[root@rac1 cluvfy]# crs_start -all
[root@rac1 cluvfy]# crs_stat -t
此時所有資源及服務應當全部啟動,恢復正常。
到此,相信大家對“RAC中怎么備份與恢復OCR”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進入相關(guān)頻道進行查詢,關(guān)注我們,繼續(xù)學習!