DB2 Version 9.7 for Linux, UNIX, and Windows

JDBC and SQLJ support has been enhanced

The IBM® Data Server Driver for JDBC and SQLJ contains a number of major enhancements for Version 9.7.

The following enhancements are available in versions of the IBM Data Server Driver for JDBC and SQLJ that are shipped with DB2® for Linux, UNIX, and Windows.

Driver versions for Version 9.7 base enhancements

The following enhancements are available in version 3.57 or version 4.7 of the driver. Version 3.57 contains JDBC 3.0 and earlier functions, and version 4.7 contains JDBC 4.0 and earlier functions.

Named parameter markers support

The IBM Data Server Driver for JDBC and SQLJ adds the following new methods to support named parameter markers.

Parameter names in JDBC and SQLJ stored procedure calls support

In previous versions of the IBM Data Server Driver for JDBC and SQLJ, only forms of CallableStatement.registerOutParameter, CallableStatement.setXXX, and CallableStatement.getXXX methods that used parameterIndex were supported. With versions 3.57 and 4.7 of the driver, parameterName is also supported in those methods. parameterName is a name that is specified for a parameter in the stored procedure definition.

Alternatively, for JDBC applications, new syntax allows the application to map parameter markers in the CALL statement to the parameter names in the stored procedure definition. For example, in a JDBC application, CALL MYPROC (A=>?) maps a parameter marker to stored procedure parameter A.

For SQLJ applications, new syntax allows the application to map host variable names in the CALL statement to the parameter names in the stored procedure definition. For example, in an SQLJ application, CALL MYPROC (A=>:INOUT x) maps host variable x to stored procedure parameter A.

With the new syntax, you do not need to specify all parameters in the CALL statement. Unspecified parameters take the default values that are specified in the stored procedure definition.

Access to currently committed data support

The IBM Data Server Driver for JDBC and SQLJ adds the concurrentAccessResolution Connection or DataSource property. That property specifies whether the IBM Data Server Driver for JDBC and SQLJ requests that a read transaction can access a committed and consistent image of rows that are incompatibly locked by write transactions, if the data source supports accessing currently committed data, and the application isolation level is cursor stability (CS) or read stability (RS).

In addition, the IBM Data Server Driver for JDBC and SQLJ adds the DB2Connection.setDBConcurrentAccessResolution method, which lets you override the concurrentAccessResolution setting for new statements that are created on an existing Connection. The driver also provides the DB2Connection.getDBConcurrentAccessResolution method, which lets you check the concurrent access resolution setting.

Stored procedures calls with cursor type parameters support

Stored procedures that are created on DB2 for Linux, UNIX, and Windows can have OUT parameters of the cursor type. The IBM Data Server Driver for JDBC and SQLJ supports retrieval of data from OUT parameters of the cursor type in JDBC and SQLJ applications. For registration of OUT parameters with the cursor type, the IBM Data Server Driver for JDBC and SQLJ adds the DB2Types.CURSOR data type.

Statement concentrator support

DB2 for Linux, UNIX, and Windows statement concentrator support is the ability to bypass preparation of a statement when it is the same as a statement in the dynamic statement cache, except for literal values. If statement concentrator support is enabled on a DB2 for Linux, UNIX, and Windows data source, you can use the statementConcentrator Connection or DataSource property to specify whether the IBM Data Server Driver for JDBC and SQLJ uses the statement concentrator support.

In addition, the IBM Data Server Driver for JDBC and SQLJ adds the DB2Connection.setDBStatementConcentrator method, which lets you override the statementConcentrator setting for new statements that are created on an existing Connection. The driver also provides the DB2Connection.getDBStatementConcentrator method, which lets you check the statement concentrator setting.

Variable-length timestamp support

DB2 for Linux, UNIX, and Windows supports timestamp columns of the form TIMESTAMP(p), where the precision of the timestamp value, p, is between 0 and 12. The IBM Data Server Driver for JDBC and SQLJ adds support for update and retrieval of values in a TIMESTAMP(p) column in JDBC and SQLJ applications. To retrieve timestamp values with precision greater than 9, you need to use the constructors and methods in the IBM Data Server Driver for JDBC and SQLJ-only DBTimestamp class.

The maximum precision of a Java™ timestamp value is 9, so there can be a loss of precision during data retrieval if p>9.

Retrieving special register settings support

For connections to DB2 for z/OS® Version 8 or later, DB2 for Linux, UNIX, and Windows Version 8 or later, or DB2 UDB for iSeries® V5R3 or later, the IBM Data Server Driver for JDBC and SQLJ adds the DB2Connection.getJccSpecialRegisterProperties method. This method lets you retrieve the current special register settings for the data source, for special registers that the IBM Data Server Driver for JDBC and SQLJ supports.

Choice of output formats for DECIMAL or DECFLOAT data support

The decimalStringFormat Connection or DataSource property lets you choose the string format in which data from a DECIMAL or DECFLOAT column is retrieved, for an application that runs with the SDK for Java Version 1.5 or later. You can retrieve the data in the format that java.math.BigDecimal.toString method uses, which is the default. Alternatively, you can retrieve the data in the format that java.math.BigDecimal.toPlainString uses.

Compound SQL statements support

SQLJ statement clauses in SQLJ applications or SQL statements in JDBC applications can now include compound statements. A compound statement is a BEGIN-END block that includes SQL and procedural statements. All compound statements are executed dynamically, including those in SQLJ applications.

Savepoints support

The IBM Data Server Driver for JDBC and SQLJ supports setting of savepoints for connections to IBM Informix® data servers.

Batch insert operations support

The IBM Data Server Driver for JDBC and SQLJ adds the atomicMultiRowInsert Connection or DataSource property for connections to DB2 for Linux, UNIX, and Windows Version 8 and later data servers, DB2 for z/OS Version 8 and later data servers, or IBM Informix V11.10 and later data servers. The atomicMultiRowInsert property lets you specify whether batch insert operations that use the PreparedStatement interface have atomic or non-atomic behavior. Atomic behavior means that a batch operation succeeds only if all insert operations in the batch succeed. Non-atomic behavior, which is the default, means that insert operations succeed or fail individually.

Implicit closing of result sets enhancements

The queryCloseImplicit Connection or DataSource property specifies whether cursors are closed immediately after all rows are fetched. A new value of QUERY_CLOSE_IMPLICIT_COMMIT (3) is added, to specify that cursors are closed after all rows are fetched, and in addition, if the application is in autocommit mode, a commit request is sent to the data source.

Diagnostics for binding of SQLJ applications enhancements

When an SQLJ application is bound, and an SQL error or warning occurs, the following new diagnostic information is returned:
  • The SQL statement
  • The line number in the program of the SQL statement
  • The error or warning code and the SQLSTATE value
  • The error message

Client reroute enhancements

Client reroute support is enhanced in the following ways:

Statement.setMaxRows performance enhancements

For connections to DB2 for z/OS servers, the Statement.setMaxRows method has been modified to provide better performance.

Connections to Informix enhancements

For connections to Informix servers, the following enhancements are added:

Connections to DB2 for IBM i enhancements

For connections to DB2 for i 6.1 and later servers, the following enhancements are added:
  • Client info properties
  • DECFLOAT data type
  • Optimistic locking
  • Progressive streaming
  • User ID encryption, password encryption, and new password encryption security mechanisms
  • 128-byte cursor names
  • Support for methods for retrieval of automatically generated keys that require support for INSERT WITHIN SELECT SQL statements
For connections to DB2 for i5/OS™ V5R4 and later servers, the following enhancements are added:
  • eWLM Correlator support
  • IBM Data Server Driver for JDBC and SQLJ distributed transaction support
For connections to DB2 UDB for iSeries V5R3 and later servers, the following enhancements are added:
  • Support for the BINARY data type
  • Support for the DECIMAL data type with 63 digits of precision

Progressive streaming enhancements

For connections to DB2 for z/OS or DB2 for Linux, UNIX, and Windows servers, the DB2Connection.setDBProgressiveStreaming method can be used to change progressive streaming behavior after a connection to a data source is established. The DB2Connection.getDBProgressiveStreaming method can be used to determine the current progressive streaming behavior.

Global trace enhancements

Global trace settings can be changed without shutting down the driver.

You can set the db2.jcc.tracePolling global configuration property to indicate that when the following trace settings in the IBM Data Server Driver for JDBC and SQLJ global configuration file are changed while a driver instance is up, the driver modifies the trace behavior:
  • db2.jcc.override.traceLevel
  • db2.jcc.override.traceFile
  • db2.jcc.override.traceDirectory
  • db2.jcc.override.traceFileAppend

ResultSet.next behavior for DB2 connections enhancements

ResultSet.next behavior for DB2 connections can be more compatible with ResultSet.next behavior for connections with other database managers.

The allowNextOnExhaustedResultSet property can be set so that ResultSet.next behavior for a connection to DB2 for z/OS or DB2 for Linux, UNIX, and Windows is the same as ResultSet.next behavior for applications that are connected to an Oracle or MySQL data source. When the allowNextOnExhaustedResultSet property is set to DB2BaseDataSource.YES (1), and a forward-only cursor is positioned after the last row of a result set, a call to ResultSet.next returns false, instead of throwing an SQLException.

Automatically generated keys enhancements

Batched INSERT statements can return automatically generated keys.

If batch execution of a PreparedStatement object returns automatically generated keys, you can call the DB2PreparedStatement.getDBGeneratedKeys method to retrieve an array of ResultSet objects that contains the automatically generated keys. If a failure occurs during execution of a statement in a batch, you can use the DBBatchUpdateException.getDBGeneratedKeys method to retrieve any automatically generated keys that were returned.

Decimal floating-point (DECFLOAT) parameters enhancements

To enable registration of stored procedure OUT parameters as DECFLOAT, the com.ibm.db2.jcc.DB2Types.DECFLOAT JDBC data type is added.

Additional properties support

In addition to previously mentioned properties, the following Connection and DataSource properties are added:

fetchSize
Specifies the default fetch size for newly created Statement objects. This value is overridden by the Statement.setFetchSize method.
sslTrustStoreLocation
Specifies the name of the Java truststore on the client that contains the server certificate for an SSL connection.
sslTrustStorePassword
Specifies the password for the Java truststore on the client that contains the server certificate for an SSL connection.
timestampPrecisionReporting
Specifies whether trailing zeros in a timestamp value that is retrieved from a data source are truncated.

Sample program enhancements

You can use new DB2 Java sample programs as templates to create your own application programs.

FP1: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 1, the following enhancements are available in version 3.58 or version 4.8 of the driver. Version 3.58 contains JDBC 3.0 and earlier functions, and version 4.8 contains JDBC 4.0 and earlier functions.

FP1: Diagnostic information enhancements

Diagnostic information is traced to the Java standard error output stream when an exception is thrown with an SQL error code of -805. In Java database applications, -805 often indicates that all available IBM Data Server Driver for JDBC and SQLJ packages have been used because there are too many concurrently open statements. The diagnostic information contains a list of SQL strings that contributed to the exception.

FP1: Named parameter marker enhancements

JDBC named parameter marker support is enhanced to statement strings that contain SQL/PL blocks with named parameter markers.

FP1: Metadata for modules support

Methods are added to the DB2DatabaseMetaData class that let you retrieve information about procedures, functions, and user-defined types that are in modules.

FP2: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 2, the following enhancements are available in version 3.59 or version 4.9 of the driver. Version 3.59 contains JDBC 3.0 and earlier functions, and version 4.9 contains JDBC 4.0 and earlier functions.

FP2: Extended parameter information support

Methods and constants are added to the DB2PreparedStatement interface, and methods are added to the DB2ResultSet interface that let you assign the default value or no value to a table column or a result set row. The data server must support extended indicators before you can use these methods and constants.

FP2: Property changes

The following Connection and DataSource property support is changed:

atomicMultiRowInsert
Previously, the atomicMultiRowInsert property did not apply to SQLJ. Now atomicMultiRowInsert applies to SQLJ as well as JDBC.
fetchSize
Previously, for IBM Data Server Driver for JDBC and SQLJ type 4 connectivity, and for IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for Linux, UNIX, and Windows data sources, the fetchSize property affected only scrollable cursors. Now fetchSize affects all types of cursors.
queryDataSize
The maximum values for the queryDataSize property have changed. Those values vary, depending on the data server.

FP2: DB2ParameterMetaData enhancements

The new DB2ParameterMetaData.getProcedureParameterName method lets you retrieve the defined name of a parameter in an SQL CALL statement.

FP2: Additional properties support

The following Connection and DataSource properties are added:

allowNullResultSetForExecuteQuery
Specifies whether the IBM Data Server Driver for JDBC and SQLJ returns null when Statement.executeQuery, PreparedStatement.executeQuery, or CallableStatement.executeQuery is used to execute a CALL statement for a stored procedure that does not return any result sets.
connectionCloseWithInFlightTransaction
Specifies whether the IBM Data Server Driver for JDBC and SQLJ throws an SQLException or rolls back a transaction without throwing an SQLException when a connection is closed in the middle of the transaction.
interruptProcessingMode
Specifies the behavior of the IBM Data Server Driver for JDBC and SQLJ when an application calls the Statement.cancel method.
timestampOutputType
Specifies the type of object that the IBM Data Server Driver for JDBC and SQLJ returns from a ResultSet.getTimestamp, CallableStatement.getTimestamp, ResultSet.getObject, or CallableStatement.getObject call.

FP2: Batch support enhancements

Previously, a DisconnectException with error code -4499 was thrown for IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2 for z/OS if the size of an update or delete batch was greater than 32KB. This restriction no longer exists, and the exception is no longer thrown.

FP2: SQLJ bind option enhancements

SQLJ program preparation now supports the SQLERROR(CHECK) bind option.

FP2: Automatically generated keys enhancements

For connections to DB2 for Linux, UNIX, and Windows or DB2 for z/OS, searched UPDATE, searched DELETE, and MERGE statements can return automatically generated keys (also called auto-generated keys). For UPDATE, DELETE, or MERGE statements, an automatically generated key can be any column in the table that you are updating, regardless of whether the column is generated by the data server.

FP3: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 3, the following enhancements are available in version 3.61 or version 4.11 of the driver. Version 3.61 contains JDBC 3.0 and earlier functions, and version 4.11 contains JDBC 4.0 and earlier functions.

FP3: Additional properties support

The following Connection and DataSource property is added:

stripTrailingZerosForDecimalNumbers
Specifies whether the IBM Data Server Driver for JDBC and SQLJ removes trailing zeros when it retrieves data from a DECFLOAT, DECIMAL, or NUMERIC column. stripTrailingZerosForDecimalNumbers applies to JDBC and SQLJ.

FP3: Connections to DB2 for i enhancement

The IBM Data Server Driver for JDBC and SQLJ adds support for connections to DB2 for i 7.1.

FP3: DB2PreparedStatement enhancements

Two new DB2PreparedStatement methods are added.

getEstimateCost
Returns the estimated cost of an SQL statement after the statement is dynamically prepared.
getEstimateRowCount
Returns the estimated number of rows that can be returned by an SQL statement after the statement is dynamically prepared.

FP3: Caching and logging enhancements

New configuration property db2.jcc.outputDirectory lets you define a location in which the IBM Data Server Driver for JDBC and SQLJ stores the following files:

jccServerListCache.bin
Contains a copy of the primary and alternate server information for automatic client reroute in a DB2 pureScale® environment. This file allows primary and alternate server information to persist across JVM instances.
jccdiag.log
Contains diagnostic information that is written by the IBM Data Server Driver for JDBC and SQLJ.
connlicj.bin
Contains information about IBM Data Server Driver for JDBC and SQLJ license verification, for direct connections to DB2 for z/OS. The IBM Data Server Driver for JDBC and SQLJ writes this file when server license verification is successfully performed for a data server.

FP3: Table UDF support enhancements

The IBM Data Server Driver for JDBC and SQLJ now supports PARAMETER STYLE DB2GENERAL for Java table UDFs.

FP3: Connections to Informix enhancements

For connections to Informix servers, the following enhancements are added:

FP3: Connections to DB2 for z/OS enhancements

For connections to DB2 for z/OS Version 10 servers, the following enhancements are added:

FP4: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 4, the following enhancements are available in version 3.62 or version 4.12 of the driver. Version 3.62 contains JDBC 3.0 and earlier functions, and version 4.12 contains JDBC 4.0 and earlier functions.

FP4: Stored procedure calls with BOOLEAN parameter support

Stored procedures that are created on DB2 for Linux, UNIX, and Windows can have parameters of the BOOLEAN data type. IBM Data Server Driver for JDBC and SQLJ type 4 connectivity supports IN, OUT, or INOUT parameters of the BOOLEAN type in JDBC applications.

FP4: Stored procedure calls with ROW or ARRAY OF ROW parameter support

Stored procedures that are created on DB2 for Linux, UNIX, and Windows can have parameters of the ROW type or as an ARRAY type, in which the array elements have the ROW type. The IBM Data Server Driver for JDBC and SQLJ supports IN, OUT, or INOUT parameters of types ROW or ARRAY of ROW in JDBC applications. Applications use the Java java.sql.Struct objects for ROW parameters, and java.sql.Array objects for ARRAY of ROW parameters.

The IBM Data Server Driver for JDBC and SQLJ also introduces the DBStruct interface and DBStruct.getMetaData method for retrieving information about java.sql.Struct objects that are used for ROW parameters.

FP4: IBM Data Server Driver for JDBC and SQLJ diagnosis and trace enhancements

The following diagnosis and trace enhancements are added:

FP4: Retrieval of special values enhancements

The recommended method for retrieval of data from DECFLOAT columns is to retrieve the values into java.math.BigDecimal variables. However, you cannot use the ResultSet.getBigDecimal or ResultSet.getObject method to retrieve the value NaN, Infinity, or -Infinity from a DECFLOAT column in a JDBC program, or retrieve a DECFLOAT column value into a java.math.BigDecimal variable in an SQLJ clause of an SQLJ program.

Error code -4231 is introduced to indicate that NaN, Infinity, or -Infinity was retrieved from a DECFLOAT column using the ResultSet.getBigDecimal or ResultSet.getObject method. You can test for -4231 in your applications, and retry data retrieval with the ResultSet.getDouble method.

FP4: Additional properties support

The following Connection and DataSource properties are added:

queryTimeoutInterruptProcessingMode
Specifies whether the IBM Data Server Driver for JDBC and SQLJ cancels the SQL statement or closes the underlying connection when the query timeout interval for a Statement object expires.

The following global configuration properties are added:

db2.jcc.sqljToolsExitJVMOnCompletion
Specifies whether the Java programs that underlie SQLJ tools such as db2sqljcustomize and db2sqljbind issue the System.exit call.

FP5: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 5, the following enhancements are available in version 3.63 or version 4.13 of the driver. Version 3.63 contains JDBC 3.0 or earlier functions. Version 4.13 contains JDBC 4.0 or later functions, and JDBC 3.0 or earlier functions.

FP5: JDBC 4.1 support

IBM Data Server Driver for JDBC and SQLJ version 4.13 supports the following new JDBC 4.1 methods:

Class Method
java.sql.CallableStatement

getObject(int parameterIndex,
java.lang.Class<T> type)

getObject(java.lang.String parameterName,
java.lang.Class<T> type)

java.sql.Connection abort(java.util.concurrent.Executor executor)
setSchema((java.lang.String schema)

setNetworkTimeout(java.util.concurrent.Executor executor,
int milliseconds)

getSchema()
getNetworkTimeout()
java.sql.DatabaseMetaData generatedKeyAlwaysReturned()

getPseudoColumns (java.lang.String catalog,
java.lang.String schemaPattern,
java.lang.String tableNamePattern,
java.lang.String columnNamePattern)

java.sql.Driver getParentLogger()
java.sql.Statement abort(java.util.concurrent.Executor executor)
closeOnCompletion()
isCloseOnCompletion()
javax.sql.CommonDataSource getParentLogger()

IBM Data Server Driver for JDBC and SQLJ version 4.13 supports the following JDBC 4.1 changes to JDBC methods:

Class Method Change
java.sql.DatabaseMetaData getColumns In JDBC 4.0 or earlier, the result set that getColumns returns contains a column named SCOPE_CATLOG. In JDBC 4.1 or later, the name of that column is SCOPE_CATALOG.

IBM Data Server Driver for JDBC and SQLJ version 4.13 supports the following JDBC 4.1 changes to data type mappings for updating table columns:

Java data type Database data type
java.math.BigInteger BIGINT
java.util.Date CHAR, VARCHAR, DATE, TIME or TIMESTAMP
java.util.Calendar CHAR, VARCHAR, DATE, TIME or TIMESTAMP

IBM Data Server Driver for JDBC and SQLJ version 4.13 supports the following JDBC 4.1 escape syntax, which you can use to limit the number of rows that are retrieve from a table:

{limit integer}

For example the excape clause in the following query tells JDBC to return at most 20 rows from the EMPLOYEE table:

stmt.executeQuery("SELECT EMPNO FROM EMPLOYEE {limit 20}");

FP5: Trace enhancements

Circular tracing is introduced for the IBM Data Server Driver for JDBC and SQLJ. Circular tracing means that there are a fixed number of trace output data sets, and that each data set has a fixed size. New trace data overwrites old trace data when all data sets are full. Circular tracing is an alternative to sequential tracing, which results in trace output files that grow indefinitely.

FP5: Statement caching enhancements

IBM Data Server Driver for JDBC and SQLJ internal statement caching can improve the performance of Java database applications. Internal statement caching is introduced for connections that use the java.sql.DriverManager or com.ibm.db2.jcc.DB2SimpleDataSource interfaces. Previously, internal statement caching was available only for connections that used the javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource interfaces.

FP5: Enhancements to stored procedure calls with ROW or ARRAY OF ROW parameter support

In DB2 Version 9.7 Fix Pack 4, the IBM Data Server Driver for JDBC and SQLJ added support for IN, OUT, or INOUT parameters of types ROW or ARRAY of ROW in JDBC applications. In DB2 Version 9.7 Fix Pack 5, the IBM Data Server Driver for JDBC and SQLJ adds support for the following types of nesting:

FP5: Additional properties support

The following Connection and DataSource properties are added:

keepAliveTimeout
Specifies the maximum time in seconds before each TCP KeepAlive signal is sent to the data server. The default is 15 seconds. A value of 0 means that the timeout value is the default system timeout value.

The IBM Data Server Driver for JDBC and SQLJ uses the TCP/IP protocol to communicate with data servers. The keepAliveTimeout property is used to adjust the TCP/IP KeepAlive parameters on the client, to prevent potential failover issues caused by timeouts within the TCP/IP layer.

com.ibm.db2.jcc.DB2SimpleDataSource.maxStatements
Controls the internal statement cache that is associated with a Connection object. Setting maxStatements to a positive value for a new connection enables the internal statement cache, and specifies the maximum number of statements in the cache.
traceFileCount
Specifies the maximum number of trace files, for circular tracing.
traceFileSize
Specifies the maximum size of each trace file, for circular tracing.
traceOption
Specifies whether sequential tracing or circular tracing is done.
useJDBC41DefinitionForGetColumns
Specifies whether the IBM Data Server Driver for JDBC and SQLJ honors the JDBC 4.1 change of getColumns result set column name SCOPE_CATLOG to SCOPE_CATALOG.

The following global configuration properties are added:

db2.jcc.traceFileCount
Specifies the maximum number of trace files, for circular tracing. This property provides the default for Connection and DataSource property traceFileCount.
db2.jcc.traceFileSize
Specifies the maximum size of each trace file, for circular tracing. This property provides the default for Connection and DataSource property traceFileSize.
db2.jcc.traceOption
Specifies whether sequential tracing or circular tracing is done. This property provides the default for Connection and DataSource property traceOption.

FP5: Connections to DB2 for z/OS enhancements

For connections to DB2 for z/OS, the following enhancement is added:

FP5: Connections to DB2 for IBM i enhancements

For connections to DB2 for i 7.1 and later servers, the following enhancements are added to the IBM Data Server Driver for JDBC and SQLJ:
  • Three-part name support
  • XML data type support
  • ARRAY type support
  • SSL authentication support
  • AES encryption support

FP6: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 6, the following enhancements are available in version 3.64 or version 4.14 of the driver. Version 3.64 contains JDBC 3.0 or earlier functions. Version 4.14 contains JDBC 4.0 or later functions, and JDBC 3.0 or earlier functions.

FP6: Connections to DB2 for z/OS enhancements

For connections to DB2 for z/OS, the following enhancements are added:

FP6: Additional properties support

The following Connection and DataSource properties are added:

connectionTimeout
Specifies the maximum time in seconds that the IBM Data Server Driver for JDBC and SQLJ waits for a reply from the data server when the driver attempts to establish a connection to the data server. This property performs the same function as IBM Data Server Driver configuration keyword ConnectTimeout.
implicitRollbackOption
Specifies the actions that the IBM Data Server Driver for JDBC and SQLJ takes when a transaction encounters a deadlock or a timeout.
memberConnectTimeout
Specifies the amount of time in seconds before an attempt to open a socket to a member of a DB2 for z/OS data sharing group, DB2 pureScale instance, or IBM Informix high availability cluster fails. This property performs the same function as IBM Data Server Driver configuration keyword MemberConnectTimeout.

FP7: Driver versions enhancements

In DB2 for Linux, UNIX, and Windows Version 9.7 Fix Pack 7, the following enhancements are available in version 3.65 or version 4.15 of the driver. Version 3.65 contains JDBC 3.0 or earlier functions. Version 4.15 contains JDBC 4.0 or later functions, and JDBC 3.0 or earlier functions.

FP7: Connections to DB2 for z/OS enhancements

For connections to DB2 for z/OS, the following enhancements are added:

FP7: Additional properties support

The following Connection and DataSource properties are added:

commandTimeout
Specifies the maximum time in seconds that an application that runs under the IBM Data Server Driver for JDBC and SQLJ waits for a response to any kind of request to the data server before the driver throws an exception.
connectionTimeout
Specifies the maximum time in seconds that the IBM Data Server Driver for JDBC and SQLJ waits for a reply from the data server when the driver attempts to establish a connection to the data server. This property performs the same function as IBM Data Server Driver configuration keyword ConnectTimeout.
memberConnectTimeout
Specifies the amount of time in seconds before an attempt to open a socket to a member of a DB2 for z/OS data sharing group, DB2 pureScale instance, or IBM Informix high availability cluster fails. This property performs the same function as IBM Data Server Driver configuration keyword MemberConnectTimeout.