The following article introduces the addition and deletion of Oracle OCR images in Australia. We all know the information about Oracle OCR record node member configuration, which includes the following, configuration information of CRS resources such as ASM, instance, listener, and VIP.
Check the Oracle OCR status
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw4 being deleted
- ocrconfig_loc=/dev/raw/raw2
- local_only=false
Add an image
- [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw4
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file getting replaced by device /dev/raw/raw4
- ocrconfig_loc=/dev/raw/raw2
- ocrmirrorconfig_loc=/dev/raw/raw4
- local_only=false
- [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw6
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw6
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw4 getting replaced by device /dev/raw/raw6
- ocrconfig_loc=/dev/raw/raw2
- ocrmirrorconfig_loc=/dev/raw/raw6
- local_only=false
Oracle OCR can only have one image. The new image file will replace the original image.
Delete an Oracle OCR image file
[Root @ node3 ~] # Ocrconfig-replace ocrmirror --- without the file path name
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
- [root@node3 ~]# cat /etc/oracle/ocr.loc
- #Device/file /dev/raw/raw6 being deleted
- ocrconfig_loc=/dev/raw/raw2
- local_only=false
Note: If you delete the Oracle OCR master file, the corresponding image file will automatically become the master file.
For example:
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw2
- Device/File integrity check succeeded
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Cluster registry integrity check succeeded
- [root@node3 ~]# ocrconfig -replace ocr
- [root@node3 ~]# ocrcheck
- Status of Oracle Cluster Registry is as follows :
- Version : 2
- Total space (kbytes) : 208656
- Used space (kbytes) : 6496
- Available space (kbytes) : 202160
- ID : 844916878
- Device/File Name : /dev/raw/raw4
- Device/File integrity check succeeded
- Device/File not configured
- Cluster registry integrity check succeeded
The preceding content describes the addition and deletion of Oracle OCR images. We hope this will help you in this regard.