473,403 Members | 2,354 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,403 software developers and data experts.

How to expire DB2 backups in TSM ????

Hi Guys ,

I am taking DB2 Online backups through TSM API daily. When i check the
database configuration parameters , it shows me " Number of database
backup verions to maintain"= 12.

This is also shown when i check " db2 list history db " it showed me 12
versions of backups which is ok, but problem is that when i run
"db2adutl query" it showed me 69 or 70 entries like that:::

1 Time: 20060730142501 Oldest log: S0014176.LOG DB Partition Number: 0
Sessions: 1
2 Time: 20060729142501 Oldest log: S0014141.LOG DB Partition Number: 0
Sessions: 1
3 Time: 20060728142502 Oldest log: S0014100.LOG DB Partition Number: 0
Sessions: 1
4 Time: 20060727142502 Oldest log: S0014074.LOG DB Partition Number: 0
Sessions: 1
5 Time: 20060726142502 Oldest log: S0014048.LOG DB Partition Number: 0
Sessions: 1
So my question is that how can i know whether DB2 is expiring backup
versions or not, should i try " Expire inventory " explicitly for
expiring DB2 backups or if there are any scripts to expire DB2
backups????

And most annoying , why is the difference between db2 list history db
and db2adutl command, On which command should i rely ????

Env is Db2 8.1.3 with TSM 5.3

Regards

Khurram

Aug 1 '06 #1
1 14010
The db2 backups are taking using TSM API client. In order to
remove/delete these files from TSM, the deletes must be initiated from
DB2 API.

For example,
If NUM_DB_BACKUP = 3
Step-1: All backup images <= 3 days will be in active state.
Step-2: All backup images 3 days will be marked inactive state and
the retention period kicks in now.
Step-3: All backups will be retained for "x" days after marking it
inactive.
Step-4: All backups past "x" days will be marked as expired backups.
Step-5: All backups marked expired will be deleted by TSM expire
inventory.
After Step-2, DBA script may run db2adutl to delete the backups and
it's related log files (Or) Run a script to automatically delete
backups and logs using db2adutl command.

After Step-4, TSM should run expire inventory to remove expired
objects.
Check the Management Class settings and Backup/Archive Copy Group
settings for retention and expiration periods.

Please read this Redbook titled "Backing up DB2 with IBM TSM":
http://www.redbooks.ibm.com/redbooks/pdfs/sg246247.pdf

The pdf comes with scripts to automate the process of deleting backups
and log archives.

Another article on managing backups in TSM:
http://www.databasejournal.com/featu...0896_3330171_1

Regarding the files, history file will provide information on active,
inactive and expired objects. The db2adutl tells you what's in TSM. The
information between history file and TSM is different because files are
not being delete from TSM. We have to run db2adutl to delete these
files from TSM.

- Vijay

Polani wrote:
Hi Guys ,

I am taking DB2 Online backups through TSM API daily. When i check the
database configuration parameters , it shows me " Number of database
backup verions to maintain"= 12.

This is also shown when i check " db2 list history db " it showed me 12
versions of backups which is ok, but problem is that when i run
"db2adutl query" it showed me 69 or 70 entries like that:::

1 Time: 20060730142501 Oldest log: S0014176.LOG DB Partition Number: 0
Sessions: 1
2 Time: 20060729142501 Oldest log: S0014141.LOG DB Partition Number: 0
Sessions: 1
3 Time: 20060728142502 Oldest log: S0014100.LOG DB Partition Number: 0
Sessions: 1
4 Time: 20060727142502 Oldest log: S0014074.LOG DB Partition Number: 0
Sessions: 1
5 Time: 20060726142502 Oldest log: S0014048.LOG DB Partition Number: 0
Sessions: 1
So my question is that how can i know whether DB2 is expiring backup
versions or not, should i try " Expire inventory " explicitly for
expiring DB2 backups or if there are any scripts to expire DB2
backups????

And most annoying , why is the difference between db2 list history db
and db2adutl command, On which command should i rely ????

Env is Db2 8.1.3 with TSM 5.3

Regards

Khurram
Aug 1 '06 #2

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

Similar topics

0
by: JJ | last post by:
I'm trying to create a backup set which maintains only a fixed number of days. As such, I've got the following script: BACKUP DATABASE to WITH NOINIT, NOUNLOAD, NAME=N'My Database Backup',...
1
by: Sgt. Sausage | last post by:
I've got a server (SQL 2K, Win2K) where the backups have started running long. The database is a bit largish -- 150GB or so. Up until last month, the backups were taking on the order of 4 to 5...
1
by: Loopy | last post by:
I'm trying to create a backup set which maintains only a fixed number of days. As such, I've got the following script: BACKUP DATABASE to WITH NOINIT, NOUNLOAD, NAME=N'My Database Backup',...
7
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local...
2
by: greggarpin | last post by:
Hi All. I'm currently maintaining 4 servers - 1 for public/customers and 3 for backups, development, etc... I regularly backup the entire SQL database for our public server and restore it on...
3
by: db2inst2 | last post by:
Hi all, When doing a restore using control center, i see the backups that are no longer existing. That i physically deleted. Is there a specific way to deleted the backups? Should i...
23
by: Phil Powell | last post by:
// OBTAINED FROM http://www.javascripter.net/faq/settinga.htm // NOTE THAT IF YOU SET days TO -1 THE COOKIE WILL BE SET TO YESTERDAY AND THUS EXPIRE function setCookie(name, value, days, docObj)...
0
by: aspineux | last post by:
setacl and getacl look to be already "Cyrus" specific (according the doc), why not to extend imaplib a little bit more ? Here are some code I wrote and tested to support cyrus "expire" that...
11
by: RoB | last post by:
Hi all, I'm coming from the Informix world and I have a customer using DB2 8.2.3 for Linux on Red Hat Enterprise ES. The customer is performing filesystem backups of the containers etc every...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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.