Using RMAN for a Point In Time recovery (to restore to a different point in time)

Scenario: To restore to a certain point in time (point in time recovery).

Scenario: To restore to a certain point in time (point in time recovery).

A full backup was made at 13:40. The emp1355 table was created at 13:55.

 

Enter some data (the constraints may have to be deleted)

To check

Created the emp1400 table at 14:00

At 13:56 we want to execute a Point In Time Recovery.

  • The database is shutdown and datafiles are deleted.
  • There is the full backup that was made at 13:40.
  • Datafiles will be restored from rman backup and then recovered from archivelogs that were generated between 13:40 and 13:56.

Restore is used to return to the moment that the backup was made.

Recover is then used to bring the archive logs to the last moment.

 

To check

Setting the database so that it is possible to recover to 3 days ago

Requires configuration. The backups don’t get deleted regardless of the number of backups that have been made.

Alternatively, we need the archive logs from the past 3 days.

The archive logs made by the backup process are used for recovery.