IBM DB2 Manual page 264

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
248
Application Programming Guide and Reference for Java
driver does the conversion, and the target CCSID is a single-byte
CCSID, the driver needs to allocate only the maximum number of
characters in the input data.
For example, any of the following settings for db2.jcc.sendCharInputsUTF8
causes the IBM Data Server Driver for JDBC and SQLJ to convert input
character strings to UTF-8, rather than the target encoding, before sending the
data to the data source:
db2.jcc.sendCharInputsUTF8=yes
db2.jcc.sendCharInputsUTF8=true
db2.jcc.sendCharInputsUTF8=1
db2.jcc.sqljUncustomizedWarningOrException
Specifies the action that the IBM Data Server Driver for JDBC and SQLJ takes
when an uncustomized SQLJ application runs.
db2.jcc.sqljUncustomizedWarningOrException can have the following values:
0
The IBM Data Server Driver for JDBC and SQLJ does not throw a
Warning or Exception when an uncustomized SQLJ application is run.
This is the default.
1
The IBM Data Server Driver for JDBC and SQLJ throws a Warning
when an uncustomized SQLJ application is run.
2
The IBM Data Server Driver for JDBC and SQLJ throws an Exception
when an uncustomized SQLJ application is run.
db2.jcc.traceDirectory or db2.jcc.override.traceDirectory
Enables the IBM Data Server Driver for JDBC and SQLJ trace for Java driver
code, and specifies a directory into which trace information is written. These
properties do not apply to IBM Data Server Driver for JDBC and SQLJ type 2
connectivity on DB2 for z/OS. When db2.jcc.override.traceDirectory is
specified, trace information for multiple connections on the same DataSource is
written to multiple files.
When db2.jcc.override.traceDirectory is specified, a connection is traced to a
file named file-name_origin_n.
v n is the nth connection for a DataSource.
v If neither db2.jcc.traceFileName nor db2.jcc.override.traceFileName is
specified, file-name is traceFile. If db2.jcc.traceFileName or
db2.jcc.override.traceFileName is also specified, file-name is the value of
db2.jcc.traceFileName or db2.jcc.override.traceFileName.
v origin indicates the origin of the log writer that is in use. Possible values of
origin are:
cpds
The log writer for a DB2ConnectionPoolDataSource object.
driver The log writer for a DB2Driver object.
global The log writer for a DB2TraceManager object.
sds
The log writer for a DB2SimpleDataSource object.
xads
The log writer for a DB2XADataSource object.
The db2.jcc.override.traceDirectory property overrides the traceDirectory
property for a Connection or DataSource object.
For example, specifying the following setting for db2.jcc.override.traceDirectory
enables tracing of the IBM Data Server Driver for JDBC and SQLJ Java code to
files in a directory named /SYSTEM/tmp:
db2.jcc.override.traceDirectory=/SYSTEM/tmp

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents