Subscribe to aSkDba.org Forum Posts

Enter your email address:

Delivered by FeedBurner


Askoracledba's Weblog Tech@aSkDbA.org


AskDBA.org Forum » DBA - Wiki

Unix Tip: How To Remove Log Files Older Than 10 Days

(1 post)
Average Rating For This Topic:

Rate This Topic Yourself:
  • Started 11 months ago by Saurabh Sood

Tags:


  1. Saurabh Sood

    admin
    Joined: Jun '08
    Posts: 30

    offline

    Use the below given command to remove logfiles older than 10 days:

    cd to the directory where the files are located:
    $ cd /u01/app/oracle/admin/orcl/bdump
    $ find . -name "*.log" -mtime +10 -exec rm -f {} \;
    OR
    $ find /u01/app/oracle/admin/orcl/bdump/ -name "*.log" -mtime +10 -exec rm -f {} \;

    Saurabh Sood
    Senior Consultant:DBA Services
    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.

151 posts in 54 topics over 26 months by 40 of 79 members. Latest: bertjacobs, karlwasser, orindaglance