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 #426 background imageLoading...
Page #426 background image
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.
-user user-ID
Specifies the user ID to be used to connect to the data source for binding the
package.
-password password
Specifies the password to be used to connect to the data source for binding the
package.
-bindoptions options-string
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.
-staticpositioned NO|YES
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.
-genDBRM
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.
-DBRMDir directory-name
When -genDBRM is specified, -DBRMDir specifies the local directory into
which db2sqljbind puts the generated DBRM files. The default is the current
directory.
410 Application Programming Guide and Reference for Java
â„¢

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