File: IncrementallyUpdateableImageCopyBackups.doc Purpose: Demonstrates how Oracle 10gR2 Recovery Manager (RMAN) implements incrementally updateable image copies over three running cycles. Results from 1st run: - Incremental Level 0 image copies of datafiles 1-5 now exist because even though a Level 1 incremental backup was requested, no Level 0 incremental backup has yet been created with the tag of img_cpy_upd. RMAN> RUN { RMAN Script: IncrementallyUpdatedImageCopyBackups.rcv Creates a daily image copy of all datafiles and Level 1 incremental backups for use by the daily image copies. Note that the PLUS ARCHIVELOG command will handle archival of any archived redo logs. Roll forward any available changes to image copy files from the previous set of incremental Level 1 backups RECOVER COPY OF DATABASE WITH TAG 'img_cpy_upd'; Create incremental level 1 backup of all datafiles in the database for roll-forward application against image copies BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'img_cpy_upd' DATABASE PLUS ARCHIVELOG; } 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> Starting recover at 2009-05-05.12:35:50 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=117 device type=disk no copy of datafile 1 found to recover no copy of datafile 2 found to recover no copy of datafile 3 found to recover no copy of datafile 4 found to recover no copy of datafile 5 found to recover Finished recover at 2009-05-05.12:35:55 Starting backup at 2009-05-05.12:35:56 input archived log thread=1 sequence=29 RECID=18 STAMP=686061359 channel ORA_DISK_1: starting 1 at 2009-05-05.12:36:16 channel ORA_DISK_1: finished 1 at 2009-05-05.12:36:17
handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t123559_0.263.686061377 tag=tag20090505t123559 comment=none channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02 Finished backup at 2009-05-05.12:36:18 Starting backup at 2009-05-05.12:36:18 no parent backup or copy of datafile 1 found no parent backup or copy of datafile 2 found no parent backup or copy of datafile 3 found no parent backup or copy of datafile 5 found no parent backup or copy of datafile 4 found input datafile file number=00001 name=+data/orcl/datafile/system.257.685971885 output file name=+fra/orcl/datafile/system.264.686061393 tag=img_cpy_upd RECID=14 STAMP=686061458 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:15 input datafile file number=00002 name=+data/orcl/datafile/sysaux.258.685971937 output file name=+fra/orcl/datafile/sysaux.265.686061485 tag=img_cpy_upd RECID=15 STAMP=686061549 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:16 input datafile file number=00003 name=+data/orcl/datafile/undotbs1.259.685971971 output file name=+fra/orcl/datafile/undotbs1.274.686061573 tag=img_cpy_upd RECID=16 STAMP=686061588 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:26 input datafile file number=00005 name=+data/orcl/datafile/example.260.685971993 output file name=+fra/orcl/datafile/example.276.686061613 tag=img_cpy_upd RECID=17 STAMP=686061625 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:16 including current control file in backup set including current SPFILE in backup set channel ORA_DISK_1: starting 1 at 2009-05-05.12:40:46 channel ORA_DISK_1: finished 1 at 2009-05-05.12:40:50 handle=+fra/orcl/backupset/2009_05_05/ncsnn1_tag20090505t123619_0.277.686061647 tag=tag20090505t123619 comment=none input datafile file number=00004 name=+data/orcl/datafile/users.262.685972137 output file name=+fra/orcl/datafile/users.278.686061661 tag=img_cpy_upd RECID=18 STAMP=686061663 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:04 Finished backup at 2009-05-05.12:41:05 Starting backup at 2009-05-05.12:41:05 input archived log thread=1 sequence=30 RECID=20 STAMP=686061669 channel ORA_DISK_1: starting 1 at 2009-05-05.12:41:21 channel ORA_DISK_1: finished 1 at 2009-05-05.12:41:25 handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t124110_0.280.686061681 tag=tag20090505t124110 comment=none
Finished backup at 2009-05-05.12:41:25 Results from 2nd run: - Incremental Level 0 image copies of datafiles 1-5 now exist but since no Incremental Level 1 image copy backups yet exist with a tag of img_cpy_upd, none will be applied to the existing Level 0 backups. - Incremental Level 1 backups of datafiles 1-5 will be taken because Incremental Level 0 backups (their eventual parents ) now exist. - Datafile 6 is a new datafile, so RMAN will create an Incremental Level 0 backup for it. RMAN> RUN { RMAN Script: IncrementallyUpdatedImageCopyBackups.rcv Creates a daily image copy of all datafiles and Level 1 incremental backups for use by the daily image copies. Note that the PLUS ARCHIVELOG command will handle archival of any archived redo logs. Roll forward any available changes to image copy files from the previous set of incremental Level 1 backups RECOVER COPY OF DATABASE WITH TAG 'img_cpy_upd'; Create incremental level 1 backup of all datafiles in the database for roll-forward application against image copies BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'img_cpy_upd' DATABASE PLUS ARCHIVELOG; } 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> Starting recover at 2009-05-05.12:49:33 no copy of datafile 1 found to recover no copy of datafile 2 found to recover no copy of datafile 3 found to recover no copy of datafile 4 found to recover no copy of datafile 5 found to recover no copy of datafile 6 found to recover Finished recover at 2009-05-05.12:49:35 Starting backup at 2009-05-05.12:49:36 input archived log thread=1 sequence=29 RECID=18 STAMP=686061359 input archived log thread=1 sequence=30 RECID=20 STAMP=686061669 input archived log thread=1 sequence=31 RECID=22 STAMP=686062181 channel ORA_DISK_1: starting 1 at 2009-05-05.12:50:07 channel ORA_DISK_1: finished 1 at 2009-05-05.12:50:11
handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t124942_0.282.686062209 tag=tag20090505t124942 comment=none Finished backup at 2009-05-05.12:50:11 Starting backup at 2009-05-05.12:50:12 no parent backup or copy of datafile 6 found input datafile file number=00001 name=+data/orcl/datafile/system.257.685971885 input datafile file number=00002 name=+data/orcl/datafile/sysaux.258.685971937 input datafile file number=00003 name=+data/orcl/datafile/undotbs1.259.685971971 input datafile file number=00005 name=+data/orcl/datafile/example.260.685971993 input datafile file number=00004 name=+data/orcl/datafile/users.262.685972137 channel ORA_DISK_1: starting 1 at 2009-05-05.12:50:27 channel ORA_DISK_1: finished 1 at 2009-05-05.12:52:02 handle=+fra/orcl/backupset/2009_05_05/nnndn1_tag20090505t125012_0.283.686062227 tag=tag20090505t125012 comment=none channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35 input datafile file number=00006 name=+data/orcl/datafile/data1.261.686061729 output file name=+fra/orcl/datafile/data1.284.686062335 tag=img_cpy_upd RECID=19 STAMP=686062338 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:08 including current control file in backup set including current SPFILE in backup set channel ORA_DISK_1: starting 1 at 2009-05-05.12:52:38 channel ORA_DISK_1: finished 1 at 2009-05-05.12:52:42 handle=+fra/orcl/backupset/2009_05_05/ncsnn1_tag20090505t125012_0.285.686062359 tag=tag20090505t125012 comment=none Finished backup at 2009-05-05.12:52:42 Starting backup at 2009-05-05.12:52:42 input archived log thread=1 sequence=32 RECID=24 STAMP=686062365 channel ORA_DISK_1: starting 1 at 2009-05-05.12:52:58 channel ORA_DISK_1: finished 1 at 2009-05-05.12:53:02 handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t125246_0.287.686062379 tag=tag20090505t125246 comment=none Finished backup at 2009-05-05.12:53:02 Results from 3rd run: - The previous night s Incremental Level 1 backups for datafiles 1 5 will now be applied to their Incremental Level 0 image copy parents. - Incremental Level 1 backups of datafiles 1-6 will be taken. - The Incremental Level 0 image copy backup of datafile 6 will not yet be updated from Incremental Level 1 backups until the next run.
RMAN> RUN { RMAN Script: IncrementallyUpdatedImageCopyBackups.rcv Creates a daily image copy of all datafiles and Level 1 incremental backups for use by the daily image copies. Note that the PLUS ARCHIVELOG command will handle archival of any archived redo logs. Roll forward any available changes to image copy files from the previous set of incremental Level 1 backups RECOVER COPY OF DATABASE WITH TAG 'img_cpy_upd'; Create incremental level 1 backup of all datafiles in the database for roll-forward application against image copies BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'img_cpy_upd' DATABASE PLUS ARCHIVELOG; } 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> Starting recover at 2009-05-05.13:28:26 no copy of datafile 6 found to recover channel ORA_DISK_1: starting incremental datafile backup set restore channel ORA_DISK_1: specifying datafile copies to recover recovering datafile copy file number=00001 name=+fra/orcl/datafile/system.264.686061393 recovering datafile copy file number=00002 name=+fra/orcl/datafile/sysaux.265.686061485 recovering datafile copy file number=00003 name=+fra/orcl/datafile/undotbs1.274.686061573 recovering datafile copy file number=00004 name=+fra/orcl/datafile/users.278.686061661 recovering datafile copy file number=00005 name=+fra/orcl/datafile/example.276.686061613 channel ORA_DISK_1: reading from backup +FRA/orcl/backupset/2009_05_05/nnndn1_tag20090505t125012_0.283.686062227 channel ORA_DISK_1: handle=+fra/orcl/backupset/2009_05_05/nnndn1_tag20090505t125012_0.283.686062227 tag=tag20090505t125012 channel ORA_DISK_1: restored backup 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:08 Finished recover at 2009-05-05.13:28:37 Starting backup at 2009-05-05.13:28:39 input archived log thread=1 sequence=29 RECID=18 STAMP=686061359 input archived log thread=1 sequence=30 RECID=20 STAMP=686061669 input archived log thread=1 sequence=31 RECID=22 STAMP=686062181 input archived log thread=1 sequence=32 RECID=24 STAMP=686062365 input archived log thread=1 sequence=33 RECID=26 STAMP=686064523 channel ORA_DISK_1: starting 1 at 2009-05-05.13:29:00 channel ORA_DISK_1: finished 1 at 2009-05-05.13:29:01
handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t132844_0.289.686064541 tag=tag20090505t132844 comment=none channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02 Finished backup at 2009-05-05.13:29:02 Starting backup at 2009-05-05.13:29:02 input datafile file number=00001 name=+data/orcl/datafile/system.257.685971885 input datafile file number=00002 name=+data/orcl/datafile/sysaux.258.685971937 input datafile file number=00003 name=+data/orcl/datafile/undotbs1.259.685971971 input datafile file number=00005 name=+data/orcl/datafile/example.260.685971993 input datafile file number=00006 name=+data/orcl/datafile/data1.261.686061729 input datafile file number=00004 name=+data/orcl/datafile/users.262.685972137 channel ORA_DISK_1: starting 1 at 2009-05-05.13:29:14 channel ORA_DISK_1: finished 1 at 2009-05-05.13:30:50 handle=+fra/orcl/backupset/2009_05_05/nnndn1_tag20090505t132902_0.290.686064555 tag=tag20090505t132902 comment=none channel ORA_DISK_1: backup set complete, elapsed time: 00:01:36 including current control file in backup set including current SPFILE in backup set channel ORA_DISK_1: starting 1 at 2009-05-05.13:31:05 channel ORA_DISK_1: finished 1 at 2009-05-05.13:31:09 handle=+fra/orcl/backupset/2009_05_05/ncsnn1_tag20090505t132902_0.291.686064665 tag=tag20090505t132902 comment=none Finished backup at 2009-05-05.13:31:09 Starting backup at 2009-05-05.13:31:09 input archived log thread=1 sequence=34 RECID=28 STAMP=686064673 channel ORA_DISK_1: starting 1 at 2009-05-05.13:31:26 channel ORA_DISK_1: finished 1 at 2009-05-05.13:31:29 handle=+fra/orcl/backupset/2009_05_05/annnf0_tag20090505t133114_0.293.686064687 tag=tag20090505t133114 comment=none channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03 Finished backup at 2009-05-05.13:31:30