温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

RAC添加OCR 位置

发布时间:2020-08-10 20:52:03 来源:ITPUB博客 阅读:100 作者:波仔strong 栏目:关系型数据库

RAC添加OCR 位置
对OCR的修改会同步到节点上OCR的配置文件:ocr.loc。即使在另一个节点的crs关闭的情况下,在启动的时候也会自动更新OCR的变化。

添加语法如下:
# ocrconfig -add +asm_disk_group | file_name

添加完成之后,使用命令验证
#ocrcheck

查看ocr的位置
[root@rac2 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3352
Available space (kbytes) : 258768
ID : 2129345179
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

查看磁盘组
[grid@rac1 ~]$ kfod op=groups
--------------------------------------------------------------------------------
Group Size Free Redundancy Name
===============================================
1: 10236 Mb 922 Mb EXTERN OGG
2: 5114 Mb 4784 Mb EXTERN FRA
3: 20473 Mb 18208 Mb EXTERN DATA
4: 5114 Mb 4718 Mb EXTERN CRS

将ocr添加到fra
[root@rac1 ~]# ocrconfig -add +fra

验证
[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3352
Available space (kbytes) : 258768
ID : 2129345179
Device/File Name : +CRS
Device/File integrity check succeeded
Device/File Name : +fra
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded

查看配置文件是否跟新
[root@rac1 ~]# cd /etc/oracle/
[root@rac1 oracle]# cat ocr.loc
#Device/file getting replaced by device +fra
ocrconfig_loc=+CRS
ocrmirrorconfig_loc=+fra

节点2验证
[root@rac2 oracle]# cat ocr.loc
#Device/file getting replaced by device +fra
ocrconfig_loc=+CRS
ocrmirrorconfig_loc=+fra

--检查ASM 文件是否存在
[grid@rac1 ~]$ asmcmd -p
ASMCMD [+fra/rac-cluster/ocrfile] > ls
REGISTRY.255.971178369

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI