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 ...
随机推荐
- 谷歌浏览器chrome设置特定网页使用Https(ssl)访问
1.在浏览器上输入: chrome://net-internals/ 2.在以下位置输入要自动进行https访问的域名即可. 注意:域名不能用范解析,只能一个一个手动输入.
- Geoserver跨域问题
1 Geoserver位war包,使用Tomcat发布的情况 由于geoserver为war形式,需要解决tomcat跨域问题,geoserver版本为2.9.1. (1)下载跨域war包 下载cor ...
- Context都没弄明白,还怎么做Android开发?
Activity mActivity =new Activity() 作为Android开发者,不知道你有没有思考过这个问题,Activity可以new吗?Android的应用程序开发采用JAVA语言 ...
- 在PythonAnyWhere上部署Django项目
http://www.jianshu.com/p/91047e3a4ee9 将项目放到git上,然后将pathonanywhere上的ssh传到git上,没有的话先创建,然后从git上把项目拷贝到pa ...
- FTP经典常用命令
FTP命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操作系统下使用FTP,都会遇到大量的FTP内部命令. 熟悉并灵活应用FTP的内部命令,可以大大方便使用者,并收到事半功倍 ...
- NOIP 2014 D2T3 解方程 Hash大法好
题目大意:给定高次方程an*x^n+...+a1*x^1+a0*x^0=0 求[1,m]区间内有多少个整数根 ai<=10^10000.m<=100W 懒得高精,考场上写的long dou ...
- C#面试基础题1
1.简述 private. protected. public. internal 修饰符的访问权限.(C++中没有internal) private : 私有成员, 在类的内部才可以访问 ,也就是类 ...
- python函数式编程学习之map,reduce,filter,sorted
map(f, list)函数用于将函数f运用到list里的每个元素中 写个例子 def pow(x): return x*x map(pow, [2,3,4]) reduce(f, list)函数用于 ...
- OSG(OpenSceneGraphic) 渲染引擎架构--整体认识 [转]
原文:http://blog.csdn.net/zangle260/article/details/41123067?utm_source=tuicool 本文参考<<osg最长一帧> ...
- MapWindowPoints
中文名 MapWindowPoints Windows CE 1.0及以上版本 头文件 winuser.h 库文件 user32.lib MapWindowPoints函数把相对于一个窗口的坐标空间的 ...