If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SQLSTATE 805 after certain numbers of statements

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-12, 06:06
gurkfest gurkfest is offline
Registered User
 
Join Date: Jun 2012
Posts: 1
SQLSTATE 805 after certain numbers of statements

Hello,

we are running a Spring/JPA application which does multithreaded data processing on tomcat using DB2. If we are running large jobs containing a lot of statements the database raises a SQLSTATE 805 after ~1150 statements.

if we perform a entityEanager.flush() manually the problem does not appear.

how can this happen? is there a certain limitation in DB2 for statements in parallel sessions?

Notice : we run DB2 on z/os

Thanks in advance,
marcus
Reply With Quote
  #2 (permalink)  
Old 06-29-12, 06:53
db2mor db2mor is offline
Registered User
 
Join Date: Apr 2012
Posts: 390
Find out (from the DBA, or from the detailed messages in the log files) *which* package is not found or not bound... You have to have that as a starting point...

Is the package the same for every occurrence of the problem, or does the package-name vary?
Reply With Quote
  #3 (permalink)  
Old 06-29-12, 08:19
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 5,050
Reply With Quote
  #4 (permalink)  
Old 06-29-12, 08:40
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,721
If the error is cursor-related, check that you close your cursors properly. For example, Java/JDBC has a very unfortunate default setting to use WITH HOLD cursors, which are not closed upon COMMIT. (And that default is used because auto-commit is another such unfortunate default.)
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On