Page 1 of 1

rman backup archive to disk and purge

Posted: Mon Dec 29, 2014 10:53 am
by thockman
Was running low on archive log asm space and didn't have any information on netbackup so I did this for a quick way to free up space.

run {
allocate channel ch001 device type disk;
allocate channel ch002 device type disk;
allocate channel ch003 device type disk;
allocate channel ch004 device type disk;
backup as compressed backupset archivelog all not backed up 1 times delete input
TAG 'temp_dev1_arc' FORMAT '/opt/oracle/temp_arc/dev1_%t_%s_%r.arc';
release channel ch001;
release channel ch002;
release channel ch003;
release channel ch004;
}