-
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
-
find /u01/oraarch/. -mtime +7 -exec rm -f {} \;
Jeff Hunter
-
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 ?
-
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
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|