##########################
# Error
##########################
RMAN-06457: UNTIL SCN (3680420) is ahead of last SCN in archived logs (3680404)
##########################
# Full Error
##########################
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 12/12/2012 08:09:45
RMAN-06457: UNTIL SCN (3680420) is ahead of last SCN in archived logs (3680404)
##########################
# Cause
##########################
Error occured while trying to duplicate a database of 11.2.0.1.0 version.
# Command Executed
##########################
duplicate database to dup11r2
until time "To_Date('12-DEC-2012 07:40:38','DD-MON-YYYY HH24:MI:SS')"
SPFILE
SET CONTROL_FILES='H:\app\Administrator\oradata\DUP11R2\control01.ctl'
set db_file_name_convert='H:\app\Administrator\oradata\ora11g','H:\app\Administrator\oradata\DUP11R2'
set log_file_name_convert='H:\app\Administrator\oradata\ora11g','H:\app\Administrator\oradata\DUP11R2'
backup location 'H:\app\Administrator\backup\ORA11G';
##########################
## Solution
##########################
Set Until time used is ahead of the next_time of the last backed up archivelog.
select sequence#,completion_time,next_time from v$archived_log order by 2
SEQUENCE# COMPLETION_TIME NEXT_TIME
---------- -------------------- --------------------
176 12-DEC-2012 07:33:31 12-DEC-2012 07:33:27
177 12-DEC-2012 07:40:29 12-DEC-2012 07:40:28
So the next_time of the last backed up sequence 177 is "12-DEC-2012 07:40:28". Duplication is successful with this timestamp.
duplicate database to dup11r2
until time "To_Date('12-DEC-2012 07:40:28','DD-MON-YYYY HH24:MI:SS')"
SPFILE
SET CONTROL_FILES='H:\app\Administrator\oradata\DUP11R2\control01.ctl'
set db_file_name_convert='H:\app\Administrator\oradata\ora11g','H:\app\Administrator\oradata\DUP11R2'
set log_file_name_convert='H:\app\Administrator\oradata\ora11g','H:\app\Administrator\oradata\DUP11R2'
backup location 'H:\app\Administrator\backup\ORA11G';
No comments:
Post a Comment