CREATE_ARCHIVAL_BACKUP
This procedure copies all backup pieces from Recovery Appliance as restricted by user inputs to TAPE with the ability to recover the protected database to a user specified point described by restore_until_scn
, restore_until_time
, or restore_point
.
Backups created on TAPE using this API are KEEP
backups and preserved until user specified keep_until_time
.
Archival backups are validated using restore_point
and restore_tag
. If restore_point
is not specified, it is generated internally. If restore_tag
is not specified, tag values for archival backups will be the same as restore_point
name.
Format for internally generated restore_point
name is: <KEEP_BACKUP_><yyyyMMddHH24miSS>
Note:
The database must havearchivelog
mode turned on prior to trying to create an archival backup. This command requires the archive logs to properly compute the necessary files to create a complete consistent backup for archival purposes.
This API has the following restrictions for input options:
-
If a
restore_point
is specified and it doesn’t exist, then a newrestore_point
is created with the specifiedrestore_point
name. In this case, an additional input can be specified: eitherrestore_until_scn
orrestore_until_time
but not both. -
If a
restore_point
is specified and thatrestore_point
exists, then the user cannot specify any additional input parameters. -
If the specified
restore_until_time
is not within thelow_time
and thehigh_time
for the database, then this API returns an error -
The
restore_until_time
is the time up to which backups are needed. You should specify the timezone of the database, because that's what is used to determine which backups are to be copied to tape. Similarly, thekeep_until_time
should also specify the timezone of the database. -
If none of
restore_until_scn
,restore_until_time
, orrestore_point
is specified, then archival backup is created by selecting the newest restorable backup within the past 14 days. -
If
restore_tag
is already used to create archival backup for the specifieddb_unique_name
database, this API returns an error.
Syntax
PROCEDURE CREATE_ARCHIVAL_BACKUP( db_unique_name IN VARCHAR2, from_tag IN VARCHAR2 DEFAULT NULL, compression_algorithm IN VARCHAR2 DEFAULT NULL, encryption_algorithm IN VARCHAR2 DEFAULT NULL, restore_point IN VARCHAR2 DEFAULT NULL, restore_until_scn IN VARCHAR2 DEFAULT NULL, restore_until_time IN TIMESTAMP WITH TIME ZONE DEFAULT NULL, attribute_set_name IN VARCHAR2, format IN VARCHAR2 DEFAULT NULL, autobackup_prefix IN VARCHAR2 DEFAULT NULL, restore_tag IN VARCHAR2 DEFAULT NULL, keep_until_time IN TIMESTAMP WITH TIME ZONE DEFAULT NULL, comments IN VARCHAR2 DEFAULT NULL max_redo_to_apply IN NUMBER DEFAULT NULL);
Parameters
Table 22-9 CREATE_ARCHIVAL_BACKUP Parameters
Parameter | Description |
---|---|
|
The |
|
If specified, recovery appliance only considers backups using this tag for copying to tape. If invalid |
|
If the backup is already compressed, this parameter is ignored, otherwise the output backup files will be compressed using specified algorithm. If invalid algorithm is specified, then API returns with an error.
|
|
If the backup is already encrypted, this parameter is ignored. Otherwise the output backup files will be encrypted using specified algorithm. Valid values are 'AES128', 'AES192', 'AES256', 'OFF', 'CLIENT', or the constant equivalents ENC_OFF, ENC_AES128, ENC_AES192, ENC_AES256, ENC_CLIENT. Note: A value ofCLIENT or ENC_CLIENT requires the client to generate encrypted backups. Failure to do so will result in cloud backup job failures on the Recovery Appliance.
|
|
User generated restore point name for which archival backups are created. If invalid restore point name is specified, this API returns an error.. |
|
User specified recovery SCN for which archival backups are created. |
|
User specified recovery time for which archival backups are created. Specify the timezone of the database. |
|
User specified attribute set name. If an invalid |
|
The naming format of the output backup pieces. This parameter follows the same rules as the RMAN FORMAT parameter. If null, the default is defined by the |
|
The original autobackup names will be given this prefix. |
|
User specified tag for archival backups. If null, then tag values for archival backups will be the same as |
|
User specified retention time for the archival backup. If not specified, then the archival backup will be |
|
Optional user supplied comment describing reason for executing this command. |
|
User supplied parameter indicating the maximum number of days for which redo logs could be applied in order to create the archival backups. If a If If no value has been provided for the parameter then |