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: UNIX question

Re: UNIX question

From: Jared Still <jkstill_at_gmail.com>
Date: Wed, 6 Apr 2005 07:03:29 -0700
Message-ID: <bf463805040607031a3850d9@mail.gmail.com>


Assuming your log files in /u01/oradata/orcl/archive and are named arch*.log

find /u01/oradata/orcl/archive -mmin -120 -name "arch*.log" | xargs rm -f

If your version of find does not support -mmin, then you can locate and compile one that does.

If on linux, it already does.

On Apr 6, 2005 6:57 AM, The Human Fly <sjaffarhussain_at_gmail.com> wrote:
> Hello list,
>
> Can any one give me an example, how can I delete log files <2hrs to my
> system time.
>
> --
> Best Regards,
> Jaffar, OCP DBA
> Banque Saudi Fransi
> Saudi Arabia
> ----------------------------------------------------------------------------------------
> "It is your atittude, not your aptitude that determins your altitude."
> --
> http://www.freelists.org/webpage/oracle-l
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Apr 06 2005 - 10:17:25 CDT

Original text of this message

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