Question:
I work on a unix platform and unfortunately my unix scripting skills are very limited and I haven't had much luck finding a script that would somewhat come close to what I need. Is your db up 24/7? Or do you bring it down on a regular basis? Do you have that much activity that it writes that many logs? Do you really need to keep them? Just asking the question so you don't beat yourself up holding onto stuff you don't need. My db is on an NT server. And I can bring it down nightly for cold backups. That way I only need the archive logs for a couple of days to be retained. That is why I have an MS Access DB that writes the export parameter file and then goes through and deletes the archive logs that are older than 5 days. I know you are talking UNIX, but you might be able to adapt this idea if you have a WinXX client that can access the paths. I'm putting in the delete archive chunk from my Access database. This just arbatrarily deletes the files that are five days old. You can add some functionality to this so that the WinXX client fires the access DB once an hour, the Access then uses the dir and filelen functions to see the amount of space taken by the log files and then filecopy to move the files to the new path and then deletes the original. I know, I know....you UNIX guys hate to be beholden to MS, but it might work for you instead of trying to beat together a script. --- Dim FilesName(7000) As String
I = 1
Do While FilesName(I) <> ""
FileCount = I
Do Until I >= FileCount
Have a Oracle Question
Oracle Books
Oracle Home
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|