If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 JDBC connection error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-08-04, 07:09
gopal12 gopal12 is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
Unhappy DB2 JDBC connection error

Can can one point me what is the environment variable gone wrong here,

JAVA_HOME=/usr/java14_64

1)javac $INSTANCE_HOME/sqllib/samples/java/db2JDBCVersion.java
2)java $INSTANCE_HOME/sqllib/samples/java/db2JDBCVersion dbname db username passwd

It should get you the output as 'IBM DB2 JDBC '. But for me the o/p is "Bad DB2 JDBC Environment; please run usejdbc1 or rusejdbc2 again and chekc fr errors.
Reply With Quote
  #2 (permalink)  
Old 11-08-04, 07:39
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
environment for java

have a look : I could reproduce your problem
db2inst1:/export/home/db2inst1: LD_LIBRARY_PATH=/opt/SMAW/lib:/export/home/db2inst1/sqllib/lib32:/opt/IBM/DB2RecoveryExpert/lib^C
db2inst1:/export/home/db2inst1: unset LD_LIBRARY_PATH
db2inst1:/export/home/db2inst1: java db2JDBCVersion
Bad DB2 JDBC environment; please run usejdbc1 or usejdbc2 again and check for errors.
include /export/home/db2inst1/sqllib/lib32 or your lib path after db2 installation

Best Regards, Guy Przytula
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On