Restore from Application Backup Repository
If you use Oracle RMAN Incremental Merge, you can recover an Oracle database using the image copy and incremental backups stored on the NFS share of the application backup repository. For more information, see Oracle RMAN Incremental Merge.
Depending on the recovery scenario, you can use the image copy and application backup repository snapshots in the following ways:
- Switch the database to the image copy stored on the NFS share. This approach allows you to minimize the downtime in case of disaster. Since the image copy contains ready-to-use database files, Oracle RMAN will only update the control file to use the image copy as the current database files and will not copy any data. After the switch, the database will run directly from the NFS share until you restore the database files to the production storage. For more information, see Switching Database to Image Copy.
- Recover the database from the NFS share to the production storage, without switching the database to the image copy. In this case, Oracle RMAN will copy the database files from the NFS share to their original location, and the restore operation will take about as much time as a full database restore. For more information, see Restoring Database to Production Storage.
- Restore the database to another server. You can export the data of an application backup repository snapshot to a temporary NFS share and restore the database from this share without changing the production database. This maybe useful for testing purposes. For more information, see Restoring Database to Another Server.
Switching Database to Image Copy
To switch the database to the image copy, run the following command:
RUN { |
After you switch the database to image copy, make sure you disable the snapshot schedule in the repository settings . You cannot create snapshots of the share while the database is running.
To return the database files to the production storage later, run the following statement for each database file:
ALTER DATABASE MOVE DATAFILE '<file_path>' TO '<new_file_path>'; |
where:
- <file_path> is the current path of the database file on the NFS share.
- <new_file_path> is the path on the production storage to which Oracle will move the database file.
For example:
ALTER DATABASE MOVE DATAFILE '/nfsabr/oracopy/ORCL_USERS_4.dbf' TO '/u01/oradata/ORCL/users01.dbf'; |
Restoring Database to Production Storage
To restore the database from the image copy, run the following command:
RUN { |
where <tag_name> is the tag of the image copy from which Oracle RMAN restores the database. Specify the tag that you used when you created the image copy. For more information, see Oracle RMAN Incremental Merge.
For example:
RUN { |
Alternatively, you can recover the application backup repository to an earlier snapshot and switch the database to the image copy from this snapshot. After the recovery operation, you must restore the control file from the backup stored on the share. For more information on this operation, see Performing Instant Application Backup Repository Recovery.
Restoring Database to Another Server
To restore the database to another server, do the following:
- In the Veeam Backup & Replication console, export the data of the required snapshot to a temporary NFS share. For more information, see Performing Instant Application Backup Repository Recovery.
- Mount the temporary NFS share on the target server.
- On the target server, restore the database from the image copy stored on the share. To restore the database, run the following command:
RUN { |
where:
- <mount_point> is the mount point of the temporary NFS share on the target server.
- <file_name> is the name of the backup file on the share. Make sure that you restore the SPFILE and control file that match the image copy in the snapshot.
For example:
RUN { |
Oracle RMAN will restore the database files to the paths recorded in the control file. Make sure that these paths exist on the target server.
When you stop the export session, Veeam Backup & Replication deletes the temporary NFS share together with all the data stored on it.