IBM DB2 Manual page 415

Table of Contents

Advertisement

SELECT CURRENT SERVER FROM SYSIBM.SYSDUMMY1;
If the connection is to a DB2 Database for Linux, UNIX, and Windows
server, database is the database name that is defined during installation.
If the connection is to an IBM Cloudscape server, the database is the
fully-qualified name of the file that contains the database. This name
must be enclosed in double quotation marks ("). For example:
"c:/databases/testdb"
property=value;
A property for the JDBC connection.
property=value;
A property for the JDBC connection.
-datasource JNDI-name
Specifies the logical name of a DataSource object that was registered with
JNDI. The DataSource object represents the data source for which the profile is
to be customized. A connection is established to the data source if the
-automaticbind or -onlinecheck option is specified as YES or defaults to YES.
Specifying -datasource is an alternative to specifying -url. The DataSource
object must represent a connection that uses IBM Data Server Driver for JDBC
and SQLJ type 4 connectivity.
-user user-ID
Specifies the user ID to be used to connect to the data source for online
checking or binding a package. You must specify -user if you specify -url. You
must specify -user if you specify -datasource, and the DataSource object that
JNDI-name represents does not contain a user ID.
-password password
Specifies the password to be used to connect to the data source for online
checking or binding a package. You must specify -password if you specify -url.
You must specify -password if you specify -datasource, and the DataSource
object that JNDI-name represents does not contain a password.
-automaticbind YES|NO
Specifies whether the customizer binds DB2 packages at the data source that is
specified by the -url parameter.
The default is YES.
The number of packages and the isolation levels of those packages are
controlled by the -rootpkgname and -singlepkgname options.
Before the bind operation can work, the following conditions need to be met:
v TCP/IP and DRDA must be installed at the target data source.
v Valid -url, -username, and -password values must be specified.
v The -username value must have authorization to bind a package at the
target data source.
-pkgversion AUTO|version-id
Specifies the package version that is to be used when packages are bound at
the server for the serialized profile that is being customized. db2sqljcustomize
stores the version ID in the serialized profile and in the DB2 package.
Run-time version verification is based on the consistency token, not the version
name. To automatically generate a version name that is based on the
consistency token, specify -pkgversion AUTO.
The default is that there is no version.
Chapter 7. JDBC and SQLJ reference information
399

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents