IBM DB2 Manual page 426

Table of Contents

Advertisement

-user user-ID
-password password
-bindoptions options-string
-staticpositioned NO|YES
-genDBRM
-DBRMDir directory-name
410
Application Programming Guide and Reference for Java
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.
Specifies the user ID to be used to connect to the data source for binding the
package.
Specifies the password to be used to connect to the data source for binding the
package.
Specifies a list of options, separated by spaces. These options have the same
function as DB2 precompile and bind options with the same names. If you are
preparing your program to run on a DB2 for z/OS system, specify DB2 for
z/OS options. If you are preparing your program to run on a DB2 Database for
Linux, UNIX, and Windows system, specify DB2 Database for Linux, UNIX,
and Windows options.
Notes on bind options:
v Specify VERSION only if the following conditions are true:
– If you are binding a package at a DB2 Database for Linux, UNIX, and
Windows system, the system is at Version 8 or later.
– You rerun the translator on a program before you bind the associated
package with a new VERSION value.
Important: Specify only those program preparation options that are
appropriate for the data source at which you are binding a package. Some
values and defaults for the IBM Data Server Driver for JDBC and SQLJ are
different from the values and defaults for DB2.
For iterators that are declared in the same source file as positioned UPDATE
statements that use the iterators, specifies whether the positioned UPDATEs
are executed as statically bound statements. The default is NO. NO means that
the positioned UPDATEs are executed as dynamically prepared statements.
This value must be the same as the -staticpositioned value for the previous
db2sqljcustomize invocation for the serialized profile.
Specifies that db2sqljbind generates database request modules (DBRMs) from
the serialized profile, and that db2sqljbind does not perform remote bind
operations.
-genDBRM applies to programs that are to be run on DB2 for z/OS database
servers only.
When -genDBRM is specified, -DBRMDir specifies the local directory into
which db2sqljbind puts the generated DBRM files. The default is the current
directory.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents