新闻详情

新闻详情

首页 / 资讯中心 / 详情

oracle 11g ocr 冗余配置

发布时间:2026/10/2 11:38:36来源:尧图网络
oracle 11g ocr 冗余配置
在11g 安装过程中默认仅仅能指定一个 dg 用来存储crs voting可是oracle 官方一般建议我们这么来配置1、当ocr没有配置镜像。或者冗余存储时 最少3个ocr 。假设底层存储不是RAID的话oracle建议镜像OCR镜像能够避免单点故障。■ At least two OCR locations if OCR is configured on an Oracle ASM disk group.You should configure OCR in two independent disk groups. Typically this is thework area and the recovery area.2、假设ocr 配置在oracle asm disk group上时建议最少两个ocr 位置ocr 应当配置在两个单独的 disk group■ At least two OCR locations if OCR is configured on mirrored hardware orthird-party mirrored volumes.3、假设ocr 配置在有镜像的硬件或者在第3方的镜像卷上时也建议最少冗余2个ocreg加入多个ocr 最多5个ocrconfig -add asm_disk_group| file_nameocrconfig -delete ASM_disk_group| file_name[rootvmrac1 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 ~]# ocrconfig -add ARCH --------------------------加入一个新的ocr ARCH[rootvmrac1 ~]# ocrcheck ------------------------------检查后已经成功加入Status of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : ARCHDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded同理再加入几个 dg[rootvmrac1 ~]# ocrconfig -add DATANEW[rootvmrac1 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : ARCHDevice/File integrity check succeededDevice/File Name : DATANEWDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 ~]# ocrconfig -add FLASH[rootvmrac1 ~]# orcheck-bash: orcheck: command not found[rootvmrac1 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : ARCHDevice/File integrity check succeededDevice/File Name : DATANEWDevice/File integrity check succeededDevice/File Name : FLASHDevice/File integrity check succeededDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 ~]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : ARCHDevice/File integrity check succeededDevice/File Name : DATANEWDevice/File integrity check succeededDevice/File Name : FLASHDevice/File integrity check succeededDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 ~]# ocrcheck -localStatus of Oracle Local Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 2728Available space (kbytes) : 259392ID : 935756415Device/File Name : /u02/app/11.2.0.3/grid/cdata/vmrac1.olrDevice/File integrity check succeededLocal registry integrity check succeededLogical corruption check succeeded------------这里我们再来看下ocr 的配置信息 。配置文件在Linux环境下位于 /etc/oracle/ocr.loc[rootvmrac1 ~]# cd /etc/oracle[rootvmrac1 oracle]# lslastgasp ocr.loc ocr.loc.orig olr.loc olr.loc.bkp olr.loc.orig oprocd scls_scr setasmgid[rootvmrac1 oracle]# more ocr.loc#Device/file getting replaced by device FLASHocrconfig_locCRSocrmirrorconfig_locARCH ----------新加入的 ocr 镜像组ocrconfig_loc3DATANEWocrconfig_loc4FLASHlocal_onlyfalse[rootvmrac1 oracle]# more olr.locolrconfig_loc/u02/app/11.2.0.3/grid/cdata/vmrac1.olrcrs_home/u02/app/11.2.0.3/grid-----------这里处理加入新的ocr外我们也能够替换老的 ocr dg[rootvmrac1 oracle]# ocrconfig -replace ARCH -replacement FLASH[rootvmrac1 oracle]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : FLASHDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 oracle]# ocrconfig -replace FLASH -replacement ARCH[rootvmrac1 oracle]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File Name : ARCHDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 oracle]#---------------------注意当 仅仅有一个 ocr dg 时以上命令会报错[rootvmrac1 oracle]# ocrcheckStatus of Oracle Cluster Registry is as follows :Version : 3Total space (kbytes) : 262120Used space (kbytes) : 3540Available space (kbytes) : 258580ID : 1902812549Device/File Name : CRSDevice/File integrity check succeededDevice/File not configuredDevice/File not configuredDevice/File not configuredDevice/File not configuredCluster registry integrity check succeededLogical corruption check succeeded[rootvmrac1 oracle]# ocrconfig -replace CRS -replacement ARCHPROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location[rootvmrac1 oracle]#正确做法假设当前的ocr 少于2个 则上述ocr 的替换命令会出错假设仅仅有一个ocr 时我们能够先加入一个ocr 。再删除原来的ocr# ocrconfig -add new_OCR_location# ocrconfig -delete current_OCR_location
网站建设高端定制企业官网
RELATED

相关资讯

更多精彩内容,欢迎继续阅读

较早相关资讯

最新相关资讯

Python虚拟环境与PyCharm配置实战:告别“明明装好却找不到” 2026/10/2 18:58:34

Python虚拟环境与PyCharm配置实战:告别“明明装好却找不到”

先从我前两天帮一个同学查的问题说起。他在自己电脑上跑一个爬虫脚本,报了ModuleNotFoundError: No module named requests,但命令行里pip list明明显示requests已经装好了。类似这种“明明装了却找不到”的鬼故事,我见了太多。归根到底&…

阅读更多 →
冈萨雷斯图像处理实战:从课本公式到工业落地的工程转化指南 2026/10/2 18:58:34

冈萨雷斯图像处理实战:从课本公式到工业落地的工程转化指南

1. 这不是教科书笔记,而是一线工程师用十年图像项目踩出来的“冈萨雷斯实战地图”如果你正对着《数字图像处理》(冈萨雷斯版)第四版那本厚达900页的砖头书发愁——公式密得像电路板、MATLAB代码示例少得可怜、课后题答案藏在某个不公开的教师…

阅读更多 →
YOLO+轻量分割:工业场景实例分割落地实践 2026/10/2 18:58:34

YOLO+轻量分割:工业场景实例分割落地实践

简介:本资源是一套基于YOLO目标检测框架拓展实现图像语义分割与实例分割的完整工程实践包,面向计算机、电子信息工程及数学等专业本科生,适用于课程设计、期末大作业或毕业设计参考。资源包含源码、图片数据集与详细说明文档,聚焦…

阅读更多 →
前端面试中的AI提效:面试官如何考核候选人的工程能力 2026/10/2 18:58:28

前端面试中的AI提效:面试官如何考核候选人的工程能力

1. 简历里写着“AI提效”的人,我首先看什么这半年我们前端团队扩招,前后我面了三十来个候选人,投高级前端岗位的,简历里十有八九会提到“AI提效”。有的写得很克制,附带了场景和结果;有的写得很玄幻&#x…

阅读更多 →
私有化RAG知识库搭建实战:从架构设计到避坑指南 2026/10/2 18:58:28

私有化RAG知识库搭建实战:从架构设计到避坑指南

去年年中我接到一个任务:把公司散落在各个Wiki、语雀、Confluence、甚至本地 Word 和 PDF 里的产品文档、技术方案、运维手册统一管起来,做一个能“问答”的知识库。老板的要求很明确——数据不能出内网、不能用 SaaS 服务、要能跟现有的 OA 审批流和钉钉…

阅读更多 →
微信开源知识库实战:用Ollama+Dify搭建本地RAG全流程 2026/10/2 18:58:15

微信开源知识库实战:用Ollama+Dify搭建本地RAG全流程

我最近把微信团队开源的那套知识库项目完整过了一遍,也顺手在自己机器上搭了一个本地 RAG 环境做验证,整个过程踩了一些坑,但收获确实很大。如果你也在关注开源知识库相关的话题,或者正在为团队搭建企业级问答系统,这篇…

阅读更多 →

今日资讯

本周资讯

本月资讯

看完文章仍有疑问?

联系尧图顾问,获取一对一建站咨询

立即免费咨询 📞 400-888-8888
📞 ✉