aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "connecting to a db2 database" Watch "connecting to a db2 database" New topic

connecting to a db2 database

Oscar Lakra

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 =
dbUrl = jdbc:db2://
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
I agree. Here's the link:
subject: connecting to a db2 database
Similar Threads
CMP and mySQL
oracle database problems
Type 4 driver for db2
JSP connection to MS Access DB - No suitable driver exception
java.sql.SQLException: No suitable driver in DB2 7.01