Newbie Question : JDBC remote connection to DB2 on OS/390

Newbie Question : JDBC remote connection to DB2 on OS/390

Post by fso » Thu, 25 Apr 2002 01:38:47



Hi,

We are currently migrating an application from Oracle to DB2 running on
OS/390. It is my first time to connect remotely to a database on a
mainframe using JDBC.

Currently, I am using a type 4 JDBC DB2 drivers from Merant-Datadirect.
I am able to get a database connection but when I tried to execute a
simple "select" statement I always get this message :

java.sql.SQLException: [MERANT][DB2 JDBC Driver][DB2]PROGRAM NAME
DDB3.CD352AA.A.4A44424334444232 NOT FOUND IN PLAN DISTSERV

I even tried the .net DB2 driver from DB2 Connect/IBM but I get a
different message :

   trying driver[className=COM.ibm.db2.jdbc.net.DB2Driver,DB2Driver:
   JDBC 2.0 n010415] Server 153.2.18.133 port 6010 source DDB3
   getConnection failed: COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC
   Driver] CLI0615E Error receiving from socket, server is not
   responding. SQLSTATE=08S01 COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC
   Driver] CLI0615E Error receiving from socket, server is not
   responding. SQLSTATE=08S01 at COM.ibm.db2.jdbc.net.SQLExceptionGener-
   ator.throwReceiveError(SQLExceptionGenerator.java:457) at
   COM.ibm.db2.jdbc.net.DB2Request.receive(DB2Request.java:703) at
   COM.ibm.db2.jdbc.net.DB2Request.sendAndRecv(DB2Request.java:563) at
   COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java:341)
   at COM.ibm.db2.jdbc.net.DB2Connection.SQLConnect(DB2Connection.java:-
   296) at
   COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Connection.java:281) at
   COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Connection.java:200) at
   COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.java:215) at
   java.sql.DriverManager.getConnection(DriverManager.java:517) at
   java.sql.DriverManager.getConnection(DriverManager.java:177) at
   DB2Test.DBConnect.getConnection(DBConnect.java:54) at
   DB2Test.DBConnect.main(DBConnect.java:63)
   java.lang.NullPointerException at
   DB2Test.DBConnect.main(DBConnect.java:64) Exception in thread "main"

I don't know if there is something worng or missing with my JDBC URL or
need to be done on the DB2/Mainframe side for me to connect through JDBC
and execute sql statements.

Thanks in advance.

--
www.MainFrameForum.com - USENET Gateway

 
 
 

1. jdbc connection to DB2 5.1.2 on os/390

Hi,
 In my department there is DB2 5.1.2 running on os/390, now my boss
ask me if I can write a Java program (will run on AIX) and use JDBC to
connect to this remote DB2 server.
 I did a lot of JDBC to oracle, but never tried in DB2.
 Now my question is Can I just get a DB2 JDBC driver and use it to
connect to this DB2 5.1.2 server running on OS/390?
 What info do I need for JDBC configuration? i.e: hostname,
portnumber, database name etc...
 Please advice.

Thanks.
David

2. Alter table

3. JDBC connection to DB2 on OS/390 from Solaris

4. Free Object

5. using JDBC to DB2 on OS/390 , and JDBC Applet Server

6. Mitarbeiter gesucht - fuer anspruchsvolle Softwarentwicklungen

7. Regular table corruption

8. DB2 OS/390 crashing after connection via DB2 Connect

9. how to insert/select from clob/blob column in db2 7.1/7.2 OS/390 in JDBC

10. os/390 db2 with jdbc?

11. DB2 on OS/390 and JDBC

12. JDBC, DB2 and os/390