Oracle RAC add and delete OCR
Oracle RAC backup and recovery OCR reference:
Oracle Clusterware supports up to two OCR, one common OCR and one image OCR. if you use the External Redundancy method to store OCR, you can also add an image OCR. If you use the Normal Redundancy method to store OCR, you cannot add it again.
Add normal OCR as follows:
ocrconfig -replace ocr destination_fileocrconfig -replace ocr disk
-- Destination_file or disk is the OCR storage location to be added
The image OCR method is as follows:
ocrconfig -replace ocrmirror destination_file ocrconfig -replace ocrmirror disk
-- Destination_file or disk is the OCR storage location to be added
-- Run the preceding command as the root user.
For example, add image OCR:
1. view the current OCR STATUS OF THE SYSTEM
[Oracle @ node1 ~] $ Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version: 2
Total space (kbytes): 104344
Used space (kbytes): 3816
Available space (kbytes): 100528
ID: 497615595
Device/File Name:/dev/raw/raw1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
We can see that the current system only has one OCR storage (for normal OCR), In/dev/raw/raw1.
If you add another normal OCR, the following error is returned:
[Root @ node1 bin] #./ocrconfig-replace ocr/dev/raw/raw7
PROT-16: Internal Error