473,503 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Package "NULLID.SYSLH203 0X5359534C564C3031" was not found

Hi all.

I am running a stored procedure in a loop -- this Stored procedure
inserts one record at a time.

After inserting about 1326 records, my thread crashes and I get the
following error:
"Got database error. [DB2/NT] SQL0805N Package "NULLID.SYSLH203
0X5359534C564C3031" was not found. SQLSTATE=51002"

Here's the body of the stored procedure.

===================
create PROCEDURE db2.sp_add_log
(
IN PLAYEROID_in CHAR(36),
IN PLAYTIME_in CHAR(23),
IN CONTENTNAME_in VARCHAR (1024),
IN CONTENTOID_in CHAR(36),
IN REASON_in VARCHAR (256),
IN DATAFIELD_in VARCHAR (256)
)
LANGUAGE SQL
BEGIN
DECLARE SQLSTATE CHAR(5);
DECLARE not_found CONDITION FOR SQLSTATE '02000';
DECLARE EXIT HANDLER FOR not_found
SIGNAL SQLSTATE '02444';

SET PLAYTIME_in = REPLACE(PLAYTIME_in,'T',' ');

insert into DB2.PLAYLOGS_
(PLAYEROID_, PLAYTIME_,CONTENTNAME_,CONTENTOID_,REASON_, DATAFIELD_)
values
(PLAYEROID_in, PLAYTIME_in, CONTENTNAME_in, CONTENTOID_in, REASON_in,
DATAFIELD_in);
END

======================

Any ideas what this error message might mean?

I found out from the IBM web-site what Error 51002 means:
51002 The package corresponding to an SQL statement execution request
was not found.

What package is it referring to? How could I suddenly (after inserting
1326 records) need this package NULLID.SYSLH203 0X5359534C564C3031 ?

My primary key is a composite key created by combining the 1st 3 fields
-- could it be that it got a NULL value for one of those fields and
this is DB2's way of telling me about the problem ?

I found somebody else who had a similar grievance:
http://www.lazydba.com/db2/2__5491.html -- it says that I was probably
not using the correct way to open/close cursors....

Thanks,
-Anil

Feb 15 '06 #1
7 14205
an******@gmail.com wrote:
Hi all.

I am running a stored procedure in a loop -- this Stored procedure
inserts one record at a time.

After inserting about 1326 records, my thread crashes and I get the
following error:
"Got database error. [DB2/NT] SQL0805N Package "NULLID.SYSLH203
0X5359534C564C3031" was not found. SQLSTATE=51002"

Here's the body of the stored procedure.

===================
create PROCEDURE db2.sp_add_log
(
IN PLAYEROID_in CHAR(36),
IN PLAYTIME_in CHAR(23),
IN CONTENTNAME_in VARCHAR (1024),
IN CONTENTOID_in CHAR(36),
IN REASON_in VARCHAR (256),
IN DATAFIELD_in VARCHAR (256)
)
LANGUAGE SQL
BEGIN
DECLARE SQLSTATE CHAR(5);
DECLARE not_found CONDITION FOR SQLSTATE '02000';
DECLARE EXIT HANDLER FOR not_found
SIGNAL SQLSTATE '02444';

SET PLAYTIME_in = REPLACE(PLAYTIME_in,'T',' ');

insert into DB2.PLAYLOGS_
(PLAYEROID_, PLAYTIME_,CONTENTNAME_,CONTENTOID_,REASON_, DATAFIELD_)
values
(PLAYEROID_in, PLAYTIME_in, CONTENTNAME_in, CONTENTOID_in, REASON_in,
DATAFIELD_in);
END

======================

Any ideas what this error message might mean?

I found out from the IBM web-site what Error 51002 means:
51002 The package corresponding to an SQL statement execution request
was not found.

What package is it referring to? How could I suddenly (after inserting
1326 records) need this package NULLID.SYSLH203 0X5359534C564C3031 ?

My primary key is a composite key created by combining the 1st 3 fields
-- could it be that it got a NULL value for one of those fields and
this is DB2's way of telling me about the problem ?

I found somebody else who had a similar grievance:
http://www.lazydba.com/db2/2__5491.html -- it says that I was probably
not using the correct way to open/close cursors....

I have a hard time believing that the stored proc is at fault.
What happens if you CALL an EMPTY procedure (BEGIN END) ro skip teh CALL
all together?
What does your app do in side the loop? Do you allocate cursor handles
(and not free them)?

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Feb 15 '06 #2
>> Hi all.

I am running a stored procedure in a loop -- this Stored procedure
inserts one record at a time.

After inserting about 1326 records, my thread crashes and I get the
following error:
"Got database error. [DB2/NT] SQL0805N Package "NULLID.SYSLH203
0X5359534C564C3031" was not found. SQLSTATE=51002"

Here's the body of the stored procedure.


See this link:
http://www-1.ibm.com/support/docview...id=swg21208123

Also, make sure you have upgraded to at least FP10.
Feb 15 '06 #3
Hi Serge,

You said: "Allocating cursor handles and not free them" -- lemme try
and understand what you mean by that.

I have another stored procedure where I declare 4 cursors with 4
different select statements... then based on the received parameter
value I either OPEN cursor1 OR cursor2 ... and so on. Is this ok?

Or maybe you can give me an example of how one can allocate cursors and
not free them.

Thanks,
-Anil

Feb 15 '06 #4
an******@gmail.com wrote:
Hi Serge,

You said: "Allocating cursor handles and not free them" -- lemme try
and understand what you mean by that.

I have another stored procedure where I declare 4 cursors with 4
different select statements... then based on the received parameter
value I either OPEN cursor1 OR cursor2 ... and so on. Is this ok?

Or maybe you can give me an example of how one can allocate cursors and
not free them.

Am I correct that these cursors are defined WITH RETURN?
If so do you consume and close the cursors in the application?

Cheers
Serge

PS: I was referring to allocating cursors in CLI. A CLI package allows
you only so many statement handles at a time.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Feb 15 '06 #5
<an******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi Serge,

You said: "Allocating cursor handles and not free them" -- lemme try
and understand what you mean by that.

I have another stored procedure where I declare 4 cursors with 4
different select statements... then based on the received parameter
value I either OPEN cursor1 OR cursor2 ... and so on. Is this ok?

Or maybe you can give me an example of how one can allocate cursors and
not free them.

Thanks,
-Anil


If you read the link I posted, you will see that creating 4 cursors at one
time may exhaust the resources and you need to create more packages.
Feb 15 '06 #6
Here's the stored procedure that I have...

This could very well be 4 different stored procedures.. the reason I
have them clubbed as one is so that all the code can stay at one place.
====================
create PROCEDURE DB2.sp_get_logs ( IN starttime TIMESTAMP,
IN endtime TIMESTAMP,
IN TypeOfLog VARCHAR(15),
IN oidObjectType CHARACTER(1),
IN oid CHARACTER(36)
)
RESULT SETS 1
LANGUAGE SQL
BEGIN
DECLARE c1 CURSOR WITH RETURN FOR
select playeroid_, playtime_, contentname_, contentoid_, reason_,
datafield_ from db2.playlogs_ where playtime_ >= starttime and
playtime_ <= endtime and playeroid_ = oid ;

DECLARE c2 CURSOR WITH RETURN FOR
select playeroid_, playtime_, contentname_, contentoid_, reason_,
datafield_ from db2.playlogs_ where playtime_ >= starttime and
playtime_<= endtime and contentoid_ = oid ;

DECLARE c3 CURSOR WITH RETURN FOR
select contentname_, contentoid_, COUNT(*) As TotalPlayed_ from
db2.playlogs_ where playtime_ >= starttime and playtime_ <= endtime and
playeroid_ = oid GROUP BY contentoid_, contentname_;

DECLARE c4 CURSOR WITH RETURN FOR
select contentname_, contentoid_, COUNT(*) As TotalPlayed_ from
db2.playlogs_ where playtime_ >= starttime and playtime_ <= endtime and
contentoid_ = oid GROUP BY contentoid_, contentname_;
if ( TypeOfLog = 'playlog' ) Then -- For playlog queries --
if ( oidObjectType = 'P' ) Then
OPEN c1;
else
if ( oidObjectType = 'C' ) Then
OPEN c2;
end if;
end if;
else
if ( TypeOfLog = 'playlogsummary' ) Then
if ( oidObjectType = 'P' ) Then
OPEN c3;
else
if ( oidObjectType = 'C' ) Then
OPEN c4;
end if;
end if;
end if;
end if;
END

Feb 15 '06 #7
Serge Rielau wrote:
an******@gmail.com wrote:
Hi all.

I am running a stored procedure in a loop -- this Stored procedure
inserts one record at a time.

After inserting about 1326 records, my thread crashes and I get the
following error:
"Got database error. [DB2/NT] SQL0805N Package "NULLID.SYSLH203
0X5359534C564C3031" was not found. SQLSTATE=51002"

Here's the body of the stored procedure.

===================
create PROCEDURE db2.sp_add_log
(
IN PLAYEROID_in CHAR(36),
IN PLAYTIME_in CHAR(23),
IN CONTENTNAME_in VARCHAR (1024),
IN CONTENTOID_in CHAR(36),
IN REASON_in VARCHAR (256),
IN DATAFIELD_in VARCHAR (256)
)
LANGUAGE SQL
BEGIN
DECLARE SQLSTATE CHAR(5);
DECLARE not_found CONDITION FOR SQLSTATE '02000';
DECLARE EXIT HANDLER FOR not_found
SIGNAL SQLSTATE '02444';

SET PLAYTIME_in = REPLACE(PLAYTIME_in,'T',' ');

insert into DB2.PLAYLOGS_
(PLAYEROID_, PLAYTIME_,CONTENTNAME_,CONTENTOID_,REASON_, DATAFIELD_)
values
(PLAYEROID_in, PLAYTIME_in, CONTENTNAME_in, CONTENTOID_in, REASON_in,
DATAFIELD_in);
END

======================

Any ideas what this error message might mean?

I found out from the IBM web-site what Error 51002 means:
51002 The package corresponding to an SQL statement execution request
was not found.

What package is it referring to? How could I suddenly (after inserting
1326 records) need this package NULLID.SYSLH203 0X5359534C564C3031 ?

My primary key is a composite key created by combining the 1st 3 fields
-- could it be that it got a NULL value for one of those fields and
this is DB2's way of telling me about the problem ?

I found somebody else who had a similar grievance:
http://www.lazydba.com/db2/2__5491.html -- it says that I was probably
not using the correct way to open/close cursors....

I have a hard time believing that the stored proc is at fault.
What happens if you CALL an EMPTY procedure (BEGIN END) ro skip teh CALL
all together?
What does your app do in side the loop? Do you allocate cursor handles
(and not free them)?

Cheers
Serge


Hi!

I get this errors also with regular SELECT statements.
Then I run the following command from db2cmd:
db2jdbcbind.exe -url jdbc:db2://SERVER:50000/DATABASE_NAME -user DB_USERNAME
-password DB_PASSWORD -size 300

Best regards,
Kovi

--
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
| Gregor Kovac | Gr**********@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Feb 18 '06 #8

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

Similar topics

2
3291
by: Vidyadharan | last post by:
Hi , I encounter package not found NULLID.SYSLN304 while i try to execute a PreparedStatement using the Websphere Application Server data source. The same runs fine when its run stand alone. ...
5
4957
by: Jurgen Haan | last post by:
can anyone give me any information about this message? SQL State: 51002 Native: -805 Message: SQL0805N Package "NULLID.SYSLH203 0X5359534C564C3031" was not found. SQLSTATE=51002 - Error...
9
6784
by: datapro01 | last post by:
Running Db2 8.1 w Fixpack 9. Recently upgraded to this level. An application attempting a load receives the following error Error Error 1 2005-12-29 14:55:26 SQLError: sqlstate 51002: ...
0
2548
by: Michael Rudolph | last post by:
Hi newsgroup, I try to connect to a host db2 (DB2 OS/390 7.1.2) from my db2 client on windows (DB2/NT 8.2.3). Using interactive mode everything works fine (db2, connect to abc user x using y,...
2
6527
by: chrisg | last post by:
Can anyone please help me and explain: 3e70982f WSRdbDataSour I DSRA8203I: Database product name : OS2 3e70982f WSRdbDataSour I DSRA8204I: Database product version : DB2 UDB 6.1 ...
4
14776
by: jason.awlt | last post by:
Greetings, I recently being bugged by the following error on my DB2. SQL0902C SQLSTATE = 58005 Reason Code = 14 This error comes out everytime i tried to insert some record to a table...
3
3270
by: Jurgen Haan | last post by:
Hi hi. I'd like to gain some knowledge on packages. We're getting an error "SQL0805N Package "NULLID.SYSLH214 0X5359534C564C3031" was not found. SQLSTATE=51002" On our production database....
2
3037
by: Prassi | last post by:
Hi All, I am getting this error Package "NULLID.SYSLN30F 0X5359534C564C3031" was not found in my application, Application is a Websphere portet and we normally get this error after executing a...
2
4204
by: kavin | last post by:
we r getting Package "NULLID.SYSLN31E 0X5359534C564C3031" was not found error in our production server.. when v check with "select * from syscat.packages".. that package SYSLN31E is not listed...
0
7205
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
7093
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
7349
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
5594
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,...
1
5022
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...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.