Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    2

    Unanswered: com.ibm.db2.jcc.b.SQLException in getConnection

    Hi,
    I'm trying to establish a connection to DB2 V8.1 in unix, but I keep getting error:

    com.ibm.db2.jcc.b.SQLException: DB2C_DB2INST1
    at com.ibm.db2.jcc.b.l.a(l.java:1469)
    at com.ibm.db2.jcc.a.bb.h(bb.java:541)
    at com.ibm.db2.jcc.a.bb.e(bb.java:400)
    at com.ibm.db2.jcc.a.bb.a(bb.java:225)
    at com.ibm.db2.jcc.a.bb.a(bb.java:62)
    at com.ibm.db2.jcc.a.b.a(b.java:893)
    at com.ibm.db2.jcc.a.b.a(b.java:439)
    at com.ibm.db2.jcc.a.b.a(b.java:293)
    at com.ibm.db2.jcc.a.b.<init>(b.java:207)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:2 44)
    at java.sql.DriverManager.getConnection(DriverManager .java:517)
    at java.sql.DriverManager.getConnection(DriverManager .java:199)
    at DBConn.getConnection(DBConn.java:141)
    at DBConn.execute(DBConn.java:94)
    at DBConn.main(DBConn.java:150)


    I pointed my url to port 50000 db2c_db2inst1.

    Any suggestion?

  2. #2
    Join Date
    Dec 2003
    Posts
    2
    I'm using db2jcc.jar (Type 4).
    This is exactly what I get:

    com.ibm.db2.jcc.c.SQLException: DB2 SQL error: SQLCODE: -1001, SQLSTATE: 2E000, SQLERRMC: DB2C_DB2INST1
    at com.ibm.db2.jcc.c.l.a(l.java:1546)
    at com.ibm.db2.jcc.a.bc.h(bc.java:541)
    at com.ibm.db2.jcc.a.bc.e(bc.java:400)
    at com.ibm.db2.jcc.a.bc.a(bc.java:225)
    at com.ibm.db2.jcc.a.bc.a(bc.java:62)
    at com.ibm.db2.jcc.a.b.a(b.java:893)
    at com.ibm.db2.jcc.a.b.a(b.java:439)
    at com.ibm.db2.jcc.a.b.a(b.java:293)
    at com.ibm.db2.jcc.a.b.<init>(b.java:207)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:2 44)
    at java.sql.DriverManager.getConnection(DriverManager .java:517)
    at java.sql.DriverManager.getConnection(DriverManager .java:199)
    at DBConn.getConnection(DBConn.java:141)
    at DBConn.execute(DBConn.java:94)
    at DBConn.main(DBConn.java:150)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •