EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #433 background imageLoading...
Page #433 background image
You can set configuration properties in the following ways:
v Set the configuration properties as Java system properties. Those settings
override any other settings.
For stand-alone Java applications, you can set the configuration properties as
Java system properties by specifying -Dproperty=value for each configuration
property when you execute the java command.
For Java stored procedures or user-defined functions, you can set the
configuration properties by specifying -Dproperty=value for each configuration
property in a file whose name you specify in the JVMPROPS option. You specify
the JVMPROPS options in the ENVAR option of the Language Environment
options string. The Language Environment options string is in a data set that is
specified by the JAVAENV DD statement in the WLM address space startup
procedure.
v Set the configuration properties in a resource whose name you specify in the
db2.jcc.propertiesFile Java system property. For example, you can specify an
absolute path name for the db2.jcc.propertiesFile value.
For stand-alone Java applications, you can set the configuration properties by
specifying the -Ddb2.jcc.propertiesFile=path option when you execute the java
command.
For Java stored procedures or user-defined functions, you can set the
configuration properties by specifying the -Ddb2.jcc.propertiesFile=path/
properties-file-name option in a file whose name you specify in the JVMPROPS
option. You specify the JVMPROPS options in the ENVAR option of the
Language Environment options string. The Language Environment options
string is in a data set that is specified by the JAVAENV DD statement in the
WLM address space startup procedure.
v Set the configuration properties in a resource named
DB2JccConfiguration.properties. A standard Java resource search is used to find
DB2JccConfiguration.properties. The IBM Data Server Driver for JDBC and SQLJ
searches for this resource only if you have not set the db2.jcc.propertiesFile Java
system property.
DB2JccConfiguration.properties can be a stand-alone file, or it can be included in
a JAR file. If DB2JccConfiguration.properties is a stand-alone file, the contents
are automatically converted to Unicode. If you include
DB2JccConfiguration.properties in a JAR file, you need to convert the contents to
Unicode before you put them in the JAR file.
If DB2JccConfiguration.properties is a stand-alone file, the path for
DB2JccConfiguration.properties must be in the following places:
– For stand-alone Java applications: Include the directory that contains
DB2JccConfiguration.properties in the CLASSPATH concatenation.
– For Java stored procedures or user-defined functions: Include the directory that
contains DB2JccConfiguration.properties in the CLASSPATH concatenation in
the ENVAR option of the Language Environment options string. The
Language Environment options string is in a data set that is specified by the
JAVAENV DD statement in the WLM address space startup procedure.
If DB2JccConfiguration.properties is in a JAR file, the JAR file must be in the
CLASSPATH concatenation.
Recommendation: Because support for com/ibm/db2/jcc/
DB2JccConfiguration.properties as the default resource name for configuration
properties is deprecated, use DB2JccConfiguration.properties instead.
Chapter 8. Installing the IBM Data Server Driver for JDBC and SQLJ 417

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability