7 Backing Up and Restoring Autonomous Transaction Processing

This section describes backup and recovery tasks on Autonomous Transaction Processing.

About Backup and Recovery on Autonomous Transaction Processing

Autonomous Transaction Processing automatically backs up your database for you. The retention period for backups is 60 days. You can restore and recover your database to any point-in-time in this retention period.

Manual Backups

You do not have to do any manual backups for your database as Autonomous Transaction Processing backs up your database automatically. You can do manual backups using the cloud console; for example if you want to take a backup before a major change to make restore and recovery faster. The manual backups are put in your Cloud Object Storage bucket. When you initiate a point-in-time recovery Autonomous Transaction Processing decides which backup to use for faster recovery.

Recovery

You can initiate recovery for your Autonomous Transaction Processing database using the cloud console. Autonomous Transaction Processing automatically restores and recovers your database to the point-in-time you specify.

Listing Backups

The list of backups available for recovery is shown on the Autonomous Transaction Processing details page under Backups.

Restore and Recover Your Autonomous Transaction Processing Database

The Autonomous Transaction Processing console Actions drop-down Restore operation allows you to initiate recovery for your database.

To restore and recover your database to a point in time, do the following:

  1. Sign in to your Oracle Cloud Account at cloud.oracle.com.
  2. From the Oracle Cloud Infrastructure left navigation list click Autonomous Transaction Processing.
  3. On the Autonomous Databases page select an Autonomous Transaction Processing instance from the links under the Name column.
  4. On the details page, from the Actions drop-down list, select Restore to display the Restore prompt.
  5. In the Restore prompt, select Specify Timestamp or Select Backup to restore to a point in time or to restore from a specified backup.
    • SPECIFY TIMESTAMP: Enter a timestamp to restore to in the ENTER TIMESTAMP calendar field.
    • SELECT BACKUP: Select a backup from the list of backups. Limit the number of backups you see by specifying a period using the FROM and TO calendar fields.
  6. Click Restore.

    Note:

    Restoring Autonomous Transaction Processing puts the database in the unavailable state during the restore operation. You cannot connect to a database in that state. The only lifecycle management operation supported in unavailable state is terminate.

    The details page shows Lifecycle State: Restore In Progress...

  7. When the restore operation finishes your Autonomous Transaction Processing instance opens in read-only mode and the instance details page Lifecycle State shows Available Needs Attention.
  8. At this point you can connect to your Autonomous Transaction Processing instance and check your data to validate that the restore point you specified was correct:
    • If the restore point you specified was correct and you want to open your database in read-write mode click Stop and after the database stops, click Start to start the database. After stopping and starting, the database opens in read-write mode.

      Note:

      After the instance is opened in read-write mode some of your backups are invalidated.
    • After checking your data if you find that the restore date you specified was not the one you needed you can initiate another restore operation to another point in time.

Note 1:

When you restore your database and open it in read-write mode, all backups between the date the restore completes and the date you specified for the restore operation - the restore time - are invalidated. After the database is opened in read-write mode after a restore, you cannot initiate further restore operations to any point in time between the restore time and restore completion time. You can only initiate new restore operations to a point in time older than the restore time or more recent than the time when the actual restore succeeded.

For example, assume you initiate a restore operation on Oct 8, 2018, 2 pm and specify Oct 1, 2018, 2 pm as the point in time to restore to and the restore completes on Oct 8, 2018, 2:30 pm. If you open your database in read-write mode at this point, backups between Oct 8, 2018, 2:30 pm and Oct 1, 2018, 2 pm will be invalidated. You will not be able to restore to any date between Oct 1, 2018, 2 pm and Oct 8, 2018, 2:30 pm. If you initiate a restore to a point in time between these dates the restore will fail with an error.

Note 2:

The restore operation also restores the DATA_PUMP_DIR directory to the timestamp you specified for the restore; files that were created after that timestamp would be lost.

Back Up Your Autonomous Transaction Processing Database Manually

In addition to automatic backups, Autonomous Transaction Processing also allows you take manual backups.

  1. Sign in to your Oracle Cloud Account at cloud.oracle.com.
  2. From the Oracle Cloud Infrastructure left navigation list click Autonomous Transaction Processing.
  3. On the Autonomous Databases page select an Autonomous Transaction Processing instance from the links under the Name column.
  4. On the details page, under Backups, click Create Manual Backup.
  5. In the Create Manual Backup dialog enter a name in the Name field.
  6. In the Create Manual Backup dialog click Create.

Note 1:

Each manual backup creates a full backup on your Oracle Cloud Infrastructure Object Storage bucket and the backup can only be used by the Autonomous Transaction Processing instance when you initiate a point-in-time-recovery.

Note 2:

The retention period for manual backups is the same as automatic backups which is 60 days.

Note 3:

While backing up a database, the database is fully functional; however during the backup lifecycle management operations are not allowed. For example, stopping the database is not allowed during the backup.