ADSM-L

Automating deletion of DB2 archive logs and history file

2001-03-28 14:04:34
Subject: Automating deletion of DB2 archive logs and history file
From: James Thompson <mezron AT HOTMAIL DOT COM>
Date: Wed, 28 Mar 2001 12:03:48 -0700
I've searched through www.adsm.org but did not find an example of how
to preform automation of DB2 archive logs and the DB2 history file when
backing up to TSM.

The db2adutl delete command provides the ability to keep N number of
versions or delete backups older than a timestamp.  Once that command is
done you must then run a db2adutl query,  find the oldest backup and see
what the oldest log file is that it needs.  Then using that value you can
delete all the logs up to that oldest log that the oldes backup needs.
whew.

After deleting a backup using db2adutl query, the information in the
db2adutl history file is now out of sync.  It still references the backup
that no longer exists on TSM storage.  You can prune the history file by
date, but this also deletes all entries in the history file, not just the
TSM backups.

So given all these factors, has anyone come up with a slick way to automate
all these processes?

Are you using some type of scripting or leaving it up to the DB2 database
administrators to manage?

James Thompson
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
<Prev in Thread] Current Thread [Next in Thread>
  • Automating deletion of DB2 archive logs and history file, James Thompson <=