Skip to main content

ERRORCODE=-4499, The application server rejected establishment of the connection.


Technote (troubleshooting)


Problem(Abstract)


Attempt to connect to a database using Type 4 JCC driver fails with the following exception:

java.sql.SQLException:
[jcc][t4][2057][11264][3.53.95] The application server rejected establishment of the connection. An attempt was made to access a database, <database name>, which was either not found or does
not support transactions. ERRORCODE=-4499,
SQLSTATE=08004 DSRA0010E: SQL State = 08004, Error Code = -4,499

Cause

Using DCS DB alias or local alias name of the database in the connection string will cause this error.

Resolving the problem

The URL format for IBM Data Server Driver for JDBC and SQLJ type 4 connectivity is:

      "jdbc:db2://<server name>: <portnumber>/<database name>";

In the Type 4 JDBC JCC driver connection string used,
    • If the connection is to a DB2 for Linux,Unix,Windows server, the database name should be the Target database name in the database server, it should not be the local alias name cataloged in the client.
    • If the connection is to a DB2 for z/OS server, database name is the DB2 location name that is defined during installation. All characters in the DB2 location name must be upper-case characters. The IBM Data Server Driver for JDBC and SQLJ does not convert lower-case characters in the database value to upper-case for IBM Data Server Driver for JDBC and SQLJ type 4 connectivity.
      The location name can be found by executing the following SQL statement on the server:
        SELECT CURRENT SERVER FROM SYSIBM.SYSDUMMY1;

      The target database name can also be found from the DCS directory on the client using the command:
        db2 list dcs directory.

Related information

Type 4 JCC connection String:

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

DB2 for Linux, UNIX and Windows


Software version:
9.1, 9.5, 9.7


Operating system(s):
Windows


Reference #:
1443723


Modified date:
2011-06-29

Translate my page

Content navigation