Database Backup and Recovery (MOSC)

MOSC Banner

How to get the next_scn from the last archivelog backed up to SBT

Hello,

I want to automate RMAN cloning from PROD to TEST. The RMAN backups live on Oracle Cloud Backup SBT. So, I go to the PROD DB, and do a "restore database device preview device type sbt" and from the output I look at the last archivelog backed up, take the next_scn, and subtract 1, and then use that value for the SCN to restore to in my clone script.

I back up the backupsets in the FRA to SBT (which lives on Oracle cloud DB Backup). We treat that as tape/SBT.

We don't use RMAN catalog.


Is there a way to find the next_scn from the last archivelog backed up to SBT through a SQL query? And/or what SQL does ORacle use to do a "restore database preview device type sbt"?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center