validate backup
The validate backup command provides sharded database (SDB) backup validation.
Syntax
validate backup [-restorepoint restore_point_name] [-controlfile] [-header]
[-catpwd password] [-shard shard_list] [-async]Options
Table 2-120 GDSCTL validate backup Options
| Option | Description |
|---|---|
-restorepoint restore_point_name |
A restore point to verify the backups against. |
-controlfile |
If specified, only backups usable to restore database control files to a specific restore point are validated. |
-header |
If specified, it will only validate the backup file headers to determine whether the files on the media correspond to the metadata in the RMAN repository. |
-catpwd
password |
Password for user GSMCATUSER. Prompted if not specified. This password only needs to be specified once for this command in an 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 all
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 sharded database catalog (SC) database must be open, but the shard databases can
be either mounted or open. If the backup validation is for database control files,
the shards can be started nomount.The following example svalidates the backups of
the control files from the SDB catalog database recoverable to restore point
backup_before_db_maintenance.
GDSCTL> validate backup -shard catalog -controlfile -restorepoint BACKUP_BEFORE_DB_MAINTENANCE
Validating backups for database "v1908" ...
executing command: SET until clause
Starting restore at 14-APR-20
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=201 device type=DISK
channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /ade/b/3998875997/oracle/dbs/V1908/autobackup/2020_04_14/o1_mf_s_1037669374_h9blkyc8_.bkp
channel ORA_DISK_1: piece handle=/ade/b/3998875997/oracle/dbs/V1908/autobackup/2020_04_14/o1_mf_s_1037669374_h9blkyc8_.bkp tag=TAG20200414T012934
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
Finished restore at 14-APR-20
Recovery Manager complete.
The next example validates the headers of the backups from shard
v1908b_cdb2_pdb1 recoverable to restore point
backup_before_db_maintenance.
GGDSCTL> validate backup -shard v1908b_cdb2_pdb1 -restorepoint BACKUP_BEFORE_DB_MAINTENANCE -header
Validating backups for database "v1908b_cdb2_pdb1" ...
executing command: SET until clause
Starting restore at 14-APR-20
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=468 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=236 device type=DISK
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2998 Incr 0 265.53M DISK 00:00:06 14-APR-20
BP Key: 3009 Status: AVAILABLE Compressed: NO Tag: BACKUP_BEFORE_DB_MAINTENANCE
Piece Name: /tmp/rman/backups/2/0sutl6oa
List of Datafiles in backup set 2998
Container ID: 3, PDB Name: CDB2_PDB1
File LV Type Ckp SCN Ckp Time Abs Fuz SCN Sparse Name
---- -- ---- ---------- --------- ----------- ------ ----
11 0 Incr 2678401 14-APR-20 NO /ade/b/3998875997/oracle/dbs/cdb2_pdb1_db.f
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2999 Incr 0 191.61M DISK 00:00:04 14-APR-20
BP Key: 3010 Status: AVAILABLE Compressed: NO Tag: BACKUP_BEFORE_DB_MAINTENANCE
Piece Name: /tmp/rman/backups/1/0tutl6oh
List of Datafiles in backup set 2999
Container ID: 3, PDB Name: CDB2_PDB1
File LV Type Ckp SCN Ckp Time Abs Fuz SCN Sparse Name
---- -- ---- ---------- --------- ----------- ------ ----
12 0 Incr 2678425 14-APR-20 NO /ade/b/3998875997/oracle/dbs/cdb2_pdb1_ax.f
13 0 Incr 2678425 14-APR-20 NO /ade/b/3998875997/oracle/dbs/cdb2_pdb1_xdb.f
validation succeeded for backup piece
Finished restore at 14-APR-20
Recovery Manager complete.