Hi
I’ve been trying to run Duplicate Oracle database using Tape Storage Policy Copy but it fails during Archivelog restore with “Error while restoring backup piece”.
Since this is a Selective Copy there are only Weekly Selective Fulls present on media. I’ve been looking for some answers in RMAN log, but what I see here doesn’t make sense.
First of all the last SOF (selective online full) backup present on tape copy is job 47104. Looking at RMAN run block I can see SET UNTIL clause is set to correct time which is a couple of minutes before job 47104 ended. It does restore all required datafiles, but during archivelog restore it tries to restore from backup pieces from newer jobs which, since this is a Selective Copy, are not present on the media. Then it fails over to previous job until it tries to restore from the job that is actually on the media (47104) but it still fails permanently this time. The SCN on which restore fails is lower then the Next SCN number in the job properties so it should be present on the media.
Job 47104 have status Available on Tape SPC, I’ve used getbackuplist qcommand to verify that backup piece on which the restore fails is present in the backup job mentioned
Can you advice on why it fails or how to do this successfully?
Below are some additional screenshots from duplicate options:
Essential RMAN log fragment is attached.
Best answer by Robert Horowski
View original