JDBC, DB2 and os/390

JDBC, DB2 and os/390

Post by Georg » Tue, 27 Feb 2001 17:59:30



We have a DB2 ver 6.1 on mainframe, and want to connect from client via
jdbc.
Is it possible to use COM.ibm.db2.jdbc.net.DB2Driver as type 4 thin driver,
without installing DB2 Connect, or is DB2 Connect mandatory when going to
mainframe DB2.
If installing DB2 Connect and using COM.ibm.db2.jdbc.app.DB2Driver, is it
then possible to use DB2 connect ver 7.1 towards as DB2 ver 6.1 on
mainframe, or must the DB2 connect be ver 6.1 as well?

 regards,
George

 
 
 

JDBC, DB2 and os/390

Post by Blair Kenneth Adamach » Tue, 27 Feb 2001 23:09:26


Either version of DB2 Connect can be used.  You do need DB2 Connect.  Support
for a Type 4 Java client to connect to OS/390 with no middleware is coming, but
not this year.

> We have a DB2 ver 6.1 on mainframe, and want to connect from client via
> jdbc.
> Is it possible to use COM.ibm.db2.jdbc.net.DB2Driver as type 4 thin driver,
> without installing DB2 Connect, or is DB2 Connect mandatory when going to
> mainframe DB2.
> If installing DB2 Connect and using COM.ibm.db2.jdbc.app.DB2Driver, is it
> then possible to use DB2 connect ver 7.1 towards as DB2 ver 6.1 on
> mainframe, or must the DB2 connect be ver 6.1 as well?

>  regards,
> George


 
 
 

JDBC, DB2 and os/390

Post by Georg » Wed, 28 Feb 2001 01:16:34


Why is there no type 4 driver available from IBM, when HIT Software
(www.hitsw.com) is providing this?
I quote from their website:

"HiT JDBC/DB2 accepts standard Java Database Connectivity (JDBC) function
calls, translates these into native DB2 SQL for high-performance, and
communicates with the DB2 server to retrieve, update, and insert DB2 data
(type 4 driver).
Leveraging the IBM Distributed Relational Database Architecture (DRDA)
protocol standard, HiT JDBC/DB2 is compact, uses native IBM server programs
and does not require any additional DB2 server software. DB2 UDB for OS/390
as well as other DB2 UDB servers are supported. HiT JDBC/DB2 works with any
operating system running JVM 1.02 or later, including Windows, different
flavors of Unix, Linux, IBM OS/400 and IBM OS/390"
regards,
George



> Either version of DB2 Connect can be used.  You do need DB2 Connect.
Support
> for a Type 4 Java client to connect to OS/390 with no middleware is
coming, but
> not this year.


> > We have a DB2 ver 6.1 on mainframe, and want to connect from client via
> > jdbc.
> > Is it possible to use COM.ibm.db2.jdbc.net.DB2Driver as type 4 thin
driver,
> > without installing DB2 Connect, or is DB2 Connect mandatory when going
to
> > mainframe DB2.
> > If installing DB2 Connect and using COM.ibm.db2.jdbc.app.DB2Driver, is
it
> > then possible to use DB2 connect ver 7.1 towards as DB2 ver 6.1 on
> > mainframe, or must the DB2 connect be ver 6.1 as well?

> >  regards,
> > George

 
 
 

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

Hi.  We are using WebSphere Advanced Edition on Solaris8.  Our Java
applications run in this environment, WebSphere AE 3.5.5 / Solaris 8.
 Usually, we pull our data from Sybase via their JDBC driver, jConnect.
 I am now trying to figure out how to make a connection to our other
database, DB2, which runs on OS/390.

We are trying to solve this using IBM's JDBC Drivers.  My understanding
thus far is this:

* IBM has type 2 and type 3 drivers -- app driver, and net driver,
respectively.  
 - The app driver is typically select and used if WebSphere (or other
JDBC application) runs on the same local box as the database server
- The net driver is used of the WebSphere / JDBC application does not
reside on the same box as the DB2 application.

We are NOT looking to purchase a type 4 driver from a third-party vendor.

I've gotten some suggestions that the best way to make your JDBC
connection to DB2 6.1 on OS/390 (if your JDBC application is NOT on the
same box as OS/390), that "DB2 Connect" should be installed on the
Java/JDBC-enabled application.  This is an accpetable solution for us,
only that I haven't gotten it to work yet.  We are using JDBC 2.0
drivers from db2java.zip (after running usejdbc2.bat) from sqllib on my
windows machine.  I have gotten my Java application to successfully
connect and perform queries against DB2 running on Windows 2000, but not
on OS/390.

My question is this (the piece that I am missing) -- what is the link
between JDBC and DB2 Connect?  How do I get my Java application to talk
to DB2 Connect?  Do I somehow define my datasource in DB2 Connect.  If
so, how do I "register" it so that when do a lookup on the datasource,
it is able to find the definition created in DB2 Connect?  Under this
suggested setup, would I be using the net or app driver?

Also, on a separate but related note, I see two services on my Windows
2000 machine running DB2 6.1 -- "JDBC Applet Server" and "JDBC Applet
Server -- Control Center" .  They are listening on their default ports
6789, and 6790 respectively.  These services must have gotten installed
along with DB2 when I chose DB2 as my admin repository during my
WebSphere install.  Now, my question.  What exactly is this JDBC Applet
Server?  Is this on Windows only?  I've noticed that my Java code (using
JDBC) fails as soon as I turn off this server (it doesn't seem to matter
whether it's the net driver or app driver).  What does this JDBC
AppletServer play, and does it fit into any of this OS/390 I'm trying to
solve?

I've looked through a lot of documentation and links, other references,
both on the web and on IBM's site.  

Any help is greatly appreciated.

Thanks,
Tommy Tam

2. A way to extract a stored procedure's SQL statement...

3. ORA-24371 data would not fit in current prefetch buffer

4. jdbc connection to DB2 5.1.2 on os/390

5. Aix spooler: Remote printer performance

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

7. Statistics column - _wa_sys_<column_name>_<xxxx>

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

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

10. os/390 db2 with jdbc?

11. DB2 on OS/390 and JDBC

12. JDBC/SQLJ Driver for DB2 OS/390