Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLI0129E No more handles 2

Status
Not open for further replies.

Ruvera

Programmer
May 8, 2002
12
0
0
RU
In a high volume transaction environment I have a servlet
read/write operations on a database for each time that it is called. When using a low transaction rate everything works just fine. However, when stressing the system DB2 comes back with the following message:
IBM][CLI Driver] CLI0129E No more handles. SQLSTATE=HY014.

How can I resolve this problem?

 
Ruvera,
I think that there this is a problem with resources and there appears to be a number of possible ways to fix it:

1) If the servlet has a CURSOR WITH HOLD (which is the default) change this to CURSOR WITHOUT HOLD as there is a difference in the number of handles each can hold. This may not be in line with what you application requires tho.

2) Add a counter in the calling program so that when a predefined limit is reached, you issue a COMMIT or Call SQLFreeEnv, SQLFreeConnect, or SQLFreeStmt. Start this predefined limit low and work upwards until you reach a limit that is acceptable to the application. Once again, this may not be possible within the business context of your application.

3) If you are using WebSphere Application Server Version 3.5 then I believe that fix pack 3 addresses a problem where if SelectStatement is called 1500 or more times in a user servlet CLI0129E is returned

Hope some of this is relevant to your problem.

Marc
 
How to change CURSOR WITH HOLD on CURSOR WITHOUT HOLD ?

I work with operational system Windows 2000, IBM DB2 7, Patch 7, JDK 1.3.

 
I believe you don't close your java.sql.Statements do you?
If you don't close your statements you are sure to get that error message.
Salih Sipahi
Software Engineer.
City of Istanbul Turkey
ssipahi@yonbilgi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top