Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: trace file cleanup

RE: trace file cleanup

From: <Jared.Still_at_radisys.com>
Date: Fri, 3 Sep 2004 13:45:26 -0700
Message-ID: <OF976F593C.0CD593B3-ON88256F04.0071DE45-88256F04.00720873@radisys.com>


oracle-l-bounce_at_freelists.org wrote on 09/03/2004 07:43:36 AM:
> Bryan,
>
> I keep them for 15 days and then delete them. I use the following to
clean
> them up:
>
> find $UDUMP_DIR -mtime +15 -print -exec rm {} \;
>
> The $UDUMP_DIR is an environmental pointing to the udump directory. I
do
> the same thing in the Bdump directory (renaming the alert log with a
date
> included in the file name). I keep files up to 30 days in this
directory.
>

Be sure to do some sanity checks on the $UDUMP var before running the find.

And for goodness sakes, stop using -exec and use xargs:

    find $UDUMP_DIR -mtime +15 -print | xargs rm

*Much* less CPU/memory intensive.

Jared

--
To unsubscribe - mailto:oracle-l-request_at_freelists.org&subject=unsubscribe 
To search the archives - http://www.freelists.org/archives/oracle-l/
Received on Fri Sep 03 2004 - 15:41:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US