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 > DB2:Setting open Cursor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-12, 10:37
drake81 drake81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 4
DB2:Setting open Cursor

Hello,

Can we set the open cursor value in DB2 UDB 9.5 on Linux ?

I am thinking Oracle where we have a configurable parameter open_cursor which can be set to a value.

Does DB2 UDB provide a similar option to configure the allowed number of open cursor/s?
Reply With Quote
  #2 (permalink)  
Old 01-05-12, 11:12
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You need to explain what you want. Not everybody knows Oracle.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-05-12, 14:46
drake81 drake81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 4
For Example:

I want the maximum number of open cursors in a db2 database to be at 500. How do I accomplish this ?
Reply With Quote
  #4 (permalink)  
Old 01-05-12, 14:49
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I think Oracle and DB2 use the term "cursor" differently. What are you trying to accomplish?

Andy
Reply With Quote
  #5 (permalink)  
Old 01-05-12, 15:26
drake81 drake81 is offline
Registered User
 
Join Date: Nov 2011
Posts: 4
I mentioned earlier, what I want, or what I am trying to accomplish..

This is what I found based on my research so far:
By default DB2 creates 3 packages when you do the cli binds, these three packages together provides the capability of a total of 1344 open cursors. In my case due to some funky application code, the 1344 open cursor limit is exhausted and I was looking to find ways to increase them... ( this is what I was trying to accomplish)

The quick fix is to increase the number of packages and thereby increase the total limit on the number of open cursors.. The packages have a limit, you cannot take that higher than 30 which represents 11712 concurrently open cursors...

The real fix is to come from the application folks.. Do they really need so many open cursors? A code fix is in order:

Check this out: This decoded the problem I faced..
SQL0805N Package “” was not found.
Reply With Quote
  #6 (permalink)  
Old 01-05-12, 21:02
fengsun2 fengsun2 is offline
Registered User
 
Join Date: Nov 2011
Posts: 124
what the interesting application ! 11712 concurrently open cursors, that is a big number....
As you metioned above , I think a code fix is the only way to solve the problem....
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