Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: UNIX question
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-lReceived on Wed Apr 06 2005 - 10:17:25 CDT
![]() |
![]() |