Forums Register Login

Jar file for DB2 Connection?

+Pie Number of slices to send: Send
Hi,

Which driver(jar file) I will need for this configuration:

JDK 1.4
DB2 database
Thin Driver (don't have client on my machine)

Thanks.
+Pie Number of slices to send: Send
Look in the <DB2InstallationDirectory>/java directory. You will find db2jcc.jar and db2jcc_licence_cu.jar. Those two work for me as a JDBC driver for DB2. I don't know what "thin" refers to in your question.
+Pie Number of slices to send: Send
 

Originally posted by Paul Clapham:
Look in the <DB2InstallationDirectory>/java directory. You will find db2jcc.jar and db2jcc_licence_cu.jar. Those two work for me as a JDBC driver for DB2. I don't know what "thin" refers to in your question.



As I told, I don't have DB2 client on my machine, so I don't have these jars on my machhine...

And that is why, I am using thin driver...

+Pie Number of slices to send: Send
But you are connecting to a machine that does have DB2? (If you are not, then the question is rather pointless.) It will have those drivers. Copy them to your machine.
+Pie Number of slices to send: Send
 

Originally posted by Paul Clapham:
But you are connecting to a machine that does have DB2? (If you are not, then the question is rather pointless.) It will have those drivers. Copy them to your machine.



Yes, But I don't have access to that system. I just know IP, port number, database name, username and password. I tried with WSAD's db2jcc.jar file, but it gave me 'unauthorized driver' exception....

+Pie Number of slices to send: Send
Well, if the administrators of that system wanted to allow you to connect to the database, I am sure they would give you a copy of the driver (including the licence file, which is what you don't have). But evidently they don't. I suppose that makes you a cracker or something like that.
+Pie Number of slices to send: Send
 

Originally posted by Paul Clapham:
Well, if the administrators of that system wanted to allow you to connect to the database, I am sure they would give you a copy of the driver (including the licence file, which is what you don't have). But evidently they don't. I suppose that makes you a cracker or something like that.



Yes Paul.
I am trying for the licensed JAR file.
Thanks.
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 9064 times.
Similar Threads
IBM toolbox for JAVA
Driver JDBC for AS400
driver DB2 for AS400
jdbc, db2, no suitable driver, linux
Connection pool problem in WLS81SP4
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:45:20.