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: How keep only one copy .dmp?

Re: How keep only one copy .dmp?

From: Jared Still <jkstill_at_gmail.com>
Date: Tue, 17 Jul 2007 11:40:51 -0700
Message-ID: <bf46380707171140q449e2817iaf99c8aa3630aa60@mail.gmail.com>


On 7/17/07, GovindanK <gkatteri_at_gmail.com> wrote:
>
> I have seen this type of problem with unix. You will observe that
> running find $DMPDIR -name "*" -mtime 0 -exec rm {} \; (without the +)
> will give different results and is what you actually want ; In my env,
> i have put both;
>
>

I haven't got to say this lately, so here goes:

Don't used -exec, use instead xargs

eg. find . -name "*.log" -mtime -30 | xargs rm

Several orders of magnitude faster than -exec.

-exec forks a shell for every line output from find.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jul 17 2007 - 13:40:51 CDT

Original text of this message

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