Re: RMAN DUPLICATE failed at recovery time.
Date: Tue, 19 May 2009 07:52:49 -0700 (PDT)
Message-ID: <7d1b13e4-d0e0-4980-9f09-ee6534f37f04_at_t11g2000vbc.googlegroups.com>
This is what is logged in the RMAN log when the duplication is performing point in time recovery of the restored datafiles :
starting media recovery
RMAN-06560: WARNING: backup set with key 195101 will be read 3 times RMAN-06560: WARNING: backup set with key 195102 will be read 3 times RMAN-06560: WARNING: backup set with key 195103 will be read 3 times
available space of 6237788 kb needed to avoid reading the backup set
multiple times
channel aux1: starting archive log restore to default destination
channel aux1: restoring archive log
archive log thread=1 sequence=18247
channel aux1: reading from backup piece /backup/arch_dtfiles/
crkf7pg0_1_1
channel aux1: restored backup piece 1
piece handle=/backup/arch_dtfiles/crkf7pg0_1_1
tag=REMAINING_ARCHIVELOG_BACKUP
channel aux1: restore complete, elapsed time: 00:04:46
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get
error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/data-lv/oradata/system01.dbf'
released channel: aux1 released channel: aux2 released channel: aux3 released channel: aux4
RMAN-00571:
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
RMAN-00571:
RMAN-03002: failure of Duplicate Db command at 05/19/2009 10:08:01 RMAN-03015: error occurred in stored script Memory Script RMAN-06561: available space must be larger than 2061949 kb
Recovery Manager complete.
The backup contains three compressed backup sets (1 backup piece each) with archived logs (TAG: REMAINING_ARCHIVELOG_BACKUP), Oracle shows a warning specifying the backup sets Keys. What is shocking to me is that it is trying to recover the database with the newest logs and leaves the older ones behind, hence the recovery issue.
Executing the RMAN list command on the target DB to get information in archived logs backed up during the full target DB backup:
RMAN> list backup tag REMAINING_ARCHIVELOG_BACKUP;
List of Backup Sets
BS Key Size Device Type Elapsed Time Completion Time ------- ---------- ----------- ------------ ---------------
195101 1.53G DISK 00:07:55 17-MAY-09
BP Key: 195108 Status: AVAILABLE Compressed: YES Tag:
REMAINING_ARCHIVELOG_BACKUP
Piece Name: /backup/djprod1/arch_dtfiles/crkf7pg0_1_1
List of Archived Logs in backup set 195101
Thrd Seq Low SCN Low Time Next SCN Next Time
- ------- ---------- --------- ---------- --------- 1 18247 13753652757 17-MAY-09 13753968692 17-MAY-09 1 18248 13753968692 17-MAY-09 13754284761 17-MAY-09 1 18249 13754284761 17-MAY-09 13754519417 17-MAY-09
195102 1.66G DISK 00:08:58 17-MAY-09
BP Key: 195109 Status: AVAILABLE Compressed: YES Tag:
REMAINING_ARCHIVELOG_BACKUP
Piece Name: /backup/djprod1/arch_dtfiles/cpkf7pg0_1_1
List of Archived Logs in backup set 195102
Thrd Seq Low SCN Low Time Next SCN Next Time
- ------- ---------- --------- ---------- --------- 1 18244 13752701081 17-MAY-09 13753019578 17-MAY-09 1 18245 13753019578 17-MAY-09 13753336611 17-MAY-09 1 18246 13753336611 17-MAY-09 13753652757 17-MAY-09
195103 1.71G DISK 00:09:09 17-MAY-09
BP Key: 195110 Status: AVAILABLE Compressed: YES Tag:
REMAINING_ARCHIVELOG_BACKUP
Piece Name: /backup/djprod1/arch_dtfiles/cqkf7pg0_1_1
List of Archived Logs in backup set 195103
Thrd Seq Low SCN Low Time Next SCN Next Time
- ------- ---------- --------- ---------- ---------
1 18241 13751509331 16-MAY-09 13752221618 17-MAY-09
1 18242 13752221618 17-MAY-09 13752412707 17-MAY-09
1 18243 13752412707 17-MAY-09 13752701081 17-MAY-09
As you can see it is starting recovery from log sequence 18247, that
belongs to backup set key 195101, and is leaving behind older logs
contained in
195102 and 195103 backup sets, which explains why point in time
recovery is failing.
Is this normal?
Thanks in advance. Received on Tue May 19 2009 - 09:52:49 CDT
