oracle19c 无备份情况下重建ocr 和 votedisk

无备份情况下重建ocr 和 votedisk – 19c

备注:测试环境基本上都有ocr自动备份文件,建议参考有备份情况下恢复ocr和votedisk

Deconfigure and reconfigure entire cluster will rebuild OCR and Voting Disk, user resources (database, instance, service, listener etc) will need to be added back to the cluster manually after reconfigure finishes.

 


How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (Doc ID 1377349.1)

How to Configure or Re-configure Grid Infrastructure With config.sh/config.bat (Doc ID 1354258.1)

 

  1. 远端节点执行:

[root@db3n2 ~]# /u01/app/19c/19.3.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose

  1. 最后一个节点执行

[root@db3n1 ~]# /u01/app/19c/19.3.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

#所有节点手动删除gpnp目录

2020/03/09 16:17:58 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/19c/19.3.0/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.

  1. 重新执行$GI_HOME/gridSetup.sh

#重新注册数据磁盘组到crs

SQL> alter diskgroup datadg mount;

#重新注册数据库资源

[oracle@db3n1 ~]$ srvctl add database -db orcldb -oraclehome /u01/app/19c/oracle/product/19.3.0/db_1 -dbtype RAC -spfile '+datadg/ORCLDB/PARAMETERFILE/spfile.272.1034093697' -pwfile '+datadg/ORCLDB/password/pwdorcldb.256.1034092525' -role primary -startoption open -stopoption immediate -dbname orcldb -policy automatic -diskgroup DATADG

[oracle@db3n1 ~]$ srvctl add instance -d orcldb -i orcldb1 -n db3n1

[oracle@db3n1 ~]$ srvctl add instance -d orcldb -i orcldb2 -n db3n2

#检查监听状态

#检查数据情况,数据未丢失

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值