Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrospective (flashback) SQLs at restored DB from RMAN backup

YuriAPJan 21 2025

Hello,

Trying to understand where I could be wrong.
Oracle 12.1.0.2 patchset 20210420
The sequence of events:

  1. at some noon a data corruption happened (app tables were updated in the wrong way)

  2. at 6 pm a cold RMAN backup was created (took a few hours)

  3. after the backup finished, the DB was open in read-only mode and we managed to read successfully the data “as of” before the corruption

  4. the backup taken at step 2 was restored at a separate host and opened in read-only (Oracle version and patching level are the same on both source and destination hosts)

  5. the same “as of” SQLs from the step 3 failed with ORA-01555 at the restored DB

  6. also tried to “shift” time back at the host where the restoration happened, to match roughly the time when the backup was made, same result - ORA-01555.

undo_retention = 12h

Failures with ORA-01555 happened when the SQL tried to read the table itself, if to run something like "select count(*) from .. as of" it, was able to provide the result reading just PK index.

Is it even possible to run retrospective SQLs in that way?

This post has been answered by oraLaro on Jan 21 2025
Jump to Answer
Comments
Post Details
Added on Jan 21 2025
6 comments
106 views