IBM DB2 Manual page 257

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db2.jcc.allowSqljDuplicateStaticQueries
Specifies whether multiple open iterators on a single SELECT statement in an
SQLJ application are allowed under IBM Data Server Driver for JDBC and
SQLJ type 2 connectivity.
To enable this support, set db2.jcc.allowSqljDuplicateStaticQueries to YES or
true.
db2.jcc.charOutputSize
Specifies the maximum number of bytes to use for INOUT or OUT stored
procedure parameters that are registered as Types.CHAR.
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 db2.jcc.charOutputSize to the largest
expected length for any Types.CHAR INOUT or OUT parameter.
db2.jcc.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 db2.jcc.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
db2.jcc.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
db2.jcc.charOutputSize is large enough, if you have no information about the
output data, set db2.jcc.charOutputSize to three times the defined length of the
largest CHAR parameter.
db2.jcc.currentSchema or db2.jcc.override.currentSchema
Specifies the default schema name that is used to qualify unqualified database
objects in dynamically prepared SQL statements. This value of this property
sets the value in the CURRENT SCHEMA special register on the database
server. The schema name is case-sensitive, and must be specified in uppercase
characters.
db2.jcc.currentSQLID or db2.jcc.override.currentSQLID
Specifies:
v The authorization ID that is used for authorization checking on dynamically
prepared CREATE, GRANT, and REVOKE SQL statements.
v The owner of a table space, database, storage group, or synonym that is
created by a dynamically issued CREATE statement.
v The implicit qualifier of all table, view, alias, and index names specified in
dynamic SQL statements.
currentSQLID sets the value in the CURRENT SQLID special register on a DB2
for z/OS server. If the currentSQLID property is not set, the default schema
name is the value in the CURRENT SQLID special register.
Chapter 7. JDBC and SQLJ reference information
241

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents