oracle rac 创建ocr,Oracle rac 11g在线添加ocr,votedisk
/client/ocrconfig_.log. Please ensure
you have file creation privileges in the above directory before
running this tool.
用ocrconfig -replace ocrmirror 添加,发现报错。
root@test233 # ocrconfig -replace ocrmirror /oracle/ocrfile2
PROT-21: Invalid parameter
问了下ricky_zhu,他说可能是文件名需要加” “,再试
root@test233 # ocrconfig -replace ocrmirror "/oracle/ocrfile2"
PROT-21: Invalid parameter
找了找 PROT-21: Invalid parameter是啥意思,
里面只提到mirror超过2个时会报这个错,难道我的超过了2个了?
root@test233 # ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 262120
Used space (kbytes) : 3328
Available space (kbytes) : 258792
ID : 926476664
Device/File Name : /oracle/ocrfile1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
在2个机器上分别试都报这个错误。再想,会不会是需要先创建这个文件?
root@test233 # touch /oracle/ocrfile2
root@test233 # ocrconfig -replace ocrmirror /oracle/ocrfile2
成功!!
root@test233 # ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 262120
Used space (kbytes) : 3328
Available space (kbytes) : 258792
ID : 926476664
Device/File Name : /oracle/ocrfile1
Device/File integrity check succeeded
Device/File Name : /oracle/ocrfile2
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Logical corruption check succeeded
察看ocr.loc,发现该文件同时被修改。
root@test233 # cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /oracle/ocrfile2
ocrconfig_loc=/oracle/ocrfile1
ocrmirrorconfig_loc=/oracle/ocrfile2
local_only=false
试着添加第二个mirror, 里说,mirror超过1个,ocr file 超过2个就会报”PROT-21: Invalid parameter “错误,试了试,发现不是那么回事。
Try to add the third mirror
# touch /oracle/ocrfile3
root@test233 # ocrconfig -replace ocrmirror /oracle/ocrfile3
root@test233 #
root@test233 # ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 262120
Used space (kbytes) : 3328
Available space (kbytes) : 258792
ID : 926476664
Device/File Name : /oracle/ocrfile1
Device/File integrity check succeeded
Device/File Name : /oracle/ocrfile3
Device/File integrity check succeeded
Cluster registry integrity check succeeded
Logical corruption check succeeded
在线删除mirror
root@test233 # ocrconfig -replace ocrmirror
root@test233 # ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 262120
Used space (kbytes) : 3328
Available space (kbytes) : 258792
ID : 926476664
Device/File Name : /oracle/ocrfile1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
root@test233 # cat /etc/oracle/ocr.loc
#Device/file /oracle/ocrfile3 being deleted
ocrconfig_loc=/oracle/ocrfile1
local_only=false
root@test233 # rsh test234 cat /etc/oracle/ocr.loc
#Device/file /oracle/ocrfile3 being deleted
ocrconfig_loc=/oracle/ocrfile1
local_only=false
root@test233 # ocrconfig -replace ocrmirror /oracle/ocrfile2
root@test233 # cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /oracle/ocrfile2
ocrconfig_loc=/oracle/ocrfile1
ocrmirrorconfig_loc=/oracle/ocrfile2
local_only=false
root@test233 # rsh test234 cat /etc/oracle/ocr.loc
#Device/file getting replaced by device /oracle/ocrfile2
ocrconfig_loc=/oracle/ocrfile1
ocrmirrorconfig_loc=/oracle/ocrfile2
local_only=false
配置文件同时被修改。
小结: 可以使用 ocrconfig -replace ocrmirror来添加,删除,替换ocrmirror, 添加时需要先手工生成该文件。该命令会同时自动修改配置文件。ocrmirror只能有一个。
Votedisk的添加和删除
root@racibm233 # crsctl check crs
Cluster Synchronization Services appears healthy
Cluster Ready Services appears healthy
Event Manager appears healthy
oracle rac 创建ocr,Oracle rac 11g在线添加ocr,votedisk相关推荐
- oracle votedisk ocr,Oracle rac 11g在线添加ocr 和votedisk
在线添加ocr 以前看过,里面ricky_zhu说过可以在线添加ocr和votedisk的,刚好今天试验环境需要添加ocr,就顺便作了个实验. 环境:aix 5.3+ oracle rac 11.1. ...
- oracle中创建游标,oracle 存储过程创建游标
Oracle与Sql Server差异点详解 1.create函数或存储过程异同点 Oracle 创建函数或存储过程一般是 create or replace -- SQL SERVER 则是在创建之 ...
- oracle+手工创建pfile,oracle 手工创建数据库
1, 创建pfile,通cat命令将以#和空格开头的行过滤掉,放到initSID.ora文件中 pfile文件格式为init(sid).ora cd $ORACLE_HOME/dbs cat init ...
- oracle 9 创建数据库,Oracle 9i创建数据库(转)
Oracle 9i创建数据库(转)[@more@] 6.6.1 用[数据库配置助手]创建数据库 (1)出现如图6.18所示的[欢迎使用]界面. (2)出现如图6.19所示的[操作]界面. (3)出现如 ...
- oracle ob12创建用户,Oracle 11g用户创建、授权和导入dmp文件
1.最近做项目,要导入Oracle的dmp文件,很多年前用过oracle,该用的技术随着时间都忘记的差不多了,现在标记在此,以免再次遇到同样的问题而感到无措. 导入dmp文件,需要知道这个dmp文件创 ...
- oracle 怎么创建约束,Oracle创建约束
约束的类型: oracle数据库支持的约束类型包括: 1.unique 2.not null 3.primary key 4.foreignkey 5.check 约束都有名称.如果没有显示地给它们命 ...
- oracle mysql 创建表,Oracle 创建表用户、空间
oracle创建用户.表空间 无 /*查看表空间文件位置*/select *from dba_data_files;--创建arcgis 表空间.用户/*第1步:创建临时表空间 */create te ...
- oracle 如何创建job,oracle创建job
一.基本语法 与MysqL的event事件类似,用来创建数据库的定时任务. DBMS_JOB.SUBMIT( job OUT BINARY_INTEGER,what IN VARCHAR2,NEXT_ ...
- oracle 怎么创建类型,ORACLE—002:Create之创建类型
--积累工作中用到的SQL ORACLE中也是有类型的,可作为存储过程,函数等的输入输入出. 下面看下创建. 用法 CREATE OR REPLACE TYPE 类型名称 AS OBJECT ( 字段 ...
最新文章
- android 更新 18个月,MIUI迎接史上最大更新:18个月内绝不卡顿,友商羡慕!
- 有了我的第一个留言,高兴
- SAP Data Intelligence API如何获得Access Token - no authentication means found
- 多系统通讯-DotNetMQ
- 平衡二叉树搜索二叉树
- html/css表单美化
- 八个方向调节的云台控制器
- 计算机入侵有什么方法,教你个一看就会的入侵方法 -电脑资料
- CentOS的虚拟机网卡eth0变成eth1
- 我的十年十念 ——十年工作感言
- woj 1567 - D - Sloth's Angry(贪心)
- 虚拟DOM和deff算法
- java中二维数组的长度
- 解决 docker 中 zsh: command not found: jupyterlab 问题
- BNET创始人刘建军:BNET破解当今通信网络三大痛点
- 微信公众号硬件开发杂谈(二)
- Material icons 全图标一览
- 论文笔记 NAACL 2021|Document-level Event Extraction with Efficient End-to-end Learning of Cross-event De
- 2019年9月TIOBE语言排行榜:“世界上最好的语言”正在努力保持前十的位置
- 作一个执著的人是幸福和难得的
热门文章
- 几行代码撸了一天,源码到底该如何读?
- 只用两个函数实现事务的设计模式!
- 融合智能将成时代方舟?中科创达技术大会向未来答疑
- 库克谈iPhone 12供应紧张问题;2020中国互联网百强名单:阿里、腾讯、美团分列前三;Dgraph新版发布|极客头条
- 加速编程效率,你不知道的IDEA功能设置
- 软件工程的迷途与沉思
- 完了!Python开挂! 90%的程序员:痛快!你怎么看? ​
- 全方位解析阿里云核心技术竞争力,CSDN 独家在线峰会来了!
- 如何快速打通 Docker 镜像发布流程?
- 不止鸿蒙 OS,华为的备用操作系统还有“极光”?