Oracle® Database Recovery Manager Reference 10g Release 1 (10.1) Part Number B10770-01 |
|
|
View PDF |
formatSpec::=
Text description of formatSpec
To specify a filename format or an Automatic Storage Management disk group for a backup piece or image copy. If you do not specify a value for the FORMAT
parameter, then RMAN either creates the backup in the flash recovery area if it is enabled, or in a port-specific directory (for example, ?/dbs
on UNIX) if a flash recovery area is not enabled. In either case, RMAN uses the variable %U
to name the backup.
The entire format_string
is processed in a port-specific manner by the target instance to derive the final backup piece name. The substitution variables listed in "Keywords and Parameters" are available in FORMAT
strings to aid in generating unique filenames. The formatting of this information varies by platform.
You can specify up to four FORMAT
strings. RMAN uses the second, third, and fourth values only when BACKUP
COPIES
, SET
BACKUP
COPIES
, or CONFIGURE
...
BACKUP
COPIES
is in effect. When choosing the format for each backup piece, RMAN uses the first format value for copy 1, the second format value for copy 2, and so on. If the number of format values exceeds the number of copies, then the extra formats are not used. If the number of format values is less than the number of copies, then RMAN reuses the format values, starting with the first one.
Specify format_string
in any of these places, listed in order of precedence:
backupSpec
clauseBACKUP
commandALLOCATE CHANNEL
commandCONFIGURE
CHANNEL
commandIf specified in more than one of these places, then RMAN searches for the FORMAT
parameter in the order shown.
Any name that is legal as a sequential filename on the platform is allowed, so long as each backup piece or copy has a unique name. If backing up to disk, then any legal disk filename is allowed, provided it is unique.
This example copies the database to ASM disk group disk1
and uses a tempfile creation template:
BACKUP AS COPY DATABASE FORMAT '+disk1(tempfile)'; # use tempfile creation template
This example creates copies of three datafiles with tag 'LATESTCOPY
' to directory /copies
:
# Create copies of 3 datafiles with tag 'LATESTCOPY' to directory /copies BACKUP AS COPY FROM TAG 'LATESCOPY' COPY OF DATAFILE 4, 6, 14 FORMAT '/copies/Datafile%f_Database%d';
This example creates an image copy of the database to instantiate a physical standby in /stby:
# Create an image copy of the database to instantiate physical standby in /stby BACKUP AS COPY DATABASE FORMAT '/stby/standby_file_%f_of_db_%I';