Syntax Element | Description |
---|---|
completedTimeSpec |
Specifies a range of time for completion of the backup or copy.
See Also: |
DEVICE TYPE deviceSpecifier |
Allocates automatic channels for the specified device type only. This option is valid only if you have configured automatic channels and have not manually allocated channels. For example, if you configure automatic disk and tape channels, and issue CHANGE...DEVICE TYPE DISK , then RMAN allocates only disk channels.
See Also: |
LIKE ' string_pattern ' |
Restricts data file copies by specifying a file name pattern. The pattern can contain Oracle pattern matching characters percent sign (% ) and underscore (_ ). RMAN only operates on those files whose name matches the pattern.
Note: You cannot use the |
BACKED UP integer TIMES TO DEVICE TYPE deviceSpecifier |
Restricts the command to archived logs that have been successfully backed up integer or more times to the specified media. This option applies only to archived redo log files.
When the |
TAG tag_name |
Specifies the data file copies and backup sets by tag. Tag names are not case sensitive and display in all uppercase.
See Also: |
Example 4-28 Listing Backups in a Specific Location
The following command lists all image copies located in directory /disk2
:
RMAN> LIST COPY LIKE '/disk2/%'; List of Datafile Copies ======================= Key File S Completion Time Ckp SCN Ckp Time ------- ---- - --------------- ---------- --------------- 9855 1 A 08-MAR-07 1394701 08-MAR-07 Name: /disk2/data_D-PROD_I-28014364_TS-SYSTEM_FNO-1_8eic410j Tag: TAG20070308T160643 9856 2 A 08-MAR-07 1394735 08-MAR-07 Name: /disk2/data_D-PROD_I-28014364_TS-SYSAUX_FNO-2_8fic412a Tag: TAG20070308T160643
Example 4-29 Deleting Archived Logs That Are Already Backed Up
The following command deletes only those archived logs that have been successfully backed up two or more times to tape. In this example, only the sequence 36 archived log meets these criteria.
RMAN> DELETE ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE sbt; released channel: ORA_SBT_TAPE_1 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=104 device type=DISK RMAN-08138: WARNING: archived log not deleted - must create more backups archived log file name=/disk1/oradata/prod/arch/archiver_1_37_616443024.arc thread=1 sequence=37 List of Archived Log Copies for database with db_unique_name PROD ===================================================================== Key Thrd Seq S Low Time ------- ---- ------- - --------- 9940 1 36 A 08-MAR-07 Name: /disk1/oradata/prod/arch/archiver_1_36_616443024.arc Do you really want to delete the above objects (enter YES or NO)? Y deleted archived log archived log file name=/disk1/oradata/prod/arch/archiver_1_36_616443024.arc RECID=129 STAMP=616695115 Deleted 1 objects