Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle-l »

Re: How keep only one copy .dmp?

Jared Still

2007-07-17

Replies:

On 7/17/07, GovindanK <gkatteri@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
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.