Header

Tuesday, March 7, 2017

How To Restore OLR

Oracle Local Registry (OLR) is
introduced in 11gR2/12c Grid Infrastructure. It contains local node specific
configuration required by OHASD and is not shared between nodes. In other word,
every node has its own OLR. Let's start the working on OLR.

Step 1: Stop complete crs

Be sure GI stack is completely down and ohasd.bin is not up
and running, use the following command to confirm:

ps -ef| grep ohasd.bin

This should return no process, if ohasd.bin is still up and
running, stop it on local node:

# <GI_HOME>/bin/crsctl stop crs -f ####for GI Cluster

OR

# <GI_HOME>/bin/crsctl stop has ####for GI Standalone

Step 2: Start Restore with
below command

# <GI_HOME>/bin/ocrconfig -local -restore
<olr-backup>

If the command fails, create a dummy OLR, set correct
ownership and permission and retry the restoration command:

# cd <OLR location>

# touch <hostname>.olr

# chmod 600 <hostname>.olr

# chown <grid>:<oinstall> <hostname>.olr

Step 3: Start CRS again

Once it's restored, GI can be brought up:

# <GI_HOME>/bin/crsctl start crs #### for GI Cluster

OR

$ <GI_HOME>/bin/crsctl start has #### for GI Standalone, this must be done as
grid user