Common Ibm Data Server Driver For Jdbc And Sqlj Properties For Db2 For Z/Os And Ids - IBM DB2 Manual

Table of Contents

Advertisement

|
|
|
Common IBM Data Server Driver for JDBC and SQLJ
properties for DB2 for z/OS and IDS
|
|
|
224
Application Programming Guide and Reference for Java
positive integer
Enables the internal statement cache for a PooledConnection, and
specifies the number of statements that the IBM Data Server Driver for
JDBC and SQLJ keeps open in the cache.
0 or negative integer
Disables internal statement caching for the PooledConnection. 0 is the
default.
maxStatements controls the internal statement cache that is associated with a
PooledConnection only when the PooledConnection object is created.
maxStatements has no effect on caching in an already existing
PooledConnection object.
maxStatements applies only to IBM Data Server Driver for JDBC and SQLJ
type 2 connectivity on DB2 for z/OS, and to IBM Data Server Driver for JDBC
and SQLJ type 4 connectivity.
Related information
IBM Data Studio Information Center
Some of the IBM Data Server Driver for JDBC and SQLJ properties apply to IBM
Informix Dynamic Server (IDS) and DB2 for z/OS database servers.
Properties that apply to IDS and DB2 for z/OS are:
enableConnectionConcentrator
Indicates whether the connection concentrator function of the IBM Data Server
Driver for JDBC and SQLJ is enabled. The connection concentrator function is
available only for connections to DB2 for z/OS servers.
The data type of enableConnectionConcentrator is boolean. The default is
false. However, if enableSysplexWLB is set to true, the default is true.
keepDynamic
Specifies whether the data source keeps already prepared dynamic SQL
statements in the dynamic statement cache after commit points so that those
prepared statements can be reused. The data type of this property is int. Valid
values are DB2BaseDataSource.YES (1) and DB2BaseDataSource.NO (2).
If the keepDynamic property is not specified, the keepDynamic value is
DB2BaseDataSource.NOT_SET (0). If the connection is to a DB2 for z/OS server,
caching of dynamic statements for a connection is not done if the property is
not set. If the connection is to an IDS data source, caching of dynamic
statements for a connection is done if the property is not set.
keepDynamic is used with the DB2Binder -keepdynamic option. The
keepDynamic property value that is specified must match the -keepdynamic
value that was specified when DB2Binder was run.
For a DB2 for z/OS database server, dynamic statement caching can be done
only if the EDM dynamic statement cache is enabled on the data source. The
CACHEDYN subsystem parameter must be set to DB2BaseDataSource.YES to
enable the dynamic statement cache.
maxTransportObjects
Specifies the maximum number of transport objects that can be used for all
connections with the associated DataSource object. The IBM Data Server Driver

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents