wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connecting to a db2 database