oracle没有olr文件夹,Oracle RAC无备份情况恢复ocr和olr

该博客记录了在Oracle RAC环境中执行root.sh脚本来重建OCR(Oracle Cluster Registry)和OLR(Oracle Local Registry)的过程。在节点1和节点2上,脚本成功启动了多个关键服务,如ASM、CSSD和投票磁盘,并创建了新的diskgroup。当ASM磁盘损坏时,可以修复并自动重建diskgroup。
摘要由CSDN通过智能技术生成

二、重建ocr和olr,使用root.sh脚本完成重建,其实这就是在安装RAC中执行的脚本,默认位置为:$GRID_HOME/;

eg:

节点1:

[root@rac-two grid]# ./root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

CRS-2672: Attempting to start 'ora.mdnsd' on 'rac-two'

CRS-2676: Start of 'ora.mdnsd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'rac-two'

CRS-2676: Start of 'ora.gpnpd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac-two'

CRS-2672: Attempting to start 'ora.gipcd' on 'rac-two'

CRS-2676: Start of 'ora.cssdmonitor' on 'rac-two' succeeded

CRS-2676: Start of 'ora.gipcd' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'rac-two'

CRS-2672: Attempting to start 'ora.diskmon' on 'rac-two'

CRS-2676: Start of 'ora.diskmon' on 'rac-two' succeeded

CRS-2676: Start of 'ora.cssd' on 'rac-two' succeeded

ASM created and started successfully.

Disk Group GIDG created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Successful addition of voting disk 498646ba39604f86bf697c9748a67697.

Successful addition of voting disk 2e1bd16f9e6d4f36bf93550dc8268725.

Successful addition of voting disk 3fbd31a0b2634feabfa1115a504cbbe6.

Successfully replaced voting disk group with +GIDG.

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE  498646ba39604f86bf697c9748a67697 (/dev/asm-diske) [GIDG]

2. ONLINE  2e1bd16f9e6d4f36bf93550dc8268725 (/dev/asm-diskd) [GIDG]

3. ONLINE  3fbd31a0b2634feabfa1115a504cbbe6 (/dev/asm-diskf) [GIDG]

Located 3 voting disk(s).

CRS-2672: Attempting to start 'ora.asm' on 'rac-two'

CRS-2676: Start of 'ora.asm' on 'rac-two' succeeded

CRS-2672: Attempting to start 'ora.GIDG.dg' on 'rac-two'

CRS-2676: Start of 'ora.GIDG.dg' on 'rac-two' succeeded

Preparing packages for installation...

cvuqdisk-1.0.9-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[root@rac-two grid]#

另外注意,如果asm磁盘损坏了那么需要重新修复磁盘,然后会自动重新创建之前的diskgroup.

至此olr和ocr创建成功

节点2:

[root@rac-one grid]# ./root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

Adding Clusterware entries to upstart

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac-two, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Preparing packages for installation...

cvuqdisk-1.0.9-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

[root@rac-one grid]#0b1331709591d260c1c78e86d0c51c18.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值