Version 7 went (and is going through) about 12 revisions. There will be
a third number that indicates the correct 'fixpak' so the version will
come out as 7.1.X. Everything after 7.1.4 is actually 7.2. There are
some java tools around that will give you the versions of the database
you are talking to and the driver you are using to communicate. In any
case, you need to have the db2java.zip on the client at the same level
as on the server. Since this is really a jar file, the easiest way is to
get the db2java.zip off the server and ftp it to the client or make sure
that is the file being picked up by your app. Don't worry if it is a
different OS, this is java after all.
You also need to make sure you have chosen the db2java.zip at the right
jdbc level. In an effort to please everyone IBM shipped both jdbc 1.1
and jdbc 1.2 files, each in their own directories. For whatever reason
they made 1.1 default. That means that you may run into 'not supported'
errors if you don't make sure you are using the right files(on both
client and server). Under windows and aix, script/bat files were
included to fix it so the path picked up the right version. I assume
they did so in all their implementations. I haven't seen ver 8 of DB2
but I think they abandoned this peculiarity. The following pages give
some info and links:
> http://www.datadirect-technologies.com/download/docs/slnk/devref/datatype.htm
> http://www-106.ibm.com/developerworks/db2/library/techarticle/0203zikopoulos/020
3zikopoulos.html
> http://www-1.ibm.com/support/docview.wss?rs=71&org=SW&doc=1000797&loc=en-us
> http://www-306.ibm.com/software/data/db2/udb/ad/v7/java.html
> The Database-Version is 7.2
> If I decompile the DB2Driver it tells me that the Major-Version is 7 and
[quoted text clipped - 59 lines]
>>>>
>>>>P.S.: I prefer Oracle, too - but our customer doesn't :-(
Robert Klemme - 19 Jan 2004 11:34 GMT
> Version 7 went (and is going through) about 12 revisions. There will be
> a third number that indicates the correct 'fixpak' so the version will
[quoted text clipped - 6 lines]
> that is the file being picked up by your app. Don't worry if it is a
> different OS, this is java after all.
Is that sufficient? AFAIR the DB2 JDBC driver was not a pure Java driver
but contained some native part that resides in a shared lib.
Kind regards
robert
> You also need to make sure you have chosen the db2java.zip at the right
> jdbc level. In an effort to please everyone IBM shipped both jdbc 1.1
[quoted text clipped - 8 lines]
>
> > http://www.datadirect-technologies.com/download/docs/slnk/devref/datatype.htm
http://www-106.ibm.com/developerworks/db2/library/techarticle/0203zikopoulos/020
3zikopoulos.html
http://www-1.ibm.com/support/docview.wss?rs=71&org=SW&doc=1000797&loc=en-us
> > http://www-306.ibm.com/software/data/db2/udb/ad/v7/java.html
>
[quoted text clipped - 61 lines]
> >>>>
> >>>>P.S.: I prefer Oracle, too - but our customer doesn't :-(