1. See if there is an OCR backup
# Ocrconfig-showbackup
If not, back up one copy.
# ocrconfig-export/oracle/bak/ocr/ocr_11291433_exp.ocr-s Online
2. View current configuration
[Email protected] ocr]# Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:2
Total Space (Kbytes): 497744
Used Space (Kbytes): 3848
Available Space (Kbytes): 493896
id:573624763
Device/file Name:/DEV/RAW/RAW1
Device/file Integrity Check Succeeded
Device/file Not Configured
Cluster Registry Integrity Check succeeded
3. Add image
If there is currently only one OCR, you cannot directly modify the location, first add a mirror OCR, and then modify
[Email protected] oracle]# Ocrconfig-replace ocrmirror/dev/raw/raw5
4. Confirm
[Email protected] oracle]# Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:2
Total Space (Kbytes): 497744
Used Space (Kbytes): 3848
Available Space (Kbytes): 493896
id:573624763
Device/file Name:/DEV/RAW/RAW1
Device/file Integrity Check Succeeded
Device/file Name:/dev/raw/raw5
Device/file Integrity Check Succeeded
Cluster Registry Integrity Check succeeded
5. Mobile
[Email protected] ~]$ Ocrconfig-replace ocr/dev/raw/raw6
Prot-20:insufficient permission to proceed. Require Privileged User
[[email protected] ~]$ su root
Password:
[Email protected] oracle]# Ocrconfig-replace ocr/dev/raw/raw6
6. Confirm
[Email protected] oracle]# Ocrcheck
Status of Oracle Cluster Registry is as follows:
Version:2
Total Space (Kbytes): 497744
Used Space (Kbytes): 3848
Available Space (Kbytes): 493896
id:573624763
Device/file Name:/dev/raw/raw6
Device/file Integrity Check Succeeded
Device/file Name:/dev/raw/raw5
Device/file Integrity Check Succeeded
Cluster Registry Integrity Check succeeded
7, confirm the/etc/oracle/ocr.loc of all nodes
[Email protected] oracle]# Cat/etc/oracle/ocr.loc
#Device/file/dev/raw/raw1 getting replaced by device/dev/raw/raw6
Ocrconfig_loc=/dev/raw/raw6
Ocrmirrorconfig_loc=/dev/raw/raw5
If there is no synchronization, make manual modifications.
RAC Mobile OCR