I am writing a RMAN script to accomplish a backup to disk. I intend to backup the database and then backup and delete the archive log files. The following are the lines in question from the script:
allocate channel CH1 type disk format='/opt/oracle/backup';
....
backup database
filesperset = 1
tag = 'Test of Disk based Backup - Datafiles'
format = '%d_%U';
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
backup
filesperset = 1
tag = 'Test of Disk based Backup - Archive logs';
format 'Ha_%t_%s.log'
archivelog all delete input;
....
....
release channel CH1;
Can I use the 2 format statements in the same script? The format in the allocate channel string is to set the directory location for the files. When I get to the part to backup the database or the archivelogs, I need to know if that format string will be appended to the other format sting, totally replace it, etc?? I would like to do both in the same script and I can do it without the format string for the archive logs but I would rather the formats work "together".
Is it possible?
Thanks,
Mark