How to truncate alert log file ??
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to truncate alert log file ??

  1. #1
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    Hi,

    My alert log file has grown very big and I want to truncate it and start a new alert log file. How can I do this on a unix system while database is up.
    Appreciate all the help.

    Sanjay

  2. #2
    Join Date
    Nov 2000
    Location
    Birmingham, UK
    Posts
    360
    Just
    mv alert.log alert.log.save (or what ever). The Oracle server will then create another alert.log and start writing to it.

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

    I have a cron job that goes out and renames all my alert.log files to alert.log.<today's date> at midnight. I then re-touch the alert.log file. This allows me to run a find -mtime and delete a specified number of days of alert.log files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width