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

Getting DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002 exception

Hi, I was trying to update a column in a table in my DB using java code but after updating some rows it throws an exception like "exception in processcom.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH203 0X5359534C564C3031". Can anyone have any idea about this, if some one has has any solution plz reply back ASAP... thanks in advance for your help.
Mar 5 '07 #1
6 60077
Hi, I was trying to update a column in a table in my DB using java code but after updating some rows it throws an exception like "exception in processcom.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH203 0X5359534C564C3031". Can anyone have any idea about this, if some one has has any solution plz reply back ASAP... thanks in advance for your help.

Hi,

Your databases has only 3 packages of this kind.
They are SYSLH200,201,202.
But your query requires one more additional package SYSLH203. If you are a DBA, go to SQLLIB/BND directory then issue the following command

db2 bind @db2cli.lst blocking all grant public sqlerror continue CLIPKG 5

If you are application programmer, contact your DBA to perform above bind. You can bind upto CLIPKG 30.
Mar 5 '07 #2
Hi Ramesh,
Thanks for the help. After using that bind statement the updating the table is done but not to the fullest. It is done partially. After runing for some time it gave me the same error but little change in the code. The error is "com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH21E 0X5359534C564C3031".
Can you help me out again please.....
Regards,
Srinivasa Reddy.
Mar 9 '07 #3
Hi Ramesh,
Thanks for the help. After using that bind statement the updating the table is done but not to the fullest. It is done partially. After runing for some time it gave me the same error but little change in the code. The error is "com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH21E 0X5359534C564C3031".
Can you help me out again please.....
Regards,
Srinivasa Reddy.

Hi Srinu,
This is expected only. It is asking for SYSLH21E means it is 31st package. maximum SYSLH packages are only 30. You can solve this problem by including commit statements after some rows are updated in your application or closing handles or cursors. But if you want to commit only after all records are updated, you can try with more SYSLH packages but as of my knowledge only 30 packages can be bound.

Ramesh
IBM Certified DB2 DBA
IBM Certified UDB DBA
Mar 9 '07 #4
i gave this in the prompt
prompt >db2 bind @db2cli.lst blocking all grant public sqlerror continue CLIPKG 5

i got an error like:

Db21061e command line enviroment not initialized.


wha to do with
Aug 12 '09 #5
vijay2082
112 100+
Your udb environment is not initialized properly. If you are usign a UNIX box then you need to execute the db2profile once you log on to your machine. Ask the DBA or the system admin to that for you and they will fix it.

If its a widows box use start > run > db2cmd

you will get a db2 command window. You can run your db2 commands over here.

Change the path/directory to %DB2PATH%/bnd and then execute the below commnd once you are connected to the database.

C:\Program Files\IBM\SQLLIB\bnd> db2 bind @db2cli.lst blocking all grant public sqlerror continue CLIPKG 15



Regards

Vijay
Aug 12 '09 #6
vijay2082
112 100+
Hi

Look here for more details.

http://www-01.ibm.com/support/docvie...=utf-8&lang=en

Cheers, Vijay
Aug 21 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: xixi | last post by:
hi, i am using db2 8.1 on windows 64 bit. i have set MAXAPPLS to 60, APPLHEAPSZ to the maximum and do the db2jdbcbind size to 40, after all this, i still get the error SQLCODE: -805, SQLSTATE:...
4
by: xixi | last post by:
hello, our application is running on db2 udb v8.1 win64 bit machine, using db2jcc.jar for jdbc driver. i have this error happen, DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC:...
0
by: aj | last post by:
Red Hat Linus AS 2.1 DB2 WSE 8.1 FP5 I just upgraded to DB2 8.1 FP5, and am getting a few of: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC:...
1
by: tmugavero | last post by:
Hello, This is my first time starting a topic here so I hope this is the right place. I am having problems running SQL queries on a Version 8 DB2 database for Windows Server using the type 4...
2
by: db2group88 | last post by:
Hi, we are using db2 v8.2 on windows. Have a error while run the application, DB2 SQL error: SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH20A 0X5359534C564C3031 normally i saw the...
5
by: misterutterbag | last post by:
Stack trace below. Only happens in WebSphere 6.0. DB2 v 8.2. FP12. Only against 1 database. I have other databases in this database instance, but they don't seem to have this problem. ...
7
by: lsaidnawey | last post by:
Hi, I'm getting SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: NULLID.SYSLH203. I've seen this problem posted before and I thought it might be a statement handle leak. I'm using a pooled datasource,...
1
by: Sivaganeshs | last post by:
SQLCODE: -805, SQLSTATE: 51002, SQLERRMC: P00001.NULLID.SYSLH203.5359534C564C3031;DISTSERV;04 What could be the reason for getting this error code when we are accessing DB2(Version 7.0) with Type...
0
by: 098765 | last post by:
Hi All, Since last couple of week i am trying to connect to QA box. But i am getting error. Strange thing is that i can connect to DEV box using same code. Please let me know what is the possible...
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...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
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.