oracle 11g ocr 冗余配置
https://blog.csdn.net/royjj/article/details/30506343
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 the
work 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 or
third-party mirrored volumes.
3、假设ocr 配置在有镜像的硬件或者在第3方的镜像卷上时也建议最少冗余2个ocr
eg:加入多个ocr (最多5个)
ocrconfig -add +asm_disk_group| file_name
ocrconfig -delete +ASM_disk_group| file_name
[root@vmrac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 ~]# ocrconfig -add +ARCH --------------------------加入一个新的ocr +ARCH
[root@vmrac1 ~]# ocrcheck ------------------------------检查后已经成功加入
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +ARCH
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
同理再加入几个 dg
[root@vmrac1 ~]# ocrconfig -add +DATANEW
[root@vmrac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +ARCH
Device/File integrity check succeeded
Device/File Name : +DATANEW
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 ~]# ocrconfig -add +FLASH
[root@vmrac1 ~]# orcheck
-bash: orcheck: command not found
[root@vmrac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +ARCH
Device/File integrity check succeeded
Device/File Name : +DATANEW
Device/File integrity check succeeded
Device/File Name : +FLASH
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +ARCH
Device/File integrity check succeeded
Device/File Name : +DATANEW
Device/File integrity check succeeded
Device/File Name : +FLASH
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 ~]# ocrcheck -local
Status of Oracle Local Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2728
Available space (kbytes) : 259392
ID : 935756415
Device/File Name : /u02/app/11.2.0.3/grid/cdata/vmrac1.olr
Device/File integrity check succeeded
Local registry integrity check succeeded
Logical corruption check succeeded
------------这里我们再来看下ocr 的配置信息 。配置文件在Linux环境下位于 /etc/oracle/ocr.loc
[root@vmrac1 ~]# cd /etc/oracle
[root@vmrac1 oracle]# ls
lastgasp ocr.loc ocr.loc.orig olr.loc olr.loc.bkp olr.loc.orig oprocd scls_scr setasmgid
[root@vmrac1 oracle]# more ocr.loc
#Device/file getting replaced by device +FLASH
ocrconfig_loc=+CRS
ocrmirrorconfig_loc=+ARCH ----------新加入的 ocr 镜像组
ocrconfig_loc3=+DATANEW
ocrconfig_loc4=+FLASH
local_only=false
[root@vmrac1 oracle]# more olr.loc
olrconfig_loc=/u02/app/11.2.0.3/grid/cdata/vmrac1.olr
crs_home=/u02/app/11.2.0.3/grid
-----------这里处理加入新的ocr外,我们也能够替换老的 ocr dg:
[root@vmrac1 oracle]# ocrconfig -replace +ARCH -replacement +FLASH
[root@vmrac1 oracle]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +FLASH
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 oracle]# ocrconfig -replace +FLASH -replacement +ARCH
[root@vmrac1 oracle]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +ARCH
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 oracle]#
---------------------注意:当 仅仅有一个 ocr dg 时以上命令会报错:
[root@vmrac1 oracle]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3540
Available space (kbytes) : 258580
ID : 1902812549
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
[root@vmrac1 oracle]# ocrconfig -replace +CRS -replacement +ARCH
PROT-28: Cannot delete or replace the only configured Oracle Cluster Registry location
[root@vmrac1 oracle]#
正确做法:
假设当前的ocr 少于2个 ,则上述ocr 的替换命令会出错
假设仅仅有一个ocr 时我们能够先加入一个ocr 。再删除原来的ocr
# ocrconfig -add new_OCR_location
# ocrconfig -delete current_OCR_location
oracle 11g ocr 冗余配置的更多相关文章
- Oracle 11g R2手动配置EM(转)
转自:http://blog.itpub.net/9034054/viewspace-1973418/ Oracle 11g R2手动配置EM Oracle 作者:luashin 时间:2016-01 ...
- Oracle 11g R2 常用配置与日志的文件位置
假设.bash_profile中oracle相关环境变量如下: $ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 $ORACLE_BASE=/u01/a ...
- Oracle 11g详细安装配置教程
最近开始学习Oracle数据库了,根据我的理解Oracle数据库是一种强大.复杂.高性能的数据库,而且价格不菲,使用都是中大型企业,土豪专用.学习一种数据库的入门工作就是先安装这种数据库,鉴于大批道友 ...
- Linux 6.x 下Oracle 11g R2 安装配置
Oracle 11g R2 数据库安装硬件配置要求: 最小内存 1 GB of RAM 虚拟内存容量,这个oracle也有要求,不用担心此时的swap分区不够oracle的要求 .虚拟内存swap如何 ...
- 静默安装oracle 11g及参数配置优化详解
一.安装前准备工作1.修改主机名#vi /etc/hosts //并添加内网IP地址对应的hostname,如下127.0.0.1 localhost::1 ...
- oracle 11g Enterprise Manager配置失败
Enterprise Manager以下简称em,Database Configuration Assistant简称DBCA. 病症 监听程序未启动或数据库服务未注册到该监听程序.启动该监听程序并注 ...
- centOS学习part5:oracle 11g安装之环境准备
0 前几篇依次向大家介绍了centOS的基本安装以及常用软件的安装配置,接下来我们将挑战的是oracle 11g的安装配置.与之前安装的软件不一样的是,由于oracle并非开源免费软件(需要向orac ...
- ORACLE 11G R2 RAC classical install OGG12.1(LINUX) 经典抽取模式单项同步配置OGG12.1
博文结构图如下: 一.环境描述以及注意事项 1.1 环境简介 IP 系统 Oracle版本 OGG版本 源端 172.16.10.16/36 RHEL6.5 oracle11204 12.1 目标端 ...
- Linux平台oracle 11g单实例 安装部署配置 快速参考
1.重建主机的Oracle用户 组 统一规范 uid gid 以保证共享存储挂接或其他需求的权限规范 userdel -r oracle groupadd -g 7 oinstall groupadd ...
随机推荐
- kafka消费者客户端
Kafka消费者 1.1 消费者与消费者组 消费者与消费者组之间的关系 每一个消费者都隶属于某一个消费者组,一个消费者组可以包含一个或多个消费者,每一条消息只会被消费者组中的某一个消费者所消费.不 ...
- 如何在IIS7上配置 FTP7并使用IIS管理凭据方式进行验证
在 Windows Server 2008 R2 发布后,gOxiA 就开始着手于相关的测试和评估.IIS 是重点测试和评估之一!而今天与大家分享的是如何在 IIS7 上配置 FTP7 使用 IIS ...
- 3D立体显示技术原理与游戏应用历程简介 【转】
本文来自 中关村ZOL 「3D 立体显示」可说是近来娱乐产业相当热门的话题,不但有好莱坞推出<阿凡达>等卖座 3D 立体电影,全球各大家电厂商也积极布局准备推出一系列支持 3D 立体显示的 ...
- MySQL监控工具——innotop
MySQL监控工具--innotop innotop是一个mysql数据库实时监控工具,其功能强大,信息种类繁多,很能体现数据库的状态. 它实际上是一个perl脚本,整合show status/sho ...
- 1毛钱的CDN你家的站点会用吗?
在第七届中国云计算大会上,作为CDN领域最具重量级的受邀发言人.迅雷CTO.网心科技CEO陈磊在发表重要演讲时,宣布迅雷将推出国内首家无限节点CDN.而这一款CDN号称眼下国内最廉价的CDN,售价仅为 ...
- JAVA Eclipse开发Android如何让超出界面的部分自动显示滚动条
在原有布局的最外围添加一层ScrollView,注意原有布局的声明也要删了 <ScrollView xmlns:android="http://schemas.android.com/ ...
- jquery ajax传参数问题
var fd = new FormData();//实例化表单,提交数据使用fd.append('imgUrl',imgUrl);//将files追加进去fd.append('typeId',type ...
- 谷歌浏览器插件-html页面js事件查看器
谷歌浏览器插件-html页面js事件查看器 1.下载 下载地址:http://files.cnblogs.com/files/graceup/VisualEvent.zip 解压得到文件:Visual ...
- Coursera上的machine learning学完啦
Coursera上的第一门公开课最终要结束啦-- 全部的代码http://download.csdn.net/detail/abcd1992719g/7306053 老师的Octave代码很赞.框架打 ...
- Hibernate学习五----------组件属性
© 版权声明:本文为博主原创文章,转载请注明出处 实例 1.项目结构 2.pom.xml <project xmlns="http://maven.apache.org/POM/4.0 ...