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: Jesse, Rich <Rich.Jesse_at_quadtechworld.com>
Date: Fri, 3 Sep 2004 16:17:32 -0500
Message-ID: <FBE1FCA40ECAD41180400050DA2BC54004E93D12@qtiexch2.qgraph.com>


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

Original text of this message

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