DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Archive log deletion.

  1. #1
    Join Date
    Mar 2001
    Posts
    131

    Unhappy

    Hi Friends,

    I am using Oracle 8 DB on Tru64Unix.........
    for my production database i want to implement automatic deletion of archived log files from archive destination......

    The criteria of deletion should be ONE WEEK....means......on 8th (day)of the month it should delete files of (day) 1st of the month, on 9th....it should delete files of 2nd...........and so on.

    Can anyone help me.....by giving script or any document, link
    for the same.

    Also want to know if any major points to be taken care of before implementation.

    Thanks,

    UpeshP

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    find /u01/oraarch/. -mtime +7 -exec rm -f {} \;
    Jeff Hunter

  3. #3
    Join Date
    Mar 2001
    Posts
    131
    Hi marist89

    Thanks for immediate reply.

    But can u tell me bit in detail where i have to write this.....?
    in crontab.....or any other way to get executed automatically ?


  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Yes, you can do it from the crontab.

    Personally, I would do it as part of my backup. When the backup completed, I would backup the archived redo log files and then delete them.
    Jeff Hunter

  5. #5
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    It is always advisable to delete archive logs only after backing them. And it is usually contained in the hot backup script.
    You should ALWAYS backup archive logs before deleting them.

    Sanjay

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