ITPub博客

首页 > 数据库 > Oracle > backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)

backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)

Oracle 作者:rongshiyuan 时间:2014-02-28 14:26:10 0 删除 编辑
How to backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)

In this Document

Goal
Fix
  OLR location
  To backup
  To list backups
  To restore
References

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1.0 and later
Information in this document applies to any platform.

Goal

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.

Fix

OLR location

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 Cluster: /cdata/
GI Standalone (Oracle Restart): /cdata/localhost/

 

To backup

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.

# /bin/ocrconfig -local -manualbackup

 

To list backups

To List the backups currently available:

# /bin/ocrconfig -local -showbackup

node1 2010/12/14 14:33:20 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20101214_143320.olr
node1 2010/12/14 14:33:17 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20101214_143317.olr

  

To restore

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:

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

OR 

# /bin/crsctl stop has  <========= for GI Standalone

 

Once it's down, restore with the following command: 

# /bin/ocrconfig -local -restore

 

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

# cd
# touch .olr
# chmod 600 .olr
# chown : .olr

 

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

# /bin/crsctl start crs   <========= for GI Cluster

OR 

$ /bin/crsctl start has  <========= for GI Standalone, this must be done as grid user.

 

 

References


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

请登录后发表评论 登录
全部评论

注册时间:2009-11-24

  • 博文量
    798
  • 访问量
    3264731