DB2 Version 9.7 for Linux, UNIX, and Windows

LOB locators with the IBM Data Server Driver for JDBC and SQLJ

The IBM® Data Server Driver for JDBC and SQLJ can use LOB locators to retrieve data in LOB columns.

To cause JDBC to use LOB locators to retrieve data from LOB columns, you need to set the fullyMaterializeLobData property to false and set the progressiveStreaming property to NO (DB2BaseDataSource.NO in an application program).

The effect of fullyMaterializeLobData depends on whether the data source supports progressive streaming and the value of the progressiveStreaming property:

fullyMaterializeLobData has no effect on stored procedure parameters.

As in any other language, a LOB locator in a Java™ application is associated with only one data source. You cannot use a single LOB locator to move data between two different data sources. To move LOB data between two data sources, you need to materialize the LOB data when you retrieve it from a table in the first data source and then insert that data into the table in the second data source.