delete backup

Deletes sharded database (SDB) backups identified with specific tags from the recovery repository.

Syntax

delete backup [-tag tag_list] [-obsolete] [-catpwd password]
              [-shard shard_list] [-async]
              

Options

Table 2-42 GDSCTL delete backup Options

Option Description
tag tag_list

A comma separated list of tags. The backups identified by these tags will be deleted.

-obsolete If specified, all obsoleted backups are deleted.
-catpwd password Password for user GSMCATUSER. Prompted if not specified. It needs to be specified once for the entire GDSCTL session.
-shard shard_list shard_list specifies a comma separated list of shard identifiers. They can be shard space, shard group or shard names. The default is no shards.
-async When specified, all tasks to configure the backup for the shards will run in background. By default, the task will run in foreground. The task for the SDB catalog database will always run in foreground regardless of this flag setting.

Examples

The following example deletes backups with tag odb_200414205057124_0400 from shard v1908d_cdb2_pdb1:

GDSCTL> delete backup -shard v1908d_cdb2_pdb1 -tag ODB_200414205057124_0400 -catpwd gsm

This will delete identified backups, would you like to continue [No]?y
 
Deleting backups for database "v1908d_cdb2_pdb1" ...

allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=231 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=467 device type=DISK
deleted backup piece
backup piece handle=/tmp/rman/backups/2/2hutl9e9 RECID=13 STAMP=1037739466
Deleted 1 objects
 
deleted backup piece
backup piece handle=/tmp/rman/backups/1/2iutl9ed RECID=14 STAMP=1037739469
Deleted 1 objects

Recovery Manager complete.