In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to back up and restore OCR in RAC". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to back up and restore OCR in RAC.
1 stop all nodes crs
Crsctl stop crs
2 backup OCR (export mode) root user execution
Ocrconfig-export / tmp/ocr.exp
3 start crs and destroy OCR content
Crsctl start crs
Dd if=/dev/zero f=/dev/raw/raw1 bs=1024 count=102400
4 check OCR (ocrcheck,cluvfy), and crs has been shut down automatically
[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 restore OCR (import mode) root user execution
Ocrconfig-import / tmp/ocr.exp
6 check OCR (ocrcheck,cluvfy) again
[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 start all crs resources and check if the status is normal
[root@rac1 cluvfy] # crs_start-all
[root@rac1 cluvfy] # crs_stat-t
At this time, all resources and services should be started and returned to normal.
At this point, I believe you have a deeper understanding of "how to back up and restore OCR in RAC". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.