IBM DB2 Manual page 221

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
| |
Table 31. Default isolation levels for IDS databases
| |
Type of data source
| |
ANSI-compliant database with logging
| |
Database without logging
|
|
Non-ANSI-compliant database with
|
logging
|
|
|
|
|
|
v If the connection is to a DB2 for z/OS server, the databaseName value is the
DB2 location name that is defined during installation. All characters in this
value must be uppercase characters. You can determine the location name by
executing the following SQL statement on the server:
SELECT CURRENT SERVER FROM SYSIBM.SYSDUMMY1;
v If the connection is to a DB2 Database for Linux, UNIX, and Windows
server, the databaseName value is the database name that is defined during
installation.
v If the connection is to an IDS server, database is the database name. The
name is case-insensitive. The server converts the name to lowercase.
v If the connection is to an IBM Cloudscape server, the databaseName value 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"
If this property is not set, connections are made to the local site.
For IBM Data Server Driver for JDBC and SQLJ type 2 connectivity:
v The databaseName value is the location name for the data source. The
location name is defined in the SYSIBM.LOCATIONS catalog table.
If the databaseName property is not set, the connection location depends on
the type of environment in which the connection is made. If the connection
is made in an environment such as a stored procedure, CICS, or IMS
environment, where a DB2 connection to a location is previously established,
that connection is used. The connection URL for this case is
jdbc:default:connection:. If a connection to DB2 is not previously established,
the connection is to the local site. The connection URL for this case is
jdbc:db2os390: or jdbc:db2os390sqlj:.
defaultIsolationLevel
Specifies the default transaction isolation level for new connections. The data
type of this property is int. When defaultIsolationLevel is set on a DataSource,
all connections that are created from that DataSource have the default isolation
level that is specified by defaultIsolationLevel.
For DB2 data sources, the default is
java.sql.Connection.TRANSACTION_READ_COMMITTED.
For IBM Informix Dynamic Server (IDS) databases, the default depends on the
type of data source. The following table shows the defaults.
Default isolation level
java.sql.Connection.TRANSACTION_SERIALIZABLE
java.sql.Connection.TRANSACTION_READ_UNCOMMITTED
java.sql.Connection.TRANSACTION_READ_COMMITTED
deferPrepares
Specifies whether invocation of the Connection.prepareStatement method
results in immediate preparation of an SQL statement on the data source, or
whether statement preparation is deferred until the PreparedStatement.execute
method is executed. The data type of this property is boolean.
Chapter 7. JDBC and SQLJ reference information
205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents