Configuring Automatic Archive of Backups to Oracle Cloud

Infrequently-used backups can be moved from standard storage and archived after a specified number of days. This frees up space on the standard storage for new backups.

To archive backups, you must store them in a standard container that is associated with a Lifecycle Tiering Policy (LTP). The LTP is a container policy that defines the type of tiering that is associated with the standard container. After the number of days specified by the LTP elapses, the backups stored in the standard container are automatically archived. You can explicitly exclude specific objects from being archived automatically.

Note:

Automatic archive of backups is supported only when backing up to Oracle Cloud Infrastructure Classic.

To configure automatic archive of backups to Oracle Cloud:

  1. Use one of the following techniques, when installing the Oracle Database Cloud Backup Module for OCI Classic, to specify the container to which backups must be archived:

    • Create a standard container that is associated with an LTP

      Specify the name that must be used for the new standard container by using the -container parameter. Set the -containerClass parameter to Tiering. To specify a user-defined LTP, use the -containerLTP parameter. If you omit this parameter, the default LTP is associated with the new container.

      See Downloading and Installing the Oracle Database Cloud Backup Module for OCI Classic

      For example:

      -container PAYROLL_ARC
      -containerClass Tiering

      The standard container with the specified name is created and a default LTP is assigned to it. All backups, except XML objects, are archived when the number of days specified by the LTP elapses. This automatically adds the OPC_CONTAINER and OPC_CONTAINER_CLASS parameters to the opcSID.ora file so that these settings are used for backups.

    • Specify only the container class

      Set -containerClass to Tiering.

      The OPC_CONTAINER_CLASS parameter is set to Tiering in the opcSID.ora configuration file. The Oracle Database Cloud Backup Module for OCI Classic installer attempts to find an existing standard container that is associated with an LTP. If no such container is found, a new standard container with the default LTP is created. The naming convention used for the new container is oracle-data-account_name-index.

    • Use an existing standard container that is associated with an LTP

      Include the -container parameter with the name of an existing standard container that is associated with an LTP.

      For example:

      -container PAYROLL_ARC

      This automatically adds the OPC_CONTAINER parameter to the opcSID.ora configuration file so that the specified container is used to store backups.

  2. Configure an RMAN channel that corresponds to the Oracle Database Cloud Backup Module for OCI Classic.

    The following command, on Linux, configures an RMAN channel that uses Oracle Cloud Infrastructure Classic as a destination:

    RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt
          PARMS='SBT_LIBRARY=/orclhome/lib/libopc.so,
          ENV=(OPC_PFILE=/orclhome/dbs/opct1.ora)';