473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Removing unneeded logs

Hello,

Is there a good way to delete all archive log files which aren't being
referenced by any backups any longer? I use TSM for the archive log files.

- I'm about to write a script for the task, probably by parsing
db2adutl's output. But I'm thinking that this task must be a general
theme at many places, and that some scripts/software for this already
exists?

--
Regards,
Troels Arvin <tr****@arvin.dk>
http://troels.arvin.dk/
Dec 17 '07 #1
2 1669
Troels,

if you can wait for DB2 9.5 you can use the new parameter called
AUTO_DEL_OBJ.
This parameter and NUM_DB_BACKUPS and REC_HIS_RETENTN will
do all the work for you.

Best reagrds
Joachim Müller
Dec 18 '07 #2
Hello,

On Tue, 18 Dec 2007 10:43:28 +0000, jmueller wrote:
if you can wait for DB2 9.5 you can use the new parameter called
AUTO_DEL_OBJ.
This parameter and NUM_DB_BACKUPS and REC_HIS_RETENTN will do all the
work for you.
Thanks, but I can't jump to v. 9.5 in the foreseeable future.

What do other people do?

By the way, this task is part of a larger task to implement the following
backup strategy (it turns out that is really a "purge-strategy", as the
clean-up part is the tricky one):

We want to be able to...

- return to a given point in time during the last 7 days

- beyond 7 days, we want to be able to restore from a daily (
mostly incremental) backup

- beyond 30 days, we want to be able to restore from a weekly,
non-incremental backup

- beyond 100 days, we don't want to keep backup data
(except occasional dumps to tapes which are transported to
another location)

--
Regards,
Troels Arvin <tr****@arvin.dk>
http://troels.arvin.dk/
Dec 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John McGinty | last post by:
Hello Chaps, Just a little sounding on removing out of hours from some datetime date that I have. Basically we have a helpdesk that logs calls when they are entered and when they are resolved....
2
by: Peter Sands | last post by:
Hi, I am testing out some restores to a stand-by server, by roll-forwading the logs. I have this setup. There is no user-exit, but logretain is on, for archive logging. I have 2 DB's on...
6
by: paul | last post by:
Hi, i made an attempt to restore a online backup made with include logs option. But when i rollforward the db, i can't pout it online because it always ned log file. I tried the option to...
2
by: Kenny M. | last post by:
hi I have a WebForm1 with a button to navigate using Response.Redirect ("myPage2",true) and I have notice that the Webform1 makes a complete PostBack before leave, and that is making my app more...
4
by: Sheila Jones | last post by:
Hi, Is there a way to detemine which references in a VB.Net project are no longer required? The compiler doesn't seem to do this - it just copies all the references to the assembly's manifest....
4
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 I have a DB2 online DB backup that was done w/ the INCLUDE LOGS option. I am interested in restoring that backup, and rolling forward ONLY the logs contained in the...
13
by: Mumia W. | last post by:
Hello all. I have a C++ program that can count the YOYOs that are in a grid of Y's and O's. For example, this Y O Y O O Y O Y O Y O O Y O Y Y O Y O Y O O Y O O Y Y O Y O
4
by: madzambonis | last post by:
Here is the situation.... We have Primary Server A linked to Standby Server B via HADR. Primary Server A has recently installed LOGARCHMETH1 to archive logs and a 2nd homegrown script that...
1
by: Gal Aviel | last post by:
Hello All, I want to add a logger to my application, then addHandler to it to log to a special destination. Unfortunately when I use logging.getLogger("my_logger") to create the new logger,...
0
by: shorti | last post by:
We are running DB2 UDB 8.1 fp 14 on AIX using archival logging and online backups. I was running some disaster tests and found my database restore was not restoring to the latest active log. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.