473,383 Members | 1,788 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,383 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 60061
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...
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: 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...
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: 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.