HOW TO. RMAN Restore for Standby 10gR2



Similar documents
If you have not multiplexed your online redo logs, then you are only left with incomplete recovery. Your steps are as follows:

Oracle 12c Recovering a lost /corrupted table from RMAN Backup after user error or application issue

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

Recreate Physical Standby Database after Recovery of Primary Database

Installation Companion Oracle Data Guard on Amazon EC2 Configuration Guide

Clonación de una Base de Datos Oracle 11gR2 Activa usando RMAN. CLONACIÓN DE UNA BASE DE DATOS ORACLE 11gR2 ACTIVA USANDO RMAN

! " # #$ " " %" & "'( " "' ( ) " * ""! ). " / ( * ( "# 0! " ). '

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

12. User-managed and RMAN-based backups.

Using RMAN to restore a database to another server in an ASM environment

Database Disaster Recovery using only RMAN Backups

BrightStor ARCserve Backup

Getting all the pieces: Reliable Backup/Recovery

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Oracle 10g Feature: RMAN Incrementally Updated Backups

Backup/Restore Oracle 8i/9i/10g

Oracle Backup and Recover 101. Osborne Press ISBN

Oracle Database 10g: Backup and Recovery

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Oracle Data Guard for High Availability and Disaster Recovery

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

11. Oracle Recovery Manager Overview and Configuration.

RMAN for Commando DBAs. By Charles Kim

DOCUMENTATION ORACLE BACKUP & RESTORE OPERATIONS

Database Recovery For Newbies

Deloitte Solutions Network (SNET) Disaster Recovery POC on Amazon EC2

Oracle Database 12c Recovery Manager New Features

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

Demos - Workshop. -- Configure the RMAN

Best Practices White Paper Using Oracle Database 10g Automatic Storage Management with FUJITSU Storage

Oracle Backup, Recovery, and Performance Tuning using EMC Avamar and Oracle RMAN

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

HP LeftHand SAN Solutions

ASM and for 3rd Party Snapshot Solutions - for Offhost. Duane Smith Nitin Vengurlekar RACPACK

MAX_RMAN_08137_IGNORE=5 DISK_RETENTION_POLICY='RECOVERY WINDOW OF 7 DAYS'

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

The safer, easier way to help you pass any IT exams. Exam : 1Z Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP.

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

Maximum Availability Architecture. Oracle Best Practices For High Availability

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

Oracle 11g Database Administration

Delivery Method: Instructor-led, group-paced, classroom-delivery learning model with structured, hands-on activities.

Oracle Backup and Recovery Best Practices Dell Compellent Storage Center. Dell Compellent Technical Best Practices

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper January 2007

11. Configuring the Database Archiving Mode.

ORACLE CORE DBA ONLINE TRAINING

Backup Types. Backup and Recovery. Categories of Failures. Issues. Logical. Cold. Hot. Physical With. Statement failure

Oracle 11g DBA Training Course Content

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

Reference Architecture for HP Data Protector and Oracle 11gR2 RAC on Linux

Oracle Database 11g: Administration And Backup & Recover

SAP with Oracle Real Application Clusters 11g Release 2 and Oracle Automatic Storage Management 11g Release 2

Oracle9i Database: Advanced Backup and Recovery Using RMAN

Performing Database and File System Backups and Restores Using Oracle Secure Backup

Oracle Database 11g: Administration Workshop II DBA Release 2

Recover Oracle Database upon losing all Control Files

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

Zero Downtime Backup solution for Oracle10g

Oracle Database 10g: Backup and Recovery 1-2

WHITE PAPER. Oracle RMAN Design Best Practices with Data Domain. Storage. Deduplication

Oracle Database 11g: Administration Workshop II DBA Release 2

Oracle Database B

Oracle Database 11g: Administration Workshop II Release 2

Oracle 9i Database Release 2 Enterprise Edition

RMAN Recipes for Oracle Database 11g : A Problem-Solution Approach by Darl Kuhn, Sam Alapati and Arup Nanda Apress. (c) Copying Prohibited.

Oracle Data Guard. Caleb Small Puget Sound Oracle Users Group Education Is Our Passion

Oracle Database Backups and Disaster Autodesk

Oracle Database Cross Platform Migration Lucy Feng, DBAK

Maximize Availability With Oracle Database 12c

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Backing Up Oracle Databases with Handy Backup

Oracle Recovery Manager

EMC NetWorker Module for Oracle Release 5.0

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

Backup and Recovery. Oracle RMAN 11 g. Oracle Press ORACLG. Matthew Hart. Robert G. Freeman. Mc Graw Hill. Lisbon London Madrid Mexico City Milan

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

Oracle Database 11g: Administration Workshop II

Oracle Database 10g: Administration Workshop II Release 2

Setting Up Your Team-SQL Database for ORACLE 8.05

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

An Oracle White Paper January Oracle Database Backup Service A Technical White Paper

RMAN in the Trenches: To Go Forward, We Must Backup

CA ARCserve Backup for Linux

Migrate Topaz databases from One Server to Another

An Oracle White Paper April Protecting Oracle Database Appliance Tape Backup with EMC NetWorker

Data virtualization: playing with Oracle 12c on Docker containers

Database Assessment. Vulnerability Assessment Course

Oracle Cloud Storage and File system

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Administration Workshop II - LVC. 5 Jours [35 Heures]

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

Configuring and Integrating Oracle

An Oracle White Paper June Protecting Oracle Database Appliance Tape Backup with Oracle Secure Backup

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Cross Platform Transportable Tablespaces Migration in Oracle 11g

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

NEC Storage NV Series

Transcription:

Author: Martin Decker Date: 8.10.2008 Subject: RMAN Restore for Standby 10gR2 HOW TO RMAN Restore for Standby 10gR2 1 Preparations The existing database MDDB1 should be duplicated as Standby Database MDSTB1 with conversion of filesystem path /oracle/mddb1 to /oracle/mdstb1. The existing database should have an existing backup with RMAN catalog available. 1.1 RMAN Catalog Schema: create user "RMAN_MDDB1_DBHOST1" identified by xxx default tablespace RMAN01 temporary tablespace TEMP profile DEFAULT quota unlimited on rman01; -- Grant/Revoke role privileges grant recovery_catalog_owner to "RMAN_MDDB1_DBHOST1"; rman target=/ catalog=rman_mddb1_dbhost1/xxx@mddb1 Recovery Manager: Release 10.2.0.3.0 - Production on Wed Aug 29 14:41:43 2007 Copyright (c 1982, 2005, Oracle. All rights reserved. connected to target database: MDDB1 (DBID=2664690349 connected to recovery catalog database RMAN> create catalog; recovery catalog created RMAN> register database; database registered in recovery catalog starting full resync of recovery catalog full resync complete Simulation of Tape Backup: (only for internal testcase HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 1 of 9

RMAN> CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=oracle.disksbt, ENV=(BACKUP_DIR=/oracle/MDDB1/tape_backup'; RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET; RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON; Regular daily/weekly backups: RMAN> BACKUP DATABASE; RMAN> BACKUP ARCHIVELOG ALL DELETE INPUT; 1.2 Standby Initialization Parameters *.log_file_name_convert='/oracle/mddb1/','/oracle/mdstb1/' *.db_file_name_convert='/oracle/mddb1/oradata/','/oracle/mdstb1/oradata/' *.STANDBY_ARCHIVE_DEST ='/oracle/stempre/oraarch/' *.LOG_ARCHIVE_FORMAT='log%d_%t_%s_%r.arc' SQL> startup nomount; 2 Restore 2.1 Duplicate via RMAN Standby database must be started nomount with init.ora containing the prepared lines on the primary database MDDB1: SQL> alter database create standby controlfile as '/oracle/mdstb1/standby_controlfile.ctl' reuse; Database altered. SQL> alter system switch logfile; System altered. SQL> alter system switch logfile; System altered backup last created archivelogs to tape RMAN> backup archivelog all delete input; Connect to RMAN with: HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 2 of 9

target set to primary database auxiliary set to future standby database $ORACLE_HOME/bin/rman target=sys@mddb1 auxiliary=/ catalog=rman_mddb1_dbhost1/mddb1@mddb1 cmdfile=mddb1_standby.cmd MDDB1_standby.cmd: LIST BACKUP OF CONTROLFILE; LIST COPY OF CONTROLFILE; RUN DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER; Due to DB_FILE_NAME_CONVERT/FILE_NAME_CONVERT, set newname is not necessary as it is generated automatically by RMAN. automatic recovery after restore of all archivelogs backed up on tape. oracle@dbhost1:~/mdstb1/rman>./rman.sh Recovery Manager: Release 10.2.0.3.0 - Production on Wed Aug 29 16:42:10 2007 Copyright (c 1982, 2005, Oracle. All rights reserved. target database Password: connected to target database: MDDB1 (DBID=2664690349 connected to recovery catalog database connected to auxiliary database: MDDB1 (not mounted RMAN> LIST BACKUP OF CONTROLFILE; 2> LIST COPY OF CONTROLFILE; 3> 4> RUN 5> 6> # If desired, issue a SET command to terminate recovery at a specified point. 7> # SET UNTIL SCN 143508; 8> DUPLICATE TARGET DATABASE FOR STANDBY 9> NOFILENAMECHECK 10> DORECOVER; 11> 12> 13> 14> List of Backup Sets =================== 488 Full 4.77M DISK 00:00:02 29-AUG-07 BP Key: 496 Status: AVAILABLE Compressed: NO Tag: TAG20070829T145902 Piece Name: /oracle/mddb1/10.2.0/dbs/c-2664690349-20070829-00 Control File Included: Ckp SCN: 107853842 Ckp time: 29-AUG-07 555 Full 5.00M SBT_TAPE 00:00:01 29-AUG-07 HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 3 of 9

BP Key: 557 Status: AVAILABLE Compressed: NO Tag: TAG20070829T154932 Handle: c-2664690349-20070829-01 Media: /tape_backup,c-2664690349-200708 Control File Included: Ckp SCN: 107862676 Ckp time: 29-AUG-07 663 Full 5.00M SBT_TAPE 00:00:02 29-AUG-07 BP Key: 667 Status: AVAILABLE Compressed: NO Tag: TAG20070829T163444 Handle: c-2664690349-20070829-02 Media: /tape_backup,c-2664690349-200708 Control File Included: Ckp SCN: 107869936 Ckp time: 29-AUG-07 702 Full 5.00M SBT_TAPE 00:00:01 29-AUG-07 BP Key: 708 Status: AVAILABLE Compressed: NO Tag: TAG20070829T163524 Handle: c-2664690349-20070829-03 Media: /tape_backup,c-2664690349-200708 Control File Included: Ckp SCN: 107870080 Ckp time: 29-AUG-07 758 Full 5.00M SBT_TAPE 00:00:02 29-AUG-07 BP Key: 767 Status: AVAILABLE Compressed: NO Tag: TAG20070829T164154 Handle: c-2664690349-20070829-04 Media: /tape_backup,c-2664690349-200708 Control File Included: Ckp SCN: 107870944 Ckp time: 29-AUG-07 List of Control File Copies Key S Completion Time Ckp SCN Ckp Time Name ------- - --------------- ---------- --------------- ---- 737 A 29-AUG-07 107870745 29-AUG-07 /oracle/mdstb1/standby_controlfile.ctl Starting Duplicate Db at 29-AUG-07 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: sid=157 devtype=disk allocated channel: ORA_AUX_SBT_TAPE_1 channel ORA_AUX_SBT_TAPE_1: sid=156 devtype=sbt_tape channel ORA_AUX_SBT_TAPE_1: WARNING: Oracle Test Disk API contents of Memory Script: set until scn 107870829; restore clone standby controlfile; sql clone 'alter database mount standby database'; executing Memory Script executing command: SET until clause Starting restore at 29-AUG-07 using channel ORA_AUX_DISK_1 using channel ORA_AUX_SBT_TAPE_1 channel ORA_AUX_DISK_1: restoring control file channel ORA_AUX_DISK_1: copied control file copy input filename=/oracle/mdstb1/standby_controlfile.ctl output filename=/oracle/mdstb1/origloga/control01.ctl output filename=/oracle/mdstb1/origlogb/control02.ctl Finished restore at 29-AUG-07 sql statement: alter database mount standby database released channel: ORA_AUX_DISK_1 released channel: ORA_AUX_SBT_TAPE_1 contents of Memory Script: set until scn 107870829; set newname for tempfile 1 to HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 4 of 9

"/oracle/mdstb1/oradata/temp01.dbf"; switch clone tempfile all; set newname for datafile 1 to "/oracle/mdstb1/oradata/system01.dbf"; set newname for datafile 2 to "/oracle/mdstb1/oradata/undotbs01.dbf"; set newname for datafile 3 to "/oracle/mdstb1/oradata/sysaux01.dbf"; set newname for datafile 4 to "/oracle/mdstb1/oradata/users01.dbf"; set newname for datafile 5 to "/oracle/mdstb1/oradata/mgmt.dbf"; set newname for datafile 6 to "/oracle/mdstb1/oradata/mgmt_ecm_depot1.dbf"; set newname for datafile 9 to "/oracle/mdstb1/oradata/rman01.dbf"; restore check readonly clone database ; executing Memory Script executing command: SET until clause renamed temporary file 1 to /oracle/mdstb1/oradata/temp01.dbf in control file Starting restore at 29-AUG-07 allocated channel: ORA_AUX_DISK_1 channel ORA_AUX_DISK_1: sid=157 devtype=disk allocated channel: ORA_AUX_SBT_TAPE_1 channel ORA_AUX_SBT_TAPE_1: sid=155 devtype=sbt_tape channel ORA_AUX_SBT_TAPE_1: WARNING: Oracle Test Disk API channel ORA_AUX_DISK_1: starting datafile backupset restore channel ORA_AUX_DISK_1: specifying datafile(s to restore from backup set restoring datafile 00001 to /oracle/mdstb1/oradata/system01.dbf restoring datafile 00002 to /oracle/mdstb1/oradata/undotbs01.dbf restoring datafile 00003 to /oracle/mdstb1/oradata/sysaux01.dbf restoring datafile 00004 to /oracle/mdstb1/oradata/users01.dbf restoring datafile 00005 to /oracle/mdstb1/oradata/mgmt.dbf restoring datafile 00006 to /oracle/mdstb1/oradata/mgmt_ecm_depot1.dbf restoring datafile 00009 to /oracle/mdstb1/oradata/rman01.dbf channel ORA_AUX_DISK_1: reading from backup piece /oracle/mddb1/tape_backup/02iqjumg_1_1 ^[[5~^[[5~^[[5~channel ORA_AUX_DISK_1: restored backup piece 1 piece handle=/oracle/mddb1/tape_backup/02iqjumg_1_1 tag=tag20070829t145304 channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:09:07 Finished restore at 29-AUG-07 contents of Memory Script: HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 5 of 9

switch clone datafile all; executing Memory Script datafile 1 switched to datafile copy input datafile copy recid=11 stamp=631903894 filename=/oracle/mdstb1/oradata/system01.dbf datafile 2 switched to datafile copy input datafile copy recid=12 stamp=631903895 filename=/oracle/mdstb1/oradata/undotbs01.dbf datafile 3 switched to datafile copy input datafile copy recid=13 stamp=631903895 filename=/oracle/mdstb1/oradata/sysaux01.dbf datafile 4 switched to datafile copy input datafile copy recid=14 stamp=631903895 filename=/oracle/mdstb1/oradata/users01.dbf datafile 5 switched to datafile copy input datafile copy recid=15 stamp=631903895 filename=/oracle/mdstb1/oradata/mgmt.dbf datafile 6 switched to datafile copy input datafile copy recid=16 stamp=631903895 filename=/oracle/mdstb1/oradata/mgmt_ecm_depot1.dbf datafile 9 switched to datafile copy input datafile copy recid=17 stamp=631903895 filename=/oracle/mdstb1/oradata/rman01.dbf contents of Memory Script: set until scn 107870829; recover standby clone database delete archivelog ; executing Memory Script executing command: SET until clause Starting recover at 29-AUG-07 using channel ORA_AUX_DISK_1 using channel ORA_AUX_SBT_TAPE_1 starting media recovery channel ORA_AUX_SBT_TAPE_1: starting archive log restore to default destination archive log thread=1 sequence=2436 archive log thread=1 sequence=2437 archive log thread=1 sequence=2438 archive log thread=1 sequence=2439 archive log thread=1 sequence=2440 archive log thread=1 sequence=2441 archive log thread=1 sequence=2442 archive log thread=1 sequence=2443 channel ORA_AUX_SBT_TAPE_1: reading from backup piece 0aiqk51m_1_1 channel ORA_AUX_SBT_TAPE_1: restored backup piece 1 piece handle=0aiqk51m_1_1 tag=tag20070829t164126 channel ORA_AUX_SBT_TAPE_1: restore complete, elapsed time: 00:00:26 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2436_595698477.arc thread=1 sequence=2436 HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 6 of 9

channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2436_595698477.arc recid=8 stamp=631903921 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2437_595698477.arc thread=1 sequence=2437 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2437_595698477.arc recid=7 stamp=631903911 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2438_595698477.arc thread=1 sequence=2438 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2438_595698477.arc recid=3 stamp=631903905 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2439_595698477.arc thread=1 sequence=2439 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2439_595698477.arc recid=1 stamp=631903905 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2440_595698477.arc thread=1 sequence=2440 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2440_595698477.arc recid=2 stamp=631903905 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2441_595698477.arc thread=1 sequence=2441 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2441_595698477.arc recid=6 stamp=631903906 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2442_595698477.arc thread=1 sequence=2442 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2442_595698477.arc recid=5 stamp=631903906 archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2443_595698477.arc thread=1 sequence=2443 channel clone_default: deleting archive log(s archive log filename=/oracle/mdstb1/10.2.0/dbs/archlog9ed3f2ad_1_2443_595698477.arc recid=4 stamp=631903905 media recovery complete, elapsed time: 00:00:30 Finished recover at 29-AUG-07 Finished Duplicate Db at 29-AUG-07 2.2 Manual Archivelog Recovery SQL> recover logfile '/oracle/mddb1/10.2.0/dbs/arch1_2444_595698477.dbf'; 2.3 DataGuard Standby Configuration (without DG Broker TNS Names Configuration MDDB1_DATAGUARD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP(HOST = DBHOST1.intra(PORT = 1521 (CONNECT_DATA = HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 7 of 9

(SID = MDDB1 MDSTB1_DATAGUARD = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP(HOST = DBHOST1.intra(PORT = 1622 (CONNECT_DATA = (SID = MDSTB1 Listener Configuration LISTENER_DATAGUARD_MDSTB1 = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP(HOST = DBHOST1.intra(PORT = 1622 (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC(KEY = MDSTB1 SID_LIST_LISTENER_DATAGUARD_MDSTB1 = (SID_LIST = (SID_DESC = (SID_NAME = MDSTB1 (ORACLE_HOME = /oracle/mdstb1/10.2.0 Primary init configuration: ALTER SYSTEM SET fal_client='mddb1_dataguard' SCOPE=BOTH; ALTER SYSTEM SET fal_server='mdstb1_dataguard' SCOPE=BOTH; ALTER SYSTEM SET log_archive_dest_1='location=/oracle/mddb1/oraarch' SCOPE=BOTH; ALTER SYSTEM SET log_archive_dest_state_2='defer' SCOPE=BOTH; ALTER SYSTEM SET log_archive_dest_2='service=mdstb1_dataguard LGWR ASYNC' SCOPE=BOTH; Standby init configuration Passwordfile configuration *.log_file_name_convert='/oracle/mddb1/','/oracle/mdstb1/' *.db_file_name_convert='/oracle/mddb1/oradata/','/oracle/mdstb1/oradata/' *.STANDBY_ARCHIVE_DEST ='/oracle/mdstb1/oraarch/' *.LOG_ARCHIVE_FORMAT='log%d_%t_%s_%r.arc' *.DG_BROKER_START=FALSE *.FAL_CLIENT='MDSTB1_DATAGUARD' *.FAL_CLIENT='MDDB1_DATAGUARD' *.standby_file_management='auto' *.parallel_execution_message_size=4096 *.log_archive_dest_1='location=/oracle/mdstb1/oraarch' Enabling the log transport SQL> startup nomount; HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 8 of 9

SQL> alter database mount standby database; Check if sys can authenticate: sqlplus "sys@mddb1_dataguard as sysdba" SQL*Plus: Release 10.2.0.3.0 - Production on Wed Aug 29 17:52:01 2007 Copyright (c 1982, 2006, Oracle. All Rights Reserved. Enter password: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options SQL> exit sqlplus "sys@mdstb1_dataguard as sysdba" SQL*Plus: Release 10.2.0.3.0 - Production on Wed Aug 29 17:51:52 2007 Copyright (c 1982, 2006, Oracle. All Rights Reserved. Enter password: Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, OLAP and Data Mining options SQL> exit Enable Log Transport ALTER SYSTEM SET log_archive_dest_state_2='enable' SCOPE=BOTH; HowTo_RMAN_Restore_for_Standby_10gR2.pdf Page 9 of 9