This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes connecting to a db2 database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connecting to a db2 database" Watch "connecting to a db2 database" New topic
Author

connecting to a db2 database

Oscar Lakra
Greenhorn

Joined: Jul 06, 2001
Posts: 1
I am trying to execute a java program running on (let's say termA) trying to connect to a DB2 database on (let's say termB).The environment on both the machines are AIX with JDK 1.3.0 installed.
the following configurations are being used:
driver = COM.ibm.db2.jdbc.net.DB2Driver
dbUrl = jdbc:db2://10.10.10.1:4001/mydatabase
user = dbadmin
password = dbadmin
using the same above configurations except the appropriate changes in the driver and the dbUrl the code works fine on termB. additionally on termB the following service was started as per the documentation from IBM
"db2jstrt 4001"
having met all the described settings when i finally tried to execute the code the following error was generated:
java.sql.SQLException: java.lang.UnsatisfiedLinkError:
no dbjdbc (libdb2jdbc.a or .so) in java.library.path
please help as this application is very critical. thanks in advance
-oscar
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: connecting to a db2 database
 
Similar Threads
CMP and mySQL
Type 4 driver for db2
java.sql.SQLException: No suitable driver in DB2 7.01
oracle database problems
JSP connection to MS Access DB - No suitable driver exception