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 #389 background imageLoading...
Page #389 background image
The JDBC/SQLJ driver for z/OS support only non-scrollable and non-updatable
ResultSets.
Difference in URL syntax
The syntax of the url parameter in the DriverManager.getConnection method is
different for each driver. See the following topics for more information:
v ″Connect to a data source using the DriverManager interface with the IBM Data
Server Driver for JDBC and SQLJ″
Difference in error codes and SQLSTATEs returned for driver
errors
The IBM Data Server Driver for JDBC and SQLJ does not use existing SQLCODEs
or SQLSTATEs for internal errors, as the other drivers do. See ″Error codes issued
by the IBM Data Server Driver for JDBC and SQLJ″ and ″SQLSTATEs issued by the
IBM Data Server Driver for JDBC and SQLJ″.
The JDBC/SQLJ driver for z/OS returns SQLSTATE FFFFF when internal errors
occur.
Handling of null SQLSTATEs
By default, the IBM Data Server Driver for JDBC and SQLJ returns a null
SQLSTATE value when an SQLWarning or SQLException object contains a null
SQLSTATE value. The JDBC/SQLJ driver for z/OS returns SQLSTATE ″FFFFF″.To
override this incompatibility between the drivers, you can set the
db2.jcc.defaultSQLState configuration property for the IBM Data Server Driver for
JDBC and SQLJ. If you specify db2.jcc.defaultSQLState with no value, the IBM
Data Server Driver for JDBC and SQLJ returns ″FFFFF″ when the SQLWarning or
SQLException object has a null value for SQLSTATE.
Security mechanisms
The JDBC drivers have different security mechanisms.
For information on IBM Data Server Driver for JDBC and SQLJ security
mechanisms, see ″Security under the IBM Data Server Driver for JDBC and SQLJ″.
How connection properties are set
With IBM Data Server Driver for JDBC and SQLJ type 4 connectivity, you set
properties for a connection by setting the properties for the associated DataSource
or Connection object.
With IBM Data Server Driver for JDBC and SQLJ type 2 connectivity, you set
properties for a connection in one of these ways:
v You can set properties only for a connection by setting the properties for the
associated DataSource or Connection object.
v You can set driver-wide properties through an optional run-time properties file.
For the JDBC/SQLJ driver for z/OS, you set properties through the JDBC/SQLJ
run-time properties file.
Chapter 7. JDBC and SQLJ reference information 373

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