Database Point-In-Time Recovery with BR*Tools

Purpose

You can use BR*Tools for Oracle to perform a database point-in-time (PIT) recovery. BRRECOVER performs the recovery.

This section discusses how to perform a database PIT recovery.

For more information on how to approach a database PIT recovery, see Database Point-In-Time Recovery.

Prerequisites

·        Make sure you have set the necessary BRRECOVER parameters in the initialization profile init<DBSID>.sap, because BRTOOLS uses these when it calls BRRECOVER.

·        BRRECOVER calls BRRESTORE as necessary to perform restore functions.

·        BRRECOVER calls SQLPLUS as necessary to apply offline redo log files.

Process Flow

...

       1.      You start BRGUI or BRTOOLS.

       2.      You choose Restore and recovery  ® Database point-in-time recovery.

You can do one of the following:

Ў        Set the command line now and run the recovery in unattended mode

Ў        Wait for BRRECOVER to prompt you during the recovery, that is, run the recovery in attended mode

We recommend you to normally run the recovery in attended mode.

If you are sure of the required entries – for example, for a routine database copy – you can run the recovery in unattended mode.

       3.      If you want to run the recovery in unattended mode, you select force in Confirmation mode (confirm).

       4.      To start the recovery, you choose Continue.

BRRECOVER starts the recovery. You perform the following steps with BRRECOVER:

If you are using attended mode, BRRECOVER guides you through the recovery, prompting you as necessary.

       5.      You set a point in time for the recovery.

       6.      You select database backups.

       7.      You check the status of the database files.

       8.      If required, you restore the control files.

       9.      You restore data files.

   10.      If required, you restore and apply an incremental backup.

   11.      You restore and apply the online redo log – that is, archivelog – files

   12.      You open the database.

   13.      You check the results in the BRRECOVER and BRRESTORE logs:

Ў        BRRECOVER logs:

§         The summary log recov<DBSID>.logdisplays the return code.

§         The detail log v<encoded timestamp>.dpt displays the progress.

Ў        BRRESTORE logs for the restore functions:

§         The summary log rest<DBSID>.logdisplays the return code

§         The detail log r<encoded timestamp>.<ext> displays the progress.

For more information on how to view the logs, see Showing Logs with BR*Tools.