Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: trace file cleanup
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
![]() |
![]() |