Oracle OCR镜像的增加以及删除的实际操作

以下的文章主要介绍的是Oracle OCR镜像的增加以及删除,我们大家都知道Oracle OCR记录节点成员的相关的配置信息,如ASM、instance、以及listener和VIP等相关的CRS资源的相关配置信息。

公司主营业务:成都做网站、成都网站建设、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联建站是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联建站推出交口免费做网站回馈大家。

检查Oracle OCR的状态

 
 
 
  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 

增加一个镜像

 
 
 
  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只能有一份镜像,新增加的镜像文件会替换掉原来的镜像。

删除OCR的镜像文件

 
 
 
  1. [root@node3 ~]# ocrconfig -replace ocrmirror  

不带文件路径名

 
 
 
  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 

注意如果我们删除了Oracle OCR的主文件,相应的镜像文件自动的变为主文件。

例如:

 
 
 
  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   

上述的相关内容就是对Oracle OCR镜像的增加以及删除的描述,希望会给你带来一些帮助在此方面。

【编辑推荐】

  1. Oracle外键与其主键的实际应用方案
  2. Oracle SQL执行缓慢的原因以及解决方案
  3. Oracle delete执行过程的流程介绍
  4. Oracle小数点的实际保留问题的4方案
  5. 用Oracle外部表来查看相关的报警信息的2方案

分享标题:Oracle OCR镜像的增加以及删除的实际操作
本文链接:http://www.shufengxianlan.com/qtweb/news34/259034.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联