473,748 Members | 6,034 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JDBC type 4 driver for DB2 v7.1

Is it true that there are no type 4 jdbc drivers to connect to a DB2
server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be
connecting from windows and solaris boxes.

If it is true, what are my options? Will I have to install db2 connect
on every client machine that needs to connect to the DB2 servers? Is
the DB2 Connect freely available or will we have to purchase it? I
have also read on this group that we can install DB2 Connect on one
box and all connections will be routed through that - can someone
please elaborate or provide a link that gives some detailed
information?

Thanks,
Anoop

Jun 21 '07 #1
3 22838
aj
Well, I know for a fact that:

"DB2 clients can connect to DB2 servers two releases later or one
release earlier than the client’s release level, as well as to servers
at the same release level."

However, I don't think a JDBC driver is considered a "client" in this
sense.

I certainly used a type 4 JDBC driver w/ my v7 DB2 LUW server. It
should be bundled w/ the s/w + subsequent fixpaks, yes? It is called
something like db2jcc.jar..

HTH

aj

Anoop wrote:
Is it true that there are no type 4 jdbc drivers to connect to a DB2
server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be
connecting from windows and solaris boxes.

If it is true, what are my options? Will I have to install db2 connect
on every client machine that needs to connect to the DB2 servers? Is
the DB2 Connect freely available or will we have to purchase it? I
have also read on this group that we can install DB2 Connect on one
box and all connections will be routed through that - can someone
please elaborate or provide a link that gives some detailed
information?

Thanks,
Anoop
Jun 22 '07 #2
>
Anoop wrote:
Is it true that there are no type 4 jdbc drivers to connect to a DB2
server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be
connecting from windows and solaris boxes.
If it is true, what are my options? Will I have to install db2 connect
on every client machine that needs to connect to the DB2 servers? Is
the DB2 Connect freely available or will we have to purchase it? I
have also read on this group that we can install DB2 Connect on one
box and all connections will be routed through that - can someone
please elaborate or provide a link that gives some detailed
information?
Thanks,
Anoop

On Jun 22, 9:24 am, aj <ron...@mcdonal ds.comwrote:
Well, I know for a fact that:

"DB2 clients can connect to DB2 servers two releases later or one
release earlier than the client's release level, as well as to servers
at the same release level."

However, I don't think a JDBC driver is considered a "client" in this
sense.

I certainly used a type 4 JDBC driver w/ my v7 DB2 LUW server. It
should be bundled w/ the s/w + subsequent fixpaks, yes? It is called
something like db2jcc.jar..

HTH

aj
I do have the jars - but no matter what I do I am not able to
connect....

So when you used type 4 jdbc driver for DB2 v7, did you have to
install the native db2connect s/w on the client machine or any native
s/w. I know type 4 should not be needing any client s/w - but from
IBM's notes it says the same driver can be used as a type 4 or a type
2 and it really boils down to the syntax of the jdbc url you are using
to connect to the server.
here are the different errors I am getting when I try to connect to
DB2 (I do not have anything installed apart form the JDBC drivers in
the classpath - I am trying to connect as a Type 4 DB2 driver)

URL used: jdbc:db2://xxxxxal:446/DVIS00B -Uxxxdgen -Pxxx4now
Failed to load JDBC Driver 'COM.ibm.db2.jd bc.net.DB2Drive r':
==java.lang.Cla ssNotFoundExcep tion: COM.ibm.db2.jdb c.net.DB2Driver

URL used: jdbc:db2:DVIS00 B -jcom.ibm.db2.jc c.DB2Driver -Uxxxdgen -
Pxxx4now
com.ibm.db2.jcc .b.SqlException : Failure in loading T2 native library
db2jcct2, reason: java.lang.Unsat isfiedLinkError : no db2jcct2 in
java.library.pa th
at com.ibm.db2.jcc .t2.a.a(a.java: 31)
at
com.ibm.db2.jcc .t2.T2Configura tion.<clinit>(T 2Configuration. java:84)
at com.ibm.db2.jcc .DB2Driver.conn ect(DB2Driver.j ava:174)
at
com.waveset.rep ository.Relatio nalDataStore.ge tRawConnection( RelationalDataS tore.java:
4648)
at
com.waveset.rep ository.Relatio nalDataStore.co nnect(Relationa lDataStore.java :
4528)
at
com.waveset.rep ository.Relatio nalDataStore.op en(RelationalDa taStore.java:
7632)
at
com.waveset.rep ository.Relatio nalDataStore.ch eckDatabaseMeta Data(Relational DataStore.java:
3938)
at
com.waveset.rep ository.Relatio nalDataStore.in it(RelationalDa taStore.java:
3788)
at com.waveset.ins tall.RepoMan.ch eck(RepoMan.jav a:1194)
at com.waveset.ins tall.RepoMan.se tRepo(RepoMan.j ava:1082)
at com.waveset.ins tall.RepoMan.ma in(RepoMan.java :1314)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown
Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at
com.waveset.uti l.CommandProces s.invokeMain(Co mmandProcess.ja va:212)
at com.waveset.uti l.CommandProces s.launch(Comman dProcess.java:
162)
at com.waveset.uti l.CommandProces s.run(CommandPr ocess.java:
300)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown
Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at com.waveset.uti l.Command.main( Command.java:11 7)
Caused by: java.lang.Unsat isfiedLinkError : no db2jcct2 in
java.library.pa th
at java.lang.Class Loader.loadLibr ary(Unknown Source)
at java.lang.Runti me.loadLibrary0 (Unknown Source)
at java.lang.Syste m.loadLibrary(U nknown Source)
at com.ibm.db2.jcc .t2.b.run(b.jav a:35)
at java.security.A ccessController .doPrivileged(N ative Method)
at com.ibm.db2.jcc .t2.a.a(a.java: 26)
... 22 more
com.ibm.db2.jcc .b.SqlException : Failure in loading T2 native library
db2jcct2, reason: java.lang.Unsat isfiedLinkError : no db2jcct2 in
java.library.pa th
at com.ibm.db2.jcc .t2.a.a(a.java: 31)
at
com.ibm.db2.jcc .t2.T2Configura tion.<clinit>(T 2Configuration. java:84)
at com.ibm.db2.jcc .DB2Driver.conn ect(DB2Driver.j ava:174)
at
com.waveset.rep ository.Relatio nalDataStore.ge tRawConnection( RelationalDataS tore.java:
4648)
at
com.waveset.rep ository.Relatio nalDataStore.co nnect(Relationa lDataStore.java :
4528)
at
com.waveset.rep ository.Relatio nalDataStore.op en(RelationalDa taStore.java:
7632)
at
com.waveset.rep ository.Relatio nalDataStore.ch eckDatabaseMeta Data(Relational DataStore.java:
3938)
at
com.waveset.rep ository.Relatio nalDataStore.in it(RelationalDa taStore.java:
3788)
at com.waveset.ins tall.RepoMan.ch eck(RepoMan.jav a:1194)
at com.waveset.ins tall.RepoMan.se tRepo(RepoMan.j ava:1082)
at com.waveset.ins tall.RepoMan.ma in(RepoMan.java :1314)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown
Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at
com.waveset.uti l.CommandProces s.invokeMain(Co mmandProcess.ja va:212)
at com.waveset.uti l.CommandProces s.launch(Comman dProcess.java:
162)
at com.waveset.uti l.CommandProces s.run(CommandPr ocess.java:
300)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown
Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at com.waveset.uti l.Command.main( Command.java:11 7)
Caused by: java.lang.Unsat isfiedLinkError : no db2jcct2 in
java.library.pa th
at java.lang.Class Loader.loadLibr ary(Unknown Source)
at java.lang.Runti me.loadLibrary0 (Unknown Source)
at java.lang.Syste m.loadLibrary(U nknown Source)
at com.ibm.db2.jcc .t2.b.run(b.jav a:35)
at java.security.A ccessController .doPrivileged(N ative Method)
at com.ibm.db2.jcc .t2.a.a(a.java: 26)
... 22 more

==com.ibm.db2.j cc.b.SqlExcepti on: Failure in loading T2 native
library db2jcct2, reason: java.lang.Unsat isfiedLinkError : no db2jcct2
in java.library.pa th

URL used: jdbc:db2://xxxx:446/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2057]
[11264] The application server rejected establishment of the
connection.
An attempt was made to access a database, DVIS00B, which was not
found.

URL used: jdbc:db2://tcpxxxx:446/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2057]
[11264] The application server rejected establishment of the
connection.
An attempt was made to access a database, DVIS00B, which was not
found.

URL used: jdbc:db2://xxxx:447/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2048]
[11280] Execution failed due to a distribution protocol error that
caused deallocation of the conversation.
A DRDA Conversational Protocol Error was detected. Reason: 0x1245.

URL used: jdbc:db2://xxxx:446/DB2 -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.SqlExcepti on: [ibm][db2][jcc][10109][10354] The
version of the IBM Universal JDBC driver in use is not licensed for
connectivity to QDB2 databases.
To connect to this DB2 server, please obtain a licensed copy of the
IBM DB2 Universal Driver for JDBC and SQLJ.
An appropriate license file db2jcc_license_ *.jar for this target
platform must be installed to the application class path.
Connectivity to QDB2 databases is enabled by any of the following
license files: [ db2jcc_license_ cisuz.jar ].


Jun 22 '07 #3
anokun7 wrote:

here are the different errors I am getting when I try to connect to
DB2 (I do not have anything installed apart form the JDBC drivers in
the classpath - I am trying to connect as a Type 4 DB2 driver)

URL used: jdbc:db2://xxxxxal:446/DVIS00B -Uxxxdgen -Pxxx4now
Failed to load JDBC Driver 'COM.ibm.db2.jd bc.net.DB2Drive r':
==java.lang.Cla ssNotFoundExcep tion: COM.ibm.db2.jdb c.net.DB2Driver
This is expected - you are trying here to use legacy JDBC type 3 driver
(.net)

URL used: jdbc:db2:DVIS00 B -jcom.ibm.db2.jc c.DB2Driver -Uxxxdgen -
Pxxx4now
com.ibm.db2.jcc .b.SqlException : Failure in loading T2 native library
db2jcct2, reason: java.lang.Unsat isfiedLinkError :
This is expected - you are trying here to use new DB2 UDB Universal
(JCC) driver - that is correct, but in Tpe 2 Connectivity - which needs
DB2 UDB Runtime Client at least - to be installed and configured on
client machine

URL used: jdbc:db2://xxxx:446/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2057]
[11264] The application server rejected establishment of the
connection.
An attempt was made to access a database, DVIS00B, which was not
found.

URL used: jdbc:db2://tcpxxxx:446/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2057]
[11264] The application server rejected establishment of the
connection.
An attempt was made to access a database, DVIS00B, which was not
found.

URL used: jdbc:db2://xxxx:447/DVIS00B -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.Disconnect Exception: [ibm][db2][jcc][t4][2048]
[11280] Execution failed due to a distribution protocol error that
caused deallocation of the conversation.
A DRDA Conversational Protocol Error was detected. Reason: 0x1245.

URL used: jdbc:db2://xxxx:446/DB2 -jcom.ibm.db2.jc c.DB2Driver -
Uxxxdgen -Pxxx4now

==com.ibm.db2.j cc.b.SqlExcepti on: [ibm][db2][jcc][10109][10354] The
version of the IBM Universal JDBC driver in use is not licensed for
connectivity to QDB2 databases.
To connect to this DB2 server, please obtain a licensed copy of the
IBM DB2 Universal Driver for JDBC and SQLJ.
An appropriate license file db2jcc_license_ *.jar for this target
platform must be installed to the application class path.
Connectivity to QDB2 databases is enabled by any of the following
license files: [ db2jcc_license_ cisuz.jar ].
All those errors are implying that you do not have connection URL
properly configured.

Try specifying in your URL correct host name, DDF listener port and
location name:

if (args.length !=3)
{
System.out.prin tln("required: <location_name< userid<password >");
System.exit(0);
}

String urlT4 = "jdbc:db2://host:port/" + args[0] + ";";
Class.forName(" com.ibm.db2.jcc .DB2Driver");
Connection con = DriverManager.g etConnection( urlT4, args[1], args[2]);
You must have both db2jcc.jar and db2jcc_license_ cisuz.jar in your
CLASSPATH.
Jan M. Nelken
Jun 22 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4494
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web Server 6.1 with the SQL Server 2000 JDBC Driver. The background: 1. I have downloaded the SQL Server 2000 JDBC Driver and installed it on the web server.
1
2986
by: Ajay | last post by:
Hi, Could some please tell me whether Microsoft provides Type 2 and Type 4 jdbc driver ? For Type 4 MS provides com.microsoft.jdbc.sqlserver.SQLServerDriver driver. What is the cofiguration required for type 2 driver and what driver class files required ? Its very urgent to me please reply. Ajay
2
6562
by: Paul Reddin | last post by:
Hi, (V8.1 Fp2) Our application uses JDBC batch to execute mutiple insert statements and we saw a strange thing this morning. There were 4 SQL Insert statements in the batch, and we know the 2nd would have violated a Unique Constraint and failed, but the SQL error returned was related to the 3rd statement (which had a FK dependent on the 2nd
4
6345
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We found that it was shifted three Bytes to the left, i.e. 4 becomes hex 4000000 which is 67108864 in decimal base. This means that the value written and the value read sometimes do not match, which is of course inacceptable for all real world...
0
3082
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2 on Windows 2000 machines. I configured a connection pool data source using type 4 for a local test environment in WSAD 5.1.x, and a connection pool data source on the WebSphere Server too. Both data sources are accessing the same database.
2
3758
by: Raquel | last post by:
Read this about the Universal JDBC Driver.... "In a Type 2 mode, the Universal JDBC driver provides local application performance gains (because it avoids using TCP/IP protocol to communicate to the DB2 server). " Wht does it mean by "local" application performance? In type 2 mode, it is a pre-requisite that all the databases that the application running at the client need to be cataloged (through CCA or otherwise) on the client; Most...
3
4973
by: kavallin | last post by:
I wonder if anyone has compared the db2 universal jdbc driver type 2 and 4 with the legacy db2 driver. Which one is the best to use ? I'm working in a project where the envm looks like this Solaris 10 Websphere 6.1 with app db2 connect 9 ============================as/400 5.3 as/400 databases cataloged on db2 connect with auth SERVER_ENCRYPT
3
10276
by: %NAME% | last post by:
When using embedded SQL for db2 under solaris, you do not need to give username and password since the system will use your unix-login as default credential. However, with JDBC seems I always need to provide username and password, the Java API DriverManger.getConnection(String url) does not work. I am not sure if this is because the JDBC driver, or because it does not work for DB2 under solaris. Any comments? Thanks a lot!
1
2177
by: raj singh | last post by:
Hi, i am raj singh.I am using type 4 jdbc driver with db2 but its not working its giving the message "required user property not set". the environment variable is set properly with jar files which required for type 4 jdbc driver. if anybody know about this problem pls provide the details. how i can resolve this problem.
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.