Database Backup and Recovery (MOSC)

MOSC Banner

How to restore/recovery to the LAST BACKUP no rollforward?

edited Jan 11, 2012 2:42AM in Database Backup and Recovery (MOSC) 8 commentsAnswered ✓
Hello all,
I borrow a test server to do function test on my code. When done, I need to put the database back to its original state.
I might need to run my backup script (more than once) to roll back the database during testing..

So, I did a full backup in NOARCHIVELOG mode, for example:
BACKUP FORMAT '$BACKUP_DIR/df_%u' FILESPERSET 999999 DATABASE;

Here is my restore script using point-in-time recovery:

connect target /
run
{
   SHUTDOWN IMMEDIATE;
   STARTUP MOUNT;
   ALLOCATE CHANNEL c1 TYPE DISK;

   # Doing the Incomplete Media Recovery with Time-Based Recovery
   # Set the point-in-time to JUST AFTER the BACKUP

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