-- Format = '/u01/backup/arch _ % u _ % t'
This is the format string of the Backup set name, RMAN
Some syntax elements associated with the format string are provided. These elements are called placeholders.
RMAN will replace them with the corresponding defined values. For example, the % u syntax element in the example tells RMAN to replace the file name with a unique identifier generated by the system.
The following replace variables can be used when the format parameter is used:
% A: The activationid of the Oracle database is resetlog_id.
% C: number of copies of the backup fragment (starting from 1, up to 256 ).
% D: Oracle Database Name.
% D: The day in the current time, in the format of DD.
% E: the archive sequence number.
% F: absolute file number.
% F: Unique name based on "dbid + time", in the form of C-IIIIIIIIII-YYYYMMDD-QQ, where iiiiiiii is the dbid of the database, yyyymmdd is the date, QQ is a 1 ~ 256.
% H: the archiving log thread number.
% I: dbid of the Oracle database.
% M: the month in the current time, in the format of mm.
% N: tablespace name.
% N: database name, which is filled with X characters on the right side to keep it 8 characters long. For example, if the database name is jssbook, the generated name is jssbookx.
% P: ID of the backup part in the backup set, starting from 1.
% S: Backup set number.
% T: The timestamp of the Backup set.
% T: the format of yyyymmdd ).
% U: an 8-character name consisting of the Backup set number and the creation time after compression. You can use % u to generate a unique name for each backup set.
% U: The default value is % u _ % P _ % C, which can be used to generate a unique name for each backup segment (that is, the disk file, this is the most common naming method. The rules generated for different backup operations are also different, as shown below:
% U = % u _ % P _ % C;
% U = data-D-% d_id-% I _ts-% n_fno-% F _ % u;
% U = arch-D _ % d-ID-% I _s-% e_t-% h_a-% A _ % u;
% U = CF-D _ % d-ID-% I _ % u when generating the control file image copy.
% Y: year in the current time, in the format of YYYY.
Note:
If the format option is not specified in the BACKUP command, RMAN uses % u by default to name the backup fragment.