This article provides miscellaneous tips for using supported databases. See also the related links.
Always consult the product documentation for a list of the database brands and versions that are supported by your particular WebSphere Application Server version, edition, and FixPak.
Notes about various databases
export EXTSHM=ON
export EXTSHM=ON db2set DB2ENVLIST=EXTSHM
DBPortability W Could not create database table: "sessions" com.sybase.jdbc2.jdbc.SybSQLException: The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'database_name' databasewhere database_name is the name of the database for holding sessions.
If you encounter the error, issue the following commands at the Sybase command line:
use database_name go sp_dboption db,"ddl in tran ",true go
Sybase 12.0 does not support local transaction modes with a JTA enabled data source. To use a connection from a JTA enabled data source in a local transaction, install Sybase patch EBF9422.
Additional administrative tasks for specific databases
For your convenience, this article provides instructions for enabling some popular database drivers, and performing other administrative tasks often required to provide data access to applications running on WebSphere Application Server. These tasks are performed outside of the WebSphere Application Server administrative tools, often using the database product tools. Always refer to the documentation accompanying your database driver as the authoritative and complete source of driver information.
See the Supported hardware, software, and APIs for the latest information about supported databases, drivers, and operating systems.
Ensure that your operating system environment is set up to support JDBC 2.0. This action is required to use data sources created through WebSphere Application Server.
The following steps make it possible to find the appropriate JDBC 2.0 driver for use with WebSphere Application Server administration:
To enable JDBC 2.0 use on Windows NT systems:
SQLLIB\java12\usejdbc2.bat
Perform the steps once for each system.
To determine the JDBC level in use on your system:
SQLLIB\java12\inuse
SQLLIB\java11\inuseor no java11 directory exists.
if [ -f /usr/lpp/db2_07_01/java12/usejdbc2 ] ; then . /usr/lpp/db2_07_01/java12/usejdbc2 fi
$INSTHOME/sqllib/java12/db2java.zip
then JDBC 2.0 is in use.
If it contains
$INSTHOME/sqllib/java/db2java.zip
then JDBC 1.0 is in use.
Before starting WebSphere Application Server to host applications requiring data access, source the db2profile:
. ~db2inst1/sqllib/db2profile
where db2inst1 is the user created during DB2 installation.
Instructions are available for using Java Transaction API (JTA) drivers on particular operating systems. See your operating system documentation for more information.
The goal of this section is to provide information about the steps that make DB2 work well with applications utilizing XA classes -- that is, those whose dataSourceClasses implement javax.sql.XADataSource .
To enable JTA drivers for DB2 on Windows NT systems, follow these steps:
db2=> connect to mydb2jta db2=> bind db2home\bnd\@db2cli.lst db2=> bind db2home\bnd\@db2ubind.lst db2=> disconnect mydb2jta
where mydb2jta is the name of the database to enable for the JTA, and db2home is the DB2 root installation directory path (for example, D:\ProgramFiles\SQLLIB\bnd\@db2cli.lst ).
To enable JTA drivers on UNIX systems, follow these steps:
db2=> connect to mydb2jta db2=> bind db2home\bnd\@db2cli.lst db2=> bind db2home\bnd\@db2ubind.lst db2=> disconnect mydb2jta
For example, if $INSTHOME is /home/test, the path will be /home/test/sqllib/java12/db2java.zip
You can use the Oracle 8.1.7 thin driver for JTA two-phase support with the following restrictions:
To obtain the driver from the Oracle support Web site, visit:
http://technet.oracle.com/
You need to be a registered user for the Oracle Technology Network to get the driver from this site. Contact Oracle for access. After you have access download the 8.1.7 driver for the platforms you use and follow the instructions for installing the new driver.
To enable Java Transaction API (JTA) drivers for use with Sybase products on the AIX operating system, follow these steps:
isql -Usa -Ppassword -Sservername sp_configure "enable DTM", 1 go
isql -Usa -Ppassword -Sservername grant role dtm_tm_role to EJB go
Do not use a Sybase Java Transaction API (JTA) connection in an enterprise bean method with an unspecified
transaction context. A Sybase JTA connection does not support the local transaction
mode. The implication is that use the Sybase JTA connection in a global transaction context.
Related concepts
Data sources
Related reference
Vendor-specific data sources minimum required settings
Data access: Resources for