IBM Support

Disabling progressive streaming with CLI/JDBC applications

Troubleshooting


Problem

Problem in cli driver with progressive streaming (Abstract) --------------------------------------------------------------------------------------- Problems may occur in DB2 zOS servers that support the progressive streaming interface when retrieving LOB or XML data if the application is setting rowset size > 1 once the cursor is opened and driver require more rows than what is present in the current client buffer. Consider the application has the following function flow SQL_ATTR_ROW_ARRAY_SIZE is set to 1 SQLExecute SQLFetch SQLFetch SQL_ATTR_ROW_ARRAY_SIZE is set to 6 Assume at this point of time, the current client driver buffer has only 2 rows remaining. Then for the next sqlfetch, driver has to go to server to get the remaining 4 rows. This will cause the server to close all the mode 3 references in the first client buffer. So accessing the first 2 rows of the rowset using mode 3 reference will throw error SQL30073N. Problem in jdbc driver with progressive streaming (Abstract) ---------------------------------------------------------------------------------------- In case of JDBC applications with pure locators, the locator remains valid until the transaction is committed. However, with progressive references the lob can become inaccessible sometime after moving to the next row in the Result Set. It may or may not happen - depends on the size of the lob, and the number of rows buffered in the driver before the next fetch goes to the server. The following error is thrown when the application tries to access the LOB reference that is already closed [jcc][10120][11936][3.63.80002] Invalid operation: Lob is closed. ERRORCODE=-4470, SQLSTATE=null java.io.IOException: [jcc][10120][11936][3.63.80002] Invalid operation: Lob is closed. ERRORCODE=-4470, SQLSTATE=null

[{"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Programming Interface - JCC","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF025","label":"Platform Independent"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.7;9.5;9.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2026

UID

swg21329664