473,395 Members | 1,968 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,395 software developers and data experts.

backup log on DB2 6 to TSM

Hi to everyone,

I have a DB2 v6.1 on a Windows based machine.

I have installed the TSM Client 5.2 on it to backup both the system
and databases.

We've compiled the db2uxt2.cadsm file into the samples\c directory
into the DB2 one and put the executable file into the bin directory.

Enabling UserExit and TrackMod then try to do a full backup of all
databases. Everything is working expect for the logs.
We have also set up the enviroment variables, such as DSMI_DIR,
DSMI_CONFIG and DSMI_LOG.

If I query the TSM server with the db2adutl command I see all the
backup I've done (I've also tried to do an incremental and a delta
backup after the full one) with the correct timestamps but no trace
about logs.

How can I set up DB2 to backup also logs among with data?
We have tried it both on db2 console and control center.

We successfully set up on other Windows/AIX machines with DB2 >= 7.1
and logs are being backupped correctly.

thanks in advance
...
Davide Lakester
ICQ: 40766105
Nov 12 '05 #1
5 4110
Ian
*Lakester* wrote:
Hi to everyone,

I have a DB2 v6.1 on a Windows based machine.

I have installed the TSM Client 5.2 on it to backup both the system
and databases.

We've compiled the db2uxt2.cadsm file into the samples\c directory
into the DB2 one and put the executable file into the bin directory.
I think it's supposed to go in sqllib\adm, not sqllib\bin
Enabling UserExit and TrackMod then try to do a full backup of all
databases. Everything is working expect for the logs.


Stupid question maybe, but I assume that you have LOGRETAIN=YES, too?

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2
Ian <ia*****@mobileaudio.com> non sapendo che fare scrisse:
I think it's supposed to go in sqllib\adm, not sqllib\bin


Are we talking about db2uext2 file? the executable one?
Well, I'm sure this file must be in the sqllib/bin directory.
Enabling UserExit and TrackMod then try to do a full backup of all
databases. Everything is working expect for the logs.


Stupid question maybe, but I assume that you have LOGRETAIN=YES, too?


You cannot set LOGRETAIN to YES. The possible values are NO, RECOVERY,
CAPTURE

I set it up to RECOVERY.

...
Davide Lakester
ICQ: 40766105
Nov 12 '05 #3
Ian
*Lakester* wrote:
Ian <ia*****@mobileaudio.com> non sapendo che fare scrisse:

I think it's supposed to go in sqllib\adm, not sqllib\bin

Are we talking about db2uext2 file? the executable one?
Well, I'm sure this file must be in the sqllib/bin directory.


This does work, true. However:

sqllib/bin is a soft link to the software installation directory
(/usr/lpp/db2_06_01/bin on AIX), which is common to all instances
on a server. So unless your user exit was modified to be aware
of separate instances (or you've only got one instance), you
could run in to trouble.

sqllib/adm on the other hand is an actual (unique) directory for
each instance, which is why you should put the db2uext2 executable
in this directory.
Enabling UserExit and TrackMod then try to do a full backup of all
databases. Everything is working expect for the logs.


Stupid question maybe, but I assume that you have LOGRETAIN=YES, too?

You cannot set LOGRETAIN to YES. The possible values are NO, RECOVERY,
CAPTURE


RECOVERY == YES. YES is probably deprecated, though.
Anyway: Are you using the sample TSM user exit? It can write to a
couple of log file (USEREXIT.ERR and ARCHIVE.LOG), so you should be
able to see if there are any errors from the TSM api calls. Look at
the source for your user exit to find out where these files are stored.

Also, the db2uext2 binary isn't suid to some other ID, is it? If so,
then the log files would have been stored in TSM under another user ID,
and db2adutl wouldn't be able to see them.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #4
Ian <ia*****@mobileaudio.com> non sapendo che fare scrisse:

This does work, true. However:

sqllib/bin is a soft link to the software installation directory
(/usr/lpp/db2_06_01/bin on AIX), which is common to all instances
on a server. So unless your user exit was modified to be aware
of separate instances (or you've only got one instance), you
could run in to trouble.

sqllib/adm on the other hand is an actual (unique) directory for
each instance, which is why you should put the db2uext2 executable
in this directory.
Yes, you're right!
Now I've moved the db2uext2 file from sqllib\bin to sqllib\adm.

Anyway: Are you using the sample TSM user exit? It can write to a
couple of log file (USEREXIT.ERR and ARCHIVE.LOG), so you should be
able to see if there are any errors from the TSM api calls. Look at
the source for your user exit to find out where these files are stored.
Yes, I'm using TSM user exit sample code.
I've set up the AUDIT_ERROR_PATH to a directory but we get no error
after a backup:

from db2 console:

backup db <dbname> online USE ADSM

Full backup works perfectly but I've tha same problem with logs,
they're not backupped (if I try a db2adult query I see full backups
but no related logs).

Also, the db2uext2 binary isn't suid to some other ID, is it?
Sorry but I didn't get you, what do you mean?

I've compiled db2uext2 on another AIX machine with a C compiler and
root user. Do you mean I've to compile it on this machine where DB2 is
stored and with db2inst1 userid? O__o
If so,
then the log files would have been stored in TSM under another user ID,
and db2adutl wouldn't be able to see them.



...
Davide Lakester
ICQ: 40766105
Nov 12 '05 #5
*Lakester* <la******@tiscalinet.it> non sapendo che fare scrisse:
Ian <ia*****@mobileaudio.com> non sapendo che fare scrisse:

<cut>

I've found the problem :D

It was an api problem, the machine where we compiled it has a more
recent version of tsm api..

thanks for helping anyway

bye


...
Davide Lakester
ICQ: 40766105
Nov 12 '05 #6

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

Similar topics

1
by: Andrew E | last post by:
I just took over DBA responsibilities for an Oracle 8i database running on Linux. Although I've been working with relational databases for some time, I'm a bit green on Oracle so forgive me. My...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
2
by: nt | last post by:
I am having a problem with a regular backup of an SQL Server (MSDE 2000) database to a local drive. I initiate the backup once a week, by issuing the required T-SQL, via ADO. In this case, the...
1
by: John Rajendran | last post by:
Hi there, I need to take a backup with the following scanerio in mind: At T1 I take the FULL BACK UP of the database called BACK_1_FULL.BACK in c:\ Then at T2 I would like to take only the...
6
by: Eric Herber | last post by:
I've a question regarding db2 (V8.1) and database backups going to a storage manager like TSM for example. As I can see in the storage manager if I backup the complete database over the TSM API...
1
by: alex | last post by:
Hi ! I couldn't make backups with our new system using db2 8.2. Every time I trigger a backup I get this error message: BACKUP DATABASE EBUERO2 ONLINE TO "/raid/backup/ebuero2/part1",...
4
by: uthuras | last post by:
Hi all, I have DB2ESE version 8.1 with FP 4 on AIX 5.2. My database used to be 1.1TB. When the DB size is 1.1TB, it takes approximately 7 hours to backup the entire database (online backup). The...
6
by: k04jg02 | last post by:
Problem: I have a properties dialog. X objects build the dialog, but a subclass of X, such as Y, can add more options to the dialog for Y specific properties. I would like to write code for the...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
2
by: clilush | last post by:
I've been working with db2 8.2fp14 for over a year now and was wondering what is a "standard" way of doing a backup to provide 24/7 operations with disaster recovery capabilities? My thoughts were...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...

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.