IBM DB2 Manual page 245

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
accountingInterval
Specifies whether DB2 accounting records are produced at commit points or on
termination of the physical connection to the data source. The data type of this
property is String.
If the value of accountingInterval is "COMMIT", and there are no open, held
cursors, DB2 writes an accounting record each time that the application
commits work. If the value of accountingInterval is "COMMIT", and the
application performs a commit operation while a held cursor is open, the
accounting interval spans that commit point and ends at the next valid
accounting interval end point. If the value of accountingInterval is not
"COMMIT", accounting records are produced on termination of the physical
connection to the data source.
The accountingInterval property sets the accounting-interval parameter for an
underlying RRSAF signon call. If the value of subsystem parameter
ACCUMACC is not NO, the ACCUMACC value overrides the
accountingInterval setting.
accountingInterval applies only to IBM Data Server Driver for JDBC and SQLJ
type 2 connectivity on DB2 for z/OS. accountingInterval is not applicable to
connections under CICS or IMS, or for Java stored procedures.
The accountingInterval property overrides the db2.jcc.accountingInterval
configuration property.
charOutputSize
Specifies the maximum number of bytes to use for INOUT or OUT stored
procedure parameters that are registered as Types.CHAR charOutputSize applies
only to IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2
for z/OS database servers.
Because DESCRIBE information for stored procedure INOUT and OUT
parameters is not available at run time, by default, the IBM Data Server Driver
for JDBC and SQLJ sets the maximum length of each character INOUT or OUT
parameter to 32767. For stored procedures with many Types.CHAR parameters,
this maximum setting can result in allocation of much more storage than is
necessary.
To use storage more efficiently, set charOutputSize to the largest expected
length for any Types.CHAR INOUT or OUT parameter.
charOutputSize has no effect on INOUT or OUT parameters that are registered
as Types.VARCHAR or Types.LONGVARCHAR. The driver uses the default length of
32767 for Types.VARCHAR and Types.LONGVARCHAR parameters.
The value that you choose for charOutputSize needs to take into account the
possibility of expansion during character conversion. Because the IBM Data
Server Driver for JDBC and SQLJ has no information about the server-side
CCSID that is used for output parameter values, the driver requests the stored
procedure output data in UTF-8 Unicode. The charOutputSize value needs to
be the maximum number of bytes that are needed after the parameter value is
converted to UTF-8 Unicode. UTF-8 Unicode characters can require up to three
bytes. (The euro symbol is an example of a three-byte UTF-8 character.) To
ensure that the value of charOutputSize is large enough, if you have no
information about the output data, set charOutputSize to three times the
defined length of the largest CHAR parameter.
clientUser
Specifies the current client user name for the connection. This information is
Chapter 7. JDBC and SQLJ reference information
229

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents