Manual Backups on Autonomous Data Warehouse

In addition to automatic backups Autonomous Data Warehouse also allows you take manual backups to your Oracle Cloud Infrastructure Object Storage.

Configure Manual Backups on Autonomous Data Warehouse

Follow these steps to define your Oracle Cloud Infrastructure Object Storage credentials and tenancy URL and to create the bucket for manual backups.

To perform manual backups you need to define your Oracle Cloud Infrastructure Object Storage credentials and your Oracle Cloud Infrastructure Object Storage tenancy URL; you also need to create a bucket to hold the backups. The manual backup configuration tasks are a one-time operation. After you define your credentials and your tenancy URL you can initiate manual backups without doing the same operations again unless the URL, the credentials, or bucket change.

For this task you need a client tool that is connected to Autonomous Data Warehouse to perform the DDL commands. For example, use SQL Developer or SQL*Plus. See Connect to Autonomous Data Warehouse Using Oracle Database Tools.

  1. Set the database default_bucket property to your Oracle Cloud Infrastructure Object Storage tenancy URL. The format of the tenancy URL is https://swiftobjectstorage.region.oraclecloud.com/v1/object_storage_namespace. Note that you need to do this using the ADMIN user.

    For example:

    ALTER DATABASE PROPERTY SET default_bucket='https://swiftobjectstorage.us-phoenix-1.oraclecloud.com/v1/namespace-string';

    Where namespace-string is the Oracle Cloud Infrastructure object storage namespace. See Understanding Object Storage Namespaces for more information.

  2. On your Oracle Cloud Infrastructure Object Storage, create a bucket to hold the backups. The format of the bucket name is backup_databasename. Where databasename is lowercase.
    1. Open the Oracle Cloud Infrastructure service console from MyServices through the Services menu or the Services Dashboard tile.
    2. Select Object Storage from the menu.
    3. Select Object Storage from the submenu.
    4. Create a bucket in a compartment by clicking Create Bucket.

    Manual backups are only supported with buckets created in the standard storage tier, make sure you pick Standard as the storage tier when creating your bucket. For information on the Standard Object Storage Tier, see Overview of Object Storage.

    For example, if you provision an Autonomous Data Warehouse instance named ADWC1, the bucket name should be backup_adwc1. Following the same example, the URL of this bucket would be (the bucket name is lowercase):

    https://swiftobjectstorage.us-phoenix-1.oraclecloud.com/v1/namespace-string/backup_adwc1

    Where namespace-string is the Oracle Cloud Infrastructure object storage namespace. See Understanding Object Storage Namespaces for more information.

  3. Create a credential for your Oracle Cloud Infrastructure Object Storage account using DBMS_CLOUD.CREATE_CREDENTIAL. See CREATE_CREDENTIAL Procedure.

    Note that you need to do this using the ADMIN user. For example:

    BEGIN
      DBMS_CLOUD.CREATE_CREDENTIAL(
        credential_name => 'DEF_CRED_NAME',
        username => 'adwc_user@example.com', 
        password => 'password'
    );
    END;
    /
  4. Set the database property DEFAULT_CREDENTIAL to the credential you created in the previous step. For example:
    ALTER DATABASE PROPERTY SET DEFAULT_CREDENTIAL = 'ADMIN.DEF_CRED_NAME';

To list the current value for the default bucket, use the following command:

SELECT PROPERTY_VALUE 
FROM DATABASE_PROPERTIES 
WHERE PROPERTY_NAME='DEFAULT_BUCKET';

Perform Manual Backups on Autonomous Data Warehouse

In addition to automatic backups Autonomous Data Warehouse also allows you take manual backups to your Oracle Cloud Infrastructure Object Storage.

  • Sign in to your Oracle Cloud Account at cloud.oracle.com.

  • From the Oracle Cloud Infrastructure left navigation list click Autonomous Data Warehouse.

  • On the Autonomous Databases page select an Autonomous Data Warehouse instance from the links under the Name column.

  1. On the details page, under Resources, click Backups.
  2. On the details page, under Backups, click Create Manual Backup.
  3. In the Create Manual Backup dialog enter a name in the Name field.
  4. 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 Data Warehouse 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.