Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN
Purpose
This Article cover the detailed steps for creating a physcial standby database on a normal file system using RMAN for a primary database in ASM. [@more@]Step-By-Step Guide To Create Physical Standby On Normal File System For ASM Primary using RMAN
Overview
Here the Standby database can be created using the following 2 methods
1. Normal Restore and Recovery using RMAN.
2. Creating a Duplicate database for Standby using RMAN.
Method 1
+ Perform the backup of the ASM primary database ( Datafiles, Controlfile for
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
Steps to accomplish Method 1
1 - Perform the backup of the ASM primary database ( Datafiles, Controlfile for standby
& Archivelogs )
$ rman target /
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
++ FTP or SCP the backup pieces to standby server. While doing FTP make sure
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 .
db_unique_name='stnd10g'
instance_name='stnd10g'
standby_archive_dest=''
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
$ export ORACLE_SID=stand10g
$ orapwd file=orapwstand10g password=oracle
4. Configure Oracle net services on both the servers
In standby server
- configure listener.
In Primary server
- configure tnsnames for standby.
- check connectivity using tnsping.
5. Perform restore and Recovery on standby database.
++ Starup Nomount the standby instance and restore the standby controlfile from
the backup of the standby_controlfile performed in step 1
$ export ORACLE_SID=stnd10g
$ rman target /
RMAN>restore standby controlfile from '/backup/stdb_cntl_3oqff2fb_.bkp';
++ Mount the database
RMAN>Alter database mount;
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;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/1933/viewspace-1049314/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Step By Step Guide To Create Physical Standby Database Using RMAN [ID 469493.1]GUIIDEDatabase
- Step By Step Guide On Creating Physical Standby Using RMAN Duplicate In ASM Filesystem For ASM PrimaGUIIDEASM
- Create Physical stdby Using RMAN Duplicate In ASM File... For ASM Prim-837102.1ASM
- Creating a physical standby from ASM primaryASM
- How to copy a datafile from ASM to a file system not using RMANASM
- Creating Physical Standby using RMAN Duplicate Without Shutting Primary_789370.1
- FROM ASM Migrating to FILE SYSTEM Using RMAN(三)ASM
- Creating Physical Standby using RMAN Duplicate Without Shutting down The Primary [ID 789370.1]
- Creating a physical standby from ASM primary [ID 787793.1]ASM
- Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE WithoutGUIIDEDatabase
- 【RAC,DATAGUARD】Creating a physical standby from ASM (RAC ) primary之四ASM
- 【RAC】Creating a filesystem physical standby from ASM (RAC ) primary之三ASM
- 【RAC】Creating a filesystem physical standby from ASM (RAC ) primary 之二ASM
- 【RAC】Creating a filesystem physical standby from ASM (RAC ) primary之一ASM
- Using RMAN Incremental Backups to Roll Forward a Physical Standby DatabaseREMForwardDatabase
- Creating a Physical Standby using RMAN DUPLICATE FROM ACTIVE DATABASEDatabase
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- Configure Oracle Dataguard Primary-ASM to Physical-ASM薦OracleASM
- 配置 Oracle 10g RAC primary + RAC physical standby dataguardOracle 10g
- How To Restore 12cR1DB to New Host File System using RMAN(一)REST
- Using Create directory & UTL_FILE in OracleOracle
- Move datafile:From File System to ASMASM
- Move datafile:From ASM to File SystemASM
- Oracle ACFS ( ASM Cluster File System )OracleASM
- 同事總結的 : 用RMAN建立Physical Standby DatabaseDatabase
- Step by Step Guide on How to Create Logical Standby [ID 738643.1]GUIIDE
- Using RMAN Incremental Backups to Refresh a Standby DatabaseREMDatabase
- Migrating to ASM Using RMAN(二)ASM
- Migrating to ASM Using RMAN(一)ASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- Unable To Create Database Using ASM ORA-15055DatabaseASM
- Oracle physical standbyOracle
- Changing Primary DB Character Set without Recreate DG Physical Standby_1124165.1
- asm磁碟normal模式ASMORM模式
- ASM叢集檔案系統ACFS(ASM Cluster File System)ASM
- Case two -- Recover a datafile in primary site from the backup taken in standby site without using c
- using dbms_file_transfer transportable tablespace between asmASM
- DataGuard:Physical Standby Switchover