In this Document
|To list backups|
Oracle Local Registry (OLR) is introduced in 11gR2 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.
This note provides steps to backup or restore OLR.
The OLR location pointer file is '/etc/oracle/olr.loc' or '/var/opt/oracle/olr.loc' depending on platform. The default location after installing Oracle Clusterware is:
GI Standalone (Oracle Restart):
OLR will be backed up during GI configuration(installation or upgrade). In contrast to OCR, OLR will NOT be automatically backed up again after GI is configured, only manual backups can be taken. If further backup is required, OLR needs to be backed up manually. To take a backup of the OLR use the following command.
To List the backups currently available:
node1 2010/12/14 14:33:20 /opt/app/oracle/grid/188.8.131.52/cdata/node1/backup_20101214_143320.olr
node1 2010/12/14 14:33:17 /opt/app/oracle/grid/184.108.40.206/cdata/node1/backup_20101214_143317.olr
Be sure GI stack is completely down and ohasd.bin is not up and running, use the following command to confirm:
This should return no process, if ohasd.bin is still up and running, stop it on local node:
Once it's down, restore with the following command:
If the command fails, create a dummy OLR, set correct ownership and permission and retry the restoration command:
# chmod 600
Once it's restored, GI can be brought up:
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/17252115/viewspace-1097082/，如需转载，请注明出处，否则将追究法律责任。