This article explains how to restore an Oracle database from a backup.
The first step in restoring an Oracle database from backup is to restore the database files from storage to a temporary directory. These files will then be imported into the Oracle database environment.
To restore files backed up using a file-level backup plan follow this guide.
If the database files are restored to a temporary directory, run the following command in the CLI:
/opt/XoperoONEBackupAgent/Xopero.Device.App --oracle-restore database_ID backupuser /home/backupuser/oracle/oracle_database_dump/opt/XoperoONEBackupAgent/Xopero.Device.App — path to the Xopero ONE application
--oracle-restore — parameter used to restore the Oracle database
database_ID — ID of the database to be restored
backupuser — user with permission to restore the database
/home/backupuser/oracle/oracle_database_dump — path to the directory containing the restored database files
If the restore completes successfully, information about the restored database will be displayed on the screen:
If part of the database is currently unavailable (for example, if a user deleted a table), the restoration process described above may fail, as the deletion is a more recent operation in the database.
The solution is to run the modified command:
The last optional parameter, required only when restoring to the source host, should be set to true. This ensures Xopero sets the SCN (System Change Number) to the point immediately after the backup.
Setting this parameter resolves issues with unrestored parts of the database. The restoration method described in the first section of this article will still work, but it may not always produce the expected results.
/opt/XoperoONEBackupAgent/Xopero.Device.App --oracle-restore database_ID backupuser /home/backupuser/oracle/oracle_database_dump true