Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: delete archivelog... backed up 1 times to tape
The archivelogs have to have been backed up by rman for rman to delete them. Thisscript is the one we use.
execute script alloc_name1_disk;
backup
format '/dbback/al_%sdbname_%p'
(archivelog all
delete input);
execute script rel_pa1_disk;
}
HTH,
Ruth
I am trying to use the DELETE ARCHIVELOG command that is available in version 9.2.0.1. The complete syntax I wish to use is this command:
RMAN> delete archivelog until time 'trunc(sysdate)-2' backed up 1 times to tape;
I have tried this as part of a backup script and as a standalone command after allocating a maintenance channel, but it doesn't work. Furthermore, this command DOES NOT return records:
RMAN> list archivelog all backed up 1 times to tape;
But this command DOES return records:
RMAN> list archivelog all backed up 0 times to tape;
I know I have backups of archivelogs on tape because they are reported when I issue this command:
RMAN> list backup of archivelog from time 'sysdate-3' device type sbt;
Does anyone know what is going on here?
Thanks,
Ed
/************************
*************************/
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Ruth Gramolini INET: rgramolini_at_tax.state.vt.us Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Feb 25 2003 - 10:59:22 CST