Linux – RMAN Disk Backups

backuplinuxoracle-11g-r2rman

I have to run RMAN full backups of my 11g Oracle DB to disk. As part of that process the backups will all be changed to have a backup tag of 'UNAVAILABLE'. This is because the filesystem location of the pieces gets backed up using NetBackup allowing me to delete these from disk using an unix cmd at regular intervals.

My question is, how should I handle archive logs? They will be written to the same location, but can I clean them up from disk using:

crosscheck archivelog all; 
delete noprompt expired archivelog all;

Will that allow me to apply them if I restore a backup from tape (make the pieces available again) and then restore the specifically required archive logs that I need for point in time recovery? Many thanks.

Best Answer

You can always re-register backup sets with RMAN if you need to, but any expired archivelogs should no longer be needed for point in time recovery regardless if they have been included in the RMAN backupsets. https://www.thegeekdiary.com/how-to-catalog-backups-archivelogs-datafile-copies-controlfile-copies-in-oracle-database/

I would advise that you handle deletion of the regular backup sets through RMAN as well, rather than a separate script, just to keep your controlfile and/or RMAN catalog entries under control and in sync with reality.