4.18 recordSpec
Purpose
Use the recordSpec subclause to specify which backups or copies the CHANGE, CROSSCHECK, DELETE, and LIST commands process.
Most recordSpec options allow you to specify a primary key. Use the output of the LIST command to obtain primary keys.
Semantics
| Syntax Element | Description |
|---|---|
|
|
Specifies an archived redo log by either primary key or file name. |
|
|
Specifies a backup set by primary key. |
|
|
Specifies a backup piece by media handle, primary key, or tag name. Use |
|
|
Specifies a proxy copy by media handle, primary key, or tag name. |
|
|
Specifies a control file copy by primary key, file name pattern ( |
|
|
Specifies a data file copy by primary key, file name pattern ( |
|
|
Targets only one copy of the control file or data file copy for the operation, even when there are multiple copies. |
Examples
Example 4-37 Crosschecking Backups
This example crosschecks backup sets specified by primary key:
RMAN> LIST BACKUP SUMMARY; List of Backups =============== Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag ------- -- -- - ----------- --------------- ------- ------- ---------- --- 8504 B A A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T155057 8558 B F A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T155114 9872 B F A DISK 08-MAR-13 1 1 NO TAG20130308T160830 9954 B A A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T161157 9972 B F A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T161224 10021 B A A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T161251 10042 B F A SBT_TAPE 08-MAR-13 1 1 NO TAG20130308T161308 10185 B F A DISK 08-MAR-13 1 1 NO TAG20130308T170532 10210 B F A DISK 08-MAR-13 1 1 NO TAG20130308T170535 RMAN> CROSSCHECK BACKUPSET 9872, 10185, 10210; allocated channel: ORA_SBT_TAPE_1 channel ORA_SBT_TAPE_1: SID=103 device type=SBT_TAPE channel ORA_SBT_TAPE_1: Oracle Secure Backup using channel ORA_DISK_1 crosschecked backup piece: found to be 'AVAILABLE' backup piece handle=/disk2/PROD/autobackup/2013_03_08/o1_mf_s_616694910_2z19d0wg_.bkp RECID=197 STAMP=616694912 crosschecked backup piece: found to be 'AVAILABLE' backup piece handle=/disk2/PROD/backupset/2013_03_08/o1_mf_nnsnf_TAG20130308T170532_2z1dpwz6_.bkp RECID=202 STAMP=616698332 crosschecked backup piece: found to be 'AVAILABLE' backup piece handle=/disk2/PROD/autobackup/2013_03_08/o1_mf_s_616698335_2z1dq0d0_.bkp RECID=203 STAMP=616698336 Crosschecked 3 objects
Note:
Oracle Secure Backup (OSB) 19.1 desupport was announced on May 1, 2026 with premier support end date on September 30, 2027. See My Oracle Support note PNEWS3035 for more information. Please refer to Lifetime Support Policy: Oracle Technology Products for updated support timeframes.
Oracle recommends that database backups to cloud take advantage of Oracle Database Zero Data Loss Cloud Protect, which uses Oracle Zero Data Loss Autonomous Recovery Service in OCI. Cloud Protect offers an efficient incremental forever backup strategy, real-time transaction protection, logically air-gapped immutable backups, and fast, point-in-time recovery.
For customers who require database backups to Amazon S3, Oracle Database Cloud Backup for Amazon S3 may be used. This offering is similar to Oracle Secure Backup Cloud Module in that it is fully integrated with Recovery Manager (RMAN) and enables you to back up your Oracle database to Amazon S3. You can exchange your Oracle Secure Backup license for an Oracle Database Cloud Backup for Amazon S3 license on a 1:1 basis. See Oracle Database Cloud Backup for Amazon S3 for more information.
Example 4-38 Deleting Data File Copies
This example deletes the specified data file copy:
RMAN> DELETE NOPROMPT DATAFILECOPY '/disk1/oradata/prod/users01.dbf';
