Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN (文档 I
来源:互联网 发布:好听劲爆的网络dj歌曲 编辑:程序博客网 时间:2024/04/27 15:49
In this Document
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]Information in this document applies to any platform.
***Checked for relevance on 22-Jun-2012***
PURPOSE
This Article cover the detailed steps for creating a physical standby database on a normal file system using RMAN for a primary database in ASM.
SCOPE
This article is meant for all DBA's
DETAILS
Overview
Here the Standby database can be created using the following 2 methods
2. Creating a Duplicate database for Standby using RMAN.
Method 1
standby and Archivelogs )
+ Make the backup pieces available on the Standby server .
+ Create the parameter file and password file on standby.
+ Configure Oracle net services on both the servers.
+ Perform restore and Recovery on standby database.
+ Configure the primary database to transfer the archives to standby
+ Kick start the Redo apply by putting the database in Recover managed mode.
Method 2
Note 787793.1 : Creating a physical standby from ASM primary
Steps to accomplish Method 1
1 - Perform the backup of the ASM primary database ( Datafiles, Controlfile for standby
& Archivelogs )
RMAN> backup database format '/backup/database_%U.bkp';
RMAN> backup archivelog format '/backup/archivelog_%U.bkp';
RMAN> backup current controlfile for standby format '/backup/stdb_cntl_%U.bkp';
2. Make the backup pieces available on the Standby server
to do it in binary mode only. OR
++ NFS mount then mount the NFS on standby server with the same name as you
mounted on primary database. OR
++ If the backups are on tape then make sure that you make proper changes on
standby server so that you can restore the backups on standby server.
3. Create the parameter file & password file on standby
Copy the primary database parameter file and make necessary changes :++ Restore the database .
instance_name='stnd10g'
standby_archive_dest='<location for archives coming from primary>'
db_file_name_convert='+DATA/prim10g/datafile/', '/u01/oradata/stnd10g/', '+DATA/prim10g/tempfile/', '/u01/oradata/stnd10g/'
log_file_name_convert='+DATA/prim10g/onlinelog/', '/u01/oradata/stnd10g/'
Create the password file for standby database with the same password as primary
$ orapwd file=orapwstand10g password=oracle
4. Configure Oracle net services on both the servers
- configure listener.
In Primary server
- configure tnsnames for standby.
- check connectivity using tnsping.
5. Perform restore and Recovery on standby database.
++ Startup Nomount the standby instance and restore the standby controlfile from
the backup of the 'standby controlfile' performed in step 1
$ rman target /
RMAN> restore standby controlfile from '/backup/stdb_cntl_3oqff2fb_.bkp';
RMAN> RESTORE STANDBY CONTROLFILE from ...
else convert parameter DB_FILE_NAME_CONVERT is NOT used.
o After STANDBY CONTROLFILE is restored, you can mount the AUX Instance and verify DB_FILE_NAME_CONVERT
parameter is used and show correct datafile path/name using for example:
RMAN> REPORT SCHEMA ; ( or sql> select name from v$datafile ; )
++ Mount the database
If backup pieces are in exactly same directory structure or if the directory structure is NFS mounted on
the standby server then directly restore the database
else
If the backup pieces are in different location you need to catalog them manually
for example
RMAN> catalog backuppiece '/backup/database_2x21kd12.bkp';
For more information on cataloging options refer the metalink Note 470463.1
+ Restore the database using the following syntax
RMAN> restore database;
+ Recover database
Get to know the last sequence available in the archivelog backup using the following command.This will help us in recovering the database till that archivelog.
RMAN > list backup of archivelog all;
Let us assume the last sequence of last archivelog in the backup is 50. Since we are recovering the database here till the archivelog sequence 50 the sequence number in the UNTIL SEQUENCE clause should be 50 (+1)
RMAN> Recover database until sequence 51;
6. Configure the primary database to transfer the archives to standby
+ Set the following parameter in the primary database :
log_archive_dest_2='SERVICE=stnd10g'
+ Perform a log switch and make sure that archive are getting transfer to standby destination.
7. Kick start the Redo apply by putting the database in Recover managed mode.
In Standby database start the managed recovery process
SQL> Recover managed standby database disconnect from session;
- Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN (文档 I
- Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore
- Step By Step Guide To Create Physical Standby Database Using RMAN Backup and Restore (Doc ID 469493.
- Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE (Doc ID
- Step byStep Guide on Creating Physical Standby Using RMAN DUPLICATE
- Oracle 11g Active Data Guard step by step: How to create a Physical Standby Database using RMAN
- Step-by-step guide on File-to-IDoc using SAP PI 7.0
- A Step-by-Step guide to create a simple FPM application using Feeder Class for FORM GUIBB
- OCM_Session8_2_Step-by-Step Instructions for Creating a Physical Standby Database
- Step By Step guide to Read XML file in Java Using SAX Parser Example
- Steps to perform for Rolling Forward a Physical Standby Database using RMAN Incremental Backup. (文档
- STEP BY STEP RMAN DUPLICATE Database From RAC ASM To RAC ASM (Doc ID 1913937.1)
- Step-by-step Install Guide for Ubuntu
- Creating a physical standby from ASM primary (文档 ID 787793.1)
- Step-By-Step Guide to Get Started with Salesforce REST API using Java
- Step-by-Step Guide to Setting Up an R-Hadoop System
- Step-by-Step Guide to Setting Up an R-Hadoop System
- 树结构练习——排序二叉树的中序遍历
- 452. Minimum Number of Arrows to Burst Balloons
- git#branch
- sdut 二叉排序树
- 新书通告
- Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN (文档 I
- C程序设计_知识回顾
- Creating a physical standby from ASM primary (文档 ID 787793.1)
- sdut 图的深度遍历
- python7--win10下python3.5安装scrapy
- 【0基础掌握安卓开发技术】
- 关于USB3.0的U盘正确用法
- Kerberos 认证原理笔记
- Mysql基准测试工具介绍