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

UserExit succeeded manully but failed when loaded automatically by DB2

Hi,

We have a DB2 UDB v7.2 (with Fixpak 6) database (named, say, PRODDB)
running on a RS/6000 machine (pSeries) with AIX 5.2 (Maintenance Level
1). The database is not partitioned. Both LOGRETAIN & USEREXIT are
turned on.

I have compiled the sample userexit program db2uext2.c(disk) and put
it under
${INSTANCE_HOME}/sqllib/adm
and also made the following softlink (just to make sure)
${INSTANCE_HOME}/sqllib/bin/db2uext2 ->
${INSTANCE_HOME}/sqllib/adm/db2uext2.

I do not have a problem to manully archive log files by running the
program:

../db2uext2 -OSAIX -RLSQL07024 -RQARCHIVE -DBPRODDB \
-NNNODE0000 -LP"/onlinelogs/" -LNS0000000.LOG
However, it failed when DB2 automatically loaded it. And the following
error message was found in db2diag.log:

------------------------------------------------------------
2004-07-08-21.45.45.141664 Instance:db2inst1 Node:000
PID:1142976(db2cart) Appid:none
data_protection sqlpgart Probe:490

DB2 not able to execute User Exit program when archiving log file
S0000000.LOG from /onlinelogs/ for database PRODDB, error code 255

Please verify User Exit program by manually running it.
------------------------------------------------------------

I suspect that DB2 failed in loading some library. And the problem is
environment-related (such as LIBPATH, etc).

Could anyone give me some light to solve the problem?

Thanks in advance,

Guoping Jiang
Nov 12 '05 #1
0 1263

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

Similar topics

0
by: Henrik Bergman | last post by:
Hi all As I subscribe MSDN I got an USB-memory with Microsoft eLearing library. I found an exampell how to send SMTP e-mail using CDO.Message object and CDO.Configuration. But when I try to...
1
by: NikP | last post by:
Hi We got a problem of this kind , we got several machines with different level of db2 from 6 to 8 , all of them have the userexit enable for backing-up to a tsm server , we got no problem with...
3
by: Gustavo L. Fabro | last post by:
Greetings! I'm testing VS 2005 Beta 2, and I've compiled a program that runs just fine on my computer (where VS is installed). I've tried to run this same program on another computer (after...
0
by: Henrik Bergman | last post by:
Hi all As I subscribe MSDN I got an USB-memory with Microsoft eLearing library. I found an exampell how to send SMTP e-mail using CDO.Message object and CDO.Configuration. MSDN has also got...
1
by: Divakar | last post by:
Hi, We are getting the following error while compiling the UserExit program. Not sure where the problem is. We are using the IBM supplied UserExit sample program. We have changed some variables...
2
nabh4u
by: nabh4u | last post by:
hi, i am getting this error when i build my project in vc++ : Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped when i start without debug i get this error : The system cannot...
0
by: nithagowda | last post by:
Hello, I have a DropDownList for source type and a panel for displaying TreeView based on the source type.. The problem is- if i select different source type drom ddlSrcType, other than the...
1
by: Patrick Finnegan | last post by:
The db2 diag log shows the last log file archived was S0011941.LOG. cat db2diag.log| grep -i archived MESSAGE : Successfully archived log file S0011938.LOG to USEREXIT from MESSAGE :...
2
by: Patrick Finnegan | last post by:
Running db2 8.2 ON aIX 5.3. We have a third party USEREXIT program that periodically hangs for some unknown reason. Db2 generates error message to the diag log. MESSAGE : Successfully...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.