1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - 数据库 - 正文

君子好学,自强不息!

以下的文章主要介绍的是Oracle OCR镜像的增加以及删除,我们大家都知道Oracle OCR记录节点成员的相关的配置信息,如ASM、instance、以及listener和VIP等相关的CRS资源的相关配置信息。

检查Oracle OCR的状态

[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw2 
Device/Fileintegritychecksucceeded 
Device/Filenotconfigured 
Clusterregistryintegritychecksucceeded 
[root@node3~]#cat/etc/oracle/ocr.loc 
#Device/file/dev/raw/raw4beingdeleted 
ocrconfig_loc=/dev/raw/raw2 
local_only=false

增加一个镜像

[root@node3~]#ocrconfig-replaceocrmirror/dev/raw/raw4 
[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw2 
Device/Fileintegritychecksucceeded 
Device/FileName:/dev/raw/raw4 
Device/Fileintegritychecksucceeded 
Clusterregistryintegritychecksucceeded 
[root@node3~]#cat/etc/oracle/ocr.loc 
#Device/filegettingreplacedbydevice/dev/raw/raw4 
ocrconfig_loc=/dev/raw/raw2 
ocrmirrorconfig_loc=/dev/raw/raw4 
local_only=false
[root@node3~]#ocrconfig-replaceocrmirror/dev/raw/raw6 
[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw2 
Device/Fileintegritychecksucceeded 
Device/FileName:/dev/raw/raw6 
Device/Fileintegritychecksucceeded 
Clusterregistryintegritychecksucceeded 
[root@node3~]#cat/etc/oracle/ocr.loc 
#Device/file/dev/raw/raw4gettingreplacedbydevice/dev/raw/raw6 
ocrconfig_loc=/dev/raw/raw2 
ocrmirrorconfig_loc=/dev/raw/raw6 
local_only=false

Oracle OCR只能有一份镜像,新增加的镜像文件会替换掉原来的镜像。

删除OCR的镜像文件

[root@node3~]#ocrconfig-replaceocrmirror

不带文件路径名

[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw2 
Device/Fileintegritychecksucceeded 
Device/Filenotconfigured 
Clusterregistryintegritychecksucceeded 
[root@node3~]#cat/etc/oracle/ocr.loc 
#Device/file/dev/raw/raw6beingdeleted 
ocrconfig_loc=/dev/raw/raw2 
local_only=false

注意如果我们删除了Oracle OCR的主文件,相应的镜像文件自动的变为主文件。

例如:

[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw2 
Device/Fileintegritychecksucceeded 
Device/FileName:/dev/raw/raw4 
Device/Fileintegritychecksucceeded 
Clusterregistryintegritychecksucceeded 
[root@node3~]#ocrconfig-replaceocr 
[root@node3~]#ocrcheck 
StatusofOracleClusterRegistryisasfollows: 
Version:2 
Totalspace(kbytes):208656 
Usedspace(kbytes):6496 
Availablespace(kbytes):202160 
ID:844916878 
Device/FileName:/dev/raw/raw4 
Device/Fileintegritychecksucceeded 
Device/Filenotconfigured 
Clusterregistryintegritychecksucceeded 

本文来源:1818IP

本文地址:https://www.1818ip.com/post/11240.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。