I perform oracle database backup using the following rman
command:
RUN {
ALLOCATE CHANNEL disk1 DEVICE TYPE DISK FORMAT 'C:\Windows\TEMP\%u';
ALLOCATE CHANNEL disk2 DEVICE TYPE DISK FORMAT 'C:\Windows\TEMP\%u';
BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG TAG MyTAG;
}
But unfortunately MyTag
is applied only for archive logs BS.
The query list backup;
return 6 rows:
BS of archive logs;
BS of data files;
BS of data files;
BS of data spfile;
BS of data controlfile;
BS of archive logs;
The query list backup summary tag 'MyTag';
return only 2 rows
BS of archive logs;
BS of archive logs;
How to apply TagName
for all backup files ?
Best Answer
Specify the tag for the database backup as well:
Ok, I tested this, this does not add the specified tag to the controlfile backup. The below creates an additional controlfile backup and adds the specified tag to that as well: