ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle 10g cluster 如何替换ocr主文件 (crs online状态)

oracle 10g cluster 如何替换ocr主文件 (crs online状态)

原创 Linux操作系统 作者:paulyibinyi 时间:2010-05-29 23:31:32 0 删除 编辑

     有时候我们需要把ocr文件迁移到另外个地方,比如从这个vg下的ocr迁移到另外个vg下,或把ocr存放的裸设备lv迁移到asm中

    实现方法很简单,先增加ocr镜象,然后删除主ocr文件,修改情况是在crs online状态下的.。

     下面实现的是ocr裸设备迁移到asm磁盘中

1.给新增的ocr镜象赋予oracle权限

2.增加镜象盘

[root@p650:/crs/app/oracle/product/crs_1/bin]#./ocrconfig -replace ocrmirror /dev/rhdisk11
[root@p650:/crs/app/oracle/product/crs_1/bin]#


[root@p650:/dev]#su - oracle
[oracle@p650:/oracle/app/oracle]$ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     130852
         Used space (kbytes)      :       4636
         Available space (kbytes) :     126216
         ID                       : 1542042236
         Device/File Name         : /dev/rocrnewlv
                                    Device/File integrity check succeeded
         Device/File Name         : /dev/rhdisk11
                                    Device/File integrity check succeeded

         Cluster registry integrity check succeeded

/dev/rocrnewlv 为以前的裸设备盘

/dev/rhdisk11 为新增的镜象asm盘

3.删除ocr主镜象盘


[root@p520:/crs/app/oracle/product/crs_1/bin]#./ocrconfig -replace ocr

4.检查结果

[root@p520:/crs/app/oracle/product/crs_1/bin]#./ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     130852
         Used space (kbytes)      :       4636
         Available space (kbytes) :     126216
         ID                       : 1542042236
         Device/File Name         : /dev/rhdisk11
                                    Device/File integrity check succeeded

                                    Device/File not configured

         Cluster registry integrity check succeeded

[root@p520:/crs/app/oracle/product/crs_1/bin]#

迁移完毕


 

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7199859/viewspace-663991/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
学习数据库

注册时间:2007-12-11

  • 博文量
    907
  • 访问量
    6894216