How can I operate Oracle OCR images correctly?

Source: Internet
Author: User

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

 
 
  1. [root@node3 ~]# ocrcheck  
  2. Status of Oracle Cluster Registry is as follows :  
  3. Version : 2  
  4. Total space (kbytes) : 208656  
  5. Used space (kbytes) : 6496  
  6. Available space (kbytes) : 202160  
  7. ID : 844916878  
  8. Device/File Name : /dev/raw/raw2  
  9. Device/File integrity check succeeded  
  10. Device/File not configured  
  11. Cluster registry integrity check succeeded  
  12. [root@node3 ~]# cat /etc/oracle/ocr.loc  
  13. #Device/file /dev/raw/raw4 being deleted  
  14. ocrconfig_loc=/dev/raw/raw2  
  15. local_only=false 

Add an image

 
 
  1. [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw4  
  2. [root@node3 ~]# ocrcheck  
  3. Status of Oracle Cluster Registry is as follows :  
  4. Version : 2  
  5. Total space (kbytes) : 208656  
  6. Used space (kbytes) : 6496  
  7. Available space (kbytes) : 202160  
  8. ID : 844916878  
  9. Device/File Name : /dev/raw/raw2  
  10. Device/File integrity check succeeded  
  11. Device/File Name : /dev/raw/raw4  
  12. Device/File integrity check succeeded  
  13. Cluster registry integrity check succeeded  
  14. [root@node3 ~]# cat /etc/oracle/ocr.loc  
  15. #Device/file getting replaced by device /dev/raw/raw4  
  16. ocrconfig_loc=/dev/raw/raw2  
  17. ocrmirrorconfig_loc=/dev/raw/raw4  
  18. local_only=false 
  19. [root@node3 ~]# ocrconfig -replace ocrmirror /dev/raw/raw6  
  20. [root@node3 ~]# ocrcheck  
  21. Status of Oracle Cluster Registry is as follows :  
  22. Version : 2  
  23. Total space (kbytes) : 208656  
  24. Used space (kbytes) : 6496  
  25. Available space (kbytes) : 202160  
  26. ID : 844916878  
  27. Device/File Name : /dev/raw/raw2  
  28. Device/File integrity check succeeded  
  29. Device/File Name : /dev/raw/raw6  
  30. Device/File integrity check succeeded  
  31. Cluster registry integrity check succeeded  
  32. [root@node3 ~]# cat /etc/oracle/ocr.loc  
  33. #Device/file /dev/raw/raw4 getting replaced by device /dev/raw/raw6  
  34. ocrconfig_loc=/dev/raw/raw2  
  35. ocrmirrorconfig_loc=/dev/raw/raw6  
  36. 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

 
 
  1. [root@node3 ~]# ocrcheck  
  2. Status of Oracle Cluster Registry is as follows :  
  3. Version : 2  
  4. Total space (kbytes) : 208656  
  5. Used space (kbytes) : 6496  
  6. Available space (kbytes) : 202160  
  7. ID : 844916878  
  8. Device/File Name : /dev/raw/raw2  
  9. Device/File integrity check succeeded  
  10. Device/File not configured  
  11. Cluster registry integrity check succeeded  
  12. [root@node3 ~]# cat /etc/oracle/ocr.loc  
  13. #Device/file /dev/raw/raw6 being deleted  
  14. ocrconfig_loc=/dev/raw/raw2  
  15. local_only=false 

Note: If you delete the Oracle OCR master file, the corresponding image file will automatically become the master file.

For example:

 
 
  1. [root@node3 ~]# ocrcheck  
  2. Status of Oracle Cluster Registry is as follows :  
  3. Version : 2  
  4. Total space (kbytes) : 208656  
  5. Used space (kbytes) : 6496  
  6. Available space (kbytes) : 202160  
  7. ID : 844916878  
  8. Device/File Name : /dev/raw/raw2  
  9. Device/File integrity check succeeded  
  10. Device/File Name : /dev/raw/raw4  
  11. Device/File integrity check succeeded  
  12. Cluster registry integrity check succeeded  
  13. [root@node3 ~]# ocrconfig -replace ocr  
  14. [root@node3 ~]# ocrcheck  
  15. Status of Oracle Cluster Registry is as follows :  
  16. Version : 2  
  17. Total space (kbytes) : 208656  
  18. Used space (kbytes) : 6496  
  19. Available space (kbytes) : 202160  
  20. ID : 844916878  
  21. Device/File Name : /dev/raw/raw4  
  22. Device/File integrity check succeeded  
  23. Device/File not configured  
  24. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.