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 > SetCLI0129E No more handles. SQLSTATE=S1014

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-11, 15:07
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
SetCLI0129E No more handles. SQLSTATE=S1014

Dear team,

i am receiving "SetCLI0129E No more handles. SQLSTATE=S1014" kindly tell me why i am receiving this error and how i have to fix it.kindly help me
Reply With Quote
  #2 (permalink)  
Old 03-15-11, 15:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Straight from the manual:

Code:
CLI0129E  No more handles.

Explanation:

A call was made to SQLAllocEnv, SQLAllocConnect, SQLAllocStmt,
SQLExecute, or SQLExecDirect but no more handles are available in the
driver.

User response:

Call SQLFreeEnv, SQLFreeConnect, or SQLFreeStmt to free up some handles
which are no longer being used in the application.
Andy
Reply With Quote
  #3 (permalink)  
Old 03-15-11, 15:21
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
new bie

sorry ARWinner,

actually . i am developing a new application in db2. i don't know how to free the resource
Reply With Quote
  #4 (permalink)  
Old 03-15-11, 15:24
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How are you interfacing with the DB2 CLI?

Andy
Reply With Quote
  #5 (permalink)  
Old 03-15-11, 15:27
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
only odbc

i am using only odbc connection
Reply With Quote
  #6 (permalink)  
Old 03-15-11, 15:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I believe that it means that DB2 has run out of large cursor packages that can be used at one time. A DBA can rebind the package involved to increase it up to about 30, but that is like giving more drugs to a drug addict since it does not solve the underlying problem.

The problem is that your programs are not closing connections properly in their code, and/or are not committing frequently enough. See the Developing Java Applications or Developing ADO.NET and OLE DB Applications manuals for more information.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #7 (permalink)  
Old 03-15-11, 15:29
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
vc++

i am using vc++
Reply With Quote
  #8 (permalink)  
Old 03-15-11, 15:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I modified my response to include the Developing ADO.NET and OLE DB Applications. But you should know how to do more frequent commits, and/or close transactions.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #9 (permalink)  
Old 03-15-11, 15:35
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
sure i will do that and confirm you soon
Reply With Quote
  #10 (permalink)  
Old 03-15-11, 15:54
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
the issue is raising mostly in select query ?
Reply With Quote
  #11 (permalink)  
Old 03-15-11, 17:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by mann madhan View Post
the issue is raising mostly in select query ?
That is not unusual. Too many cursors open at one time (DB2 usues cursors behind the scenes to process answer sets).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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