You can use the find command to remove archived redo log files older
than x days. The command runs in my hotbackup shell script every other
day and removes files older than 1 day.
find /disk04/oraarch/$ORACLE_SID/log*.arc -mtime +1 -exec rm {} \;
-----Original Message-----
Sent: Wednesday, October 15, 2003 9:44 AM
To: Multiple recipients of list ORACLE-L
Hello Gurus,
Have some disk space issues, so looking for ways to cleanup.
Please confirm that my thinking is correct.
I run the command and example output below:-
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination C:\Oracle\oracle.....
Oldest online log sequence 2334
Next log sequence to archive 2338
Current log sequence 2338
I can write a script (Perl) to remove all archive files < 2334?
Much appreciate any input or confirmation.
Regards
Denham Eva
Oracle DBA
Linux like TeePee... No Windows, No Gates and Apache inside!
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Denham Eva
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: Rothouse, Michael
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).