You are on page 1of 15
sirez08 ia Oracle Hack Data Guard Create Blog Sign in ORACLE HACK ORACLE BLOG EXPERIENCES OF AN ORACLE DBA Oracle, RMAN, GoldenGate, Active Duplication, OEM, DataPump... Showing posts with label Data Guard. Showall posts TUESDAY, MAY 5, 2009 RMAN script for backing up database and creating astandby For my full step by step on creating a physical standby database using RMAN see: Oracle Data Guard 10g - Physical Standby Database using RMAN On the primary database make a backup to disk: % rman target / Recovery Manager: Release 10.2.0.3.0 - Production on Mon May 415:06:05 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved connected to target database: DEV (DBID=37 6387 47 43) RMAN> RUN { 2> ALLOCATE CHANNEL disk. DEVICE TYPE DISK 3> FORMAT Yoracle_backups/DEV/rman/bk_for_standby_%T_%U 4> ALLOCATE CHANNEL disk DEVICE TYPE DISK 5> FORMAT Yoracle_backups/DEV/rman/bk_for_standby_%T_%U’; 6> ALLOCATE CHANNEL disk3 DEVICE TYPE DISK 17> FORMAT Joracle_backups/DEV/rman/bk_for_standby_%T_%U’; 8> ALLOCATE CHANNEL disk4 DEVICE TYPE DISK 9> FORMAT oracle_backups/DEV/rman//bk_for_standby_%T_9%U’; 10> BACKUP CURRENT CONTROLFILE FOR STANDBY joracle_backups/DEV /rman/stby efile_%T_%U 12> BACKUP CHECK LOGICAL FULL DATABASE PLUS ARCHIVELOG; 11> FORMA’ 13>} RMAN> RMAN> exit From the pri ary a: hip dloracohackbog spol convsearciabolDatat20G.are in run the ereate standby command ORACLE Corti Professional Oracle Database 10g Administrator ORACLE DBA SITES DBASupport 11g Central 10UG Oracle 11gR2 Documentation Oracle-Base TOTAL PAGEVIEWS raha 144,527 5 SolarWinds Database Performance Analyzer for Oracle LSS E Te) solarwinds” The Porto Moog TIPS AND DOCUMENTATION ws sirez08 Oracle Hack Data Guard from RMAN. Logging into your standby asthe auxiliary: >rman target / auxiliary sys/xxxxx@ DEVp1; Recovery Manager: Release 10.2.0.3.0 - Production on Wed Mar 1115: 2009 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: DEV (DBID=41831754) connected to auxiliary database: DEV (not mounted) NOTE: Both database names match but the auxiliary is not mounted, RMAN> RMAN> RUN { 2> ALLOCATE CHANNEL disk. DEVICE TYPE DISK; 3> ALLOCATE CHANNEL disk DEVICE TYPE DISK; 4> ALLOCATE AUXILIARY CHANNEL auxt DEVICE TYPE DISK; 5> ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK; (6> DUPLICATE TARGET DATABASE FOR STANDBY NOFILENAMECHECK DORECOVER; 7 >} RMAN>exit; POSTED BY ORACLE HACK AT 1:18PM 1 COMMENT: Daa] +1 Recommend this on Google LINKS TO THIS POST LABELS: DATA GUARD, ORACLE, RMAN (TIONS: Useful (0) Inaccurate (0) Rei Interesting (0) MONDAY, MAY 4, 2009 RMAN-05507: standby control file checkpoint ... hip dloracohackbog spol convsearciabolDatat20G.are Alert log (4) Audit Files (2) Backup and Recovery (7) Data Guard (4) Data Pump (5) DBMS_JOB (1) Duplication (5) Golden Gate (9) Indexing (1) Install Upgrade and Patch (3) Interview questions (1) Linux (3) Materialized View (5) OEM (2) 0GG- (2) ORA- (7) Oracle (53) Oracle Memory (2) Recovery (3) RMAN (15) Scheduler (1) SQL (6) Tablespace (1) UNIX (5) UTL_MAIL(@) Veritas NetBackup (3) Windows (1) BLOG ARCHIVE > 2013 (6) > 2012 (13) > 2011 (6) > 2010 (14) ¥ 2009 (15) > October (2) > September (1) Y May (2) RMAN script for backing up database and creating a. ans sirez08 Oracle Hack Data Guard RMAN-05507: standby control file checkpoint (%s) is more recent than duplication point in time (%s) channel auxz: starting datafile backupset restorechannel auxi:restoring control file channel auxt: reading from backup piece Joracle_ackups/DEV /rman /efile2_20090504_1dke61j1_13 channel auxs: restored backup piece ipiece hhandle=/oracle_packups/DEV /rman efile2_20090504_10ke61jl_1_t tag-TAG20090504T102245 channel aux1: restore complete, elapsed time: 00:00:08 cutout flename=/uo1/oradata/ prodjconteolot.tl cstpat flename=/uos/oradata/prodjeontroloa.ctl ctu flenames/uos/oradata/prodjeontrolog.ctl Finished restoreat 0;-MAY-09 so statement: alter database maunt standby datebase released channel: disk released channel: disk released channel: aust released channel: auxz RMAN-00578!— RMAN-00569; --=-—- ERROR MESSAGE STACK FOLLOWS RMAN-00571!== — RMAN-ogooa: failure of Duplicate Db command st 05/04/2009 10:28:16 RMAN-05507:standby contral file checkpoint (8421129405955) is more recent than duplication point in time (8421129405955) Using RMAN to create a standby database: Be sure to take a backup of the Control File for Standby prior to your database backup. For complete details on setting up a Physical Standby using RMAN see my link at: Oracle Data Guard 10g - Physical Standby Database using RMAN RMAN script for backing up database and creating a standby: POSTED BY ORACLE HACK AT 3:33 PM NO COMMENTS &+1 | Recommend this on Google LINKS TO THIS POST LABELS: DATA GUARD, ORACLE, RMAN hip dloracohackbog spol convsearciabolDatat20G.are tandby control file checkpoint > April (2) > March (3) > February (3) > 2) January > 2008 (9) > 2007 (3) CONTRIBUTORS. Oracle Hack Oracle Hack ans