Error While fetching BLOBs from a table using DB2CLI :
------------------------------------
SQL0429N
The maximum number of concurrent LOB locators has been exceeded.
Explanation: A maximum of 32,000 concurrent LOB locators per unit of
work, is supported by DB2.
User Response: Modify the program so that it requires fewer concurrent
LOB locators and try again.
sqlcode: -429
sqlstate: 54028
------------------------------------
My problem is that I don't use LOB LOCATORS to extract BLOBs,
I simply bind sql column FIELD_BLOB with SQL_C_BINARY
and fetch chunks with SQLGetData API.
Is DB2 creating lob locators implicitly ?
Any idea ? 3 5695
Laurent wrote: Error While fetCLIXng BLOBs from a table using DB2CLI :
------------------------------------ SQL0429N The maximum number of concurrent LOB locators has been exceeded. Explanation: A maximum of 32,000 concurrent LOB locators per unit of work, is supported by DB2. User Response: Modify the program so that it requires fewer concurrent LOB locators and try again. sqlcode: -429 sqlstate: 54028 ------------------------------------
My problem is that I don't use LOB LOCATORS to extract BLOBs, I simply bind sql column FIELD_BLOB with SQL_C_BINARY and fetch chunks with SQLGetData API. Is DB2 creating lob locators implicitly ?
CLI uses LOB locators internally to fetch the LOB data. For performance
reasons, those locators are not freed right away. This is most likely the
cause of your problem.
You can add the following to the [common] section of your db2cli.ini file:
PATCH2=50
That will change the behavior of CLI to close the locators right away and,
thus, you should not run into tha 32K-limit.
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Knut Stolze <st****@de.ibm.com> wrote in message news:<cd**********@fsuj29.rz.uni-jena.de>... Laurent wrote:
Error While fetCLIXng BLOBs from a table using DB2CLI :
------------------------------------ SQL0429N The maximum number of concurrent LOB locators has been exceeded. Explanation: A maximum of 32,000 concurrent LOB locators per unit of work, is supported by DB2. User Response: Modify the program so that it requires fewer concurrent LOB locators and try again. sqlcode: -429 sqlstate: 54028 ------------------------------------
My problem is that I don't use LOB LOCATORS to extract BLOBs, I simply bind sql column FIELD_BLOB with SQL_C_BINARY and fetch chunks with SQLGetData API. Is DB2 creating lob locators implicitly ?
CLI uses LOB locators internally to fetch the LOB data. For performance reasons, those locators are not freed right away. This is most likely the cause of your problem.
You can add the following to the [common] section of your db2cli.ini file:
PATCH2=50
That will change the behavior of CLI to close the locators right away and, thus, you should not run into tha 32K-limit.
Thanks for your answer !
Question : is it possible to close locators by using explicit
transaction even for SELECTs ?
I mean, instead of putting My Engine in AUTOCOMMIT Mode when I read,
can I switch it to AUTOCOMMIT OFF, then read 100 blobs, then COMMIT -
Will such a commit ensure locator cleanup ?
Laurent wrote: Knut Stolze <st****@de.ibm.com> wrote in message news:<cd**********@fsuj29.rz.uni-jena.de>... Laurent wrote:
> Error While fetCLIXng BLOBs from a table using DB2CLI : > > ------------------------------------ > SQL0429N > The maximum number of concurrent LOB locators has been exceeded. > Explanation: A maximum of 32,000 concurrent LOB locators per unit of > work, is supported by DB2. > User Response: Modify the program so that it requires fewer concurrent > LOB locators and try again. > sqlcode: -429 > sqlstate: 54028 > ------------------------------------ > > My problem is that I don't use LOB LOCATORS to extract BLOBs, > I simply bind sql column FIELD_BLOB with SQL_C_BINARY > and fetch chunks with SQLGetData API. > Is DB2 creating lob locators implicitly ?
CLI uses LOB locators internally to fetch the LOB data. For performance reasons, those locators are not freed right away. This is most likely the cause of your problem.
You can add the following to the [common] section of your db2cli.ini file:
PATCH2=50
That will change the behavior of CLI to close the locators right away and, thus, you should not run into tha 32K-limit.
Thanks for your answer ! Question : is it possible to close locators by using explicit transaction even for SELECTs ? I mean, instead of putting My Engine in AUTOCOMMIT Mode when I read, can I switch it to AUTOCOMMIT OFF, then read 100 blobs, then COMMIT - Will such a commit ensure locator cleanup ?
Yes, it should free the locators.
--
Knut Stolze
Information Integration
IBM Germany / University of Jena This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Corrine |
last post by:
Why am I getting this exception, and how can I fix it? I took out all
the commit's and "select ... for update" statements that I had been
calling using JDBC, but I'm still getting this exception. I...
|
by: Sachin Tilloo |
last post by:
Hi All,
We had an issue lately with entries in db2cli.ini file. We had our
application
connecting to this from Websphere Application Server, with default
package settings to db2. There was also...
|
by: Raquel |
last post by:
db2cli.ini File is the place where various options regarding database
connection and application characteristics are given for applications
using DB2 CLI driver.
Why is the very same file...
|
by: tigr |
last post by:
I am trying to read BLOBs from a large table (i.e., greater than 34K
rows) using Java and the IBM JDBC driver (actually through an
Application server).
I get the following:
SQL0429N The...
|
by: stash |
last post by:
I am trying to add a line to the db2cli.ini file. I want to add a
section with the line disableunicode=1. I am able to make the changes - but
I am not certain DB2 Connect is picking up the...
|
by: alinehp |
last post by:
Hi
I have an access violation in DB2SYS.dll at each ending of my
application.
This is a multithreaded application. Threads are created and managed by
Tomcat. One thread connects to DB2 base...
|
by: Jo |
last post by:
Hi.
I'm getting the following error when creating a table with 250 columns
.. I have tried creating it in a 32K tablespace , still the same issue.
Is this a limitation in DB2? I am using DB2...
|
by: David |
last post by:
Hi all,
something wrong with my code, it seems that the destructor function
has been called twice. I don't know why.here is my codes
Fixture.h
#ifndef _FIXTURE_H
#define _FIXTURE_H
#include...
|
by: Richard Harter |
last post by:
On Wed, 05 Nov 2008 18:58:39 +0000, Ben Bacarisse
<ben.usenet@bsb.me.ukwrote:
Your presentation is very clear, thank you. Of course you could
use a pair of pointers. The problem is that...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |