Quote:
|
Originally Posted by mdx34
I need to clean up the log files created by DB2 and OS on Linux and AIX servers. Can someone tell me which log files and their location should be cleaned up after reviewing/archiving ?. I know Smith log file is one of them on AIX..........It would be the best if I can have a script to clean them periodically...........
Thanks for any help.
|
list history backup all for DBNAME
This will tell you which logs are required for which backup images.
ie:
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------ --------------
B D 20051214010002001 N D S0037889.LOG S0037889.LOG
For my backup above, I need S0037889.LOG and later to get to the current point in time. If I have 100% confidence in that particular backup

then I can remove any logs before S0037889.LOG. Usually we keep a few weeks worth just to be sure, you never know when someone needs some data from an old point in time...