【MOS】How to backup or restore OLR in 11.2/12c Grid Infrastructure
In this Document
Goal |
Solution |
OLR location |
To backup |
To list backups |
To restore |
References |
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.1.0 and laterInformation in this document applies to any platform.
GOAL
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.
This note provides steps to backup or restore OLR.
SOLUTION
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: <GI_HOME>/cdata/<hostname.olr>
GI Standalone (Oracle Restart): <GI_HOME>/cdata/localhost/<hostname.olr>
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.
To list backups
To List the backups currently available:
# <GI_HOME>/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
Clusterware maintains the history of the five most recent manual backups and will not update/delete a manual backups after it has been created.
$ocrconfig -local -showbackup shows manual backups in the registry though they are removed or archived manually in OS file system by OS commands
#ocrconfig -local -showbackup
node1 2014/02/21 08:02:57 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20140221_080257.olr
node1 2014/02/21 08:02:56 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20140221_080256.olr
node1 2014/02/21 08:02:54 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20140221_080254.olr
node1 2014/02/21 08:02:51 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20140221_080251.olr
node1 2014/02/21 08:02:39 /opt/app/oracle/grid/11.2.0.1/cdata/node1/backup_20140221_080239.olr
#ls -ltr /opt/app/oracle/grid/11.2.0.1/cdata/node1
total 38896
-rw------- 1 root root 6635520 Feb 21 08:02 backup_20140221_080256.olr
-rw------- 1 root root 6635520 Feb 21 08:02 backup_20140221_080257.olr
To restore
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:
OR
# <GI_HOME>/bin/crsctl stop has <========= for GI Standalone
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:
# cd <OLR location>
# touch <hostname>.olr
# chmod 600 <hostname>.olr
# chown <grid>:<oinstall> <hostname>.olr
Once it's restored, GI can be brought up:
OR
$ <GI_HOME>/bin/crsctl start has <========= for GI Standalone, this must be done as grid user.
About Me
...............................................................................................................................
● 本文來自於MOS轉載文章(文件 ID 1193643.1)
● 小麥苗雲盤地址:http://blog.itpub.net/26736162/viewspace-1624453/
● QQ群:230161599 微信群:私聊
● 聯絡我請加QQ好友(642808185),註明新增緣由
● 版權所有,歡迎分享本文,轉載請保留出處
...............................................................................................................................
手機長按下圖識別二維碼或微信客戶端掃描下邊的二維碼來關注小麥苗的微信公眾號:xiaomaimiaolhr,免費學習最實用的資料庫技術。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2130323/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- backup or restore OLR in 11.2 Grid Infrastructure (Doc ID 1193643.1)RESTASTStruct
- 【轉】How to recover from root.sh on 11.2 Grid Infrastructure FailedASTStructAI
- How to Troubleshoot Grid Infrastructure Startup IssuesASTStruct
- Database Creation on 11.2 Grid Infrastructure with Role SeparationDatabaseASTStruct
- 【MOS】Top 5 Grid Infrastructure Startup Issues (文件 ID 1368382.1)ASTStruct
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- oracle linux 11.2 rac grid infrastructure add scan ipOracleLinuxASTStruct
- redhat linux 11.2 rac grid infrastructure add scan ipRedhatLinuxASTStruct
- How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]ASTStruct
- 【RAC】How to Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]ASTStruct
- Oracle 12c Grid Infrastructure for a Standalone Server on Oracle Linux 7OracleASTStructServerLinux
- Pre 11.2 Database Issues in 11gR2 Grid Infrastructure Environment_948456.1DatabaseASTStruct
- How to Configure A Second Listener on a Separate Network in 11.2 Grid
- SQL Server Backup & RestoreSQLServerREST
- TFS Express backup and restoreExpressREST
- backup and restore tipsREST
- How restore CBO statisticsREST
- Oracle Grid Infrastructure for a Standalone ServerOracleASTStructServer
- clone grid INfrastructure Home and clusterwareASTStruct
- Oracle Clusterware and Oracle Grid InfrastructureOracleASTStruct
- Cold backup and restore the entire databaseRESTDatabase
- How to restore ASM based OCRRESTASM
- Oracle grid infrastructure 解除安裝OracleASTStruct
- 12c Grid Infrastructure 管理資料庫(GIMR) 問答 (文件 ID 2047608.1)ASTStruct資料庫
- 將Oracle 12c資料庫註冊到Oracle 19c Grid InfrastructureOracle資料庫ASTStruct
- DBMS_BACKUP_RESTORE.DBMS_BACKUP_RESTORE用於特殊情況下的恢復REST
- read only tablespace backup restoreREST
- DNS and DHCP Setup Example for Grid Infrastructure GNSDNSASTStruct
- 記錄下 patch Grid Infrastructure for StandaloneASTStruct
- 轉貼_RMAN-DBMS_BACKUP_RESTOREREST
- Oracle Grid Infrastructure Patch Set Update 11.2.0.4.3OracleASTStruct
- 重新配置 11gR2 Grid InfrastructureASTStruct
- db2備份恢復(backup restore)DB2REST
- Manually Backup - Restore or Clone a Database to Another Node [ID 562556.1]RESTDatabase
- Apply PSU for Grid Infrastructure Standalone and DB with Oracle RestartAPPASTStructOracleREST
- 升級Grid Infrastructure到10.2.0.2 遭遇bug 9413827ASTStruct
- How to Restore the Database Using AMDU after Diskgroup CorruptionRESTDatabase
- How To Search and Restore files from Site Collection Recycle BinREST