Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: trace file cleanup
I'd suggest to include a:
-name "*.trc"
in the find command, too. No need to see the errors trying to delete = the directory, and it's targeted to exactly what you're trying to = delete, instead of it deleting all files in the dir. Those kind of = things tend to burn a person after it's been faithfully running for = years.
My $.02,
Rich
-----Original Message-----
Sent: Friday, September 03, 2004 3:45 PM
To: thomas.mercadante_at_labor.state.ny.us
Cc: 'oracle-l_at_freelists.org'; oracle-l-bounce_at_freelists.org
Subject: RE: trace file cleanup
Be sure to do some sanity checks on the $UDUMP var before running the=20 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 - 16:12:50 CDT
![]() |
![]() |