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 > Help to setup Linux OS/390 for Db2 Connect

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-03, 09:57
pavelbelousov pavelbelousov is offline
Registered User
 
Join Date: Oct 2003
Posts: 15
Help to setup Linux OS/390 for Db2 Connect

I have a problem to connect to db2 connect on suse os/390.

I've created 2 classes DB_R.java driver type 4. and DB_L.java driver type 2.

When I run I have result: Driver type 4 works fine. Driver type 2 does not work. "SQLException: No suitable driver"

After all I was trying to use db2profile, result the same. But every thing works fine on Windows box.


beausr@APPS1:~/cafe> export JAVA_HOME=/opt/IBMJava2-s390-141

beausr@APPS1:~/cafe>
export PATH=${JAVA_HOME}/bin:/home/db2usr/sqllib/bin:${PATH}

beausr@APPS1:~/cafe>
export CLASSPATH=~/cafe:~/cafe/db2jcc.jar:~/cafe/db2java.zip: ${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH}

beausr@APPS1:~/cafe> export LD_LIBRARY_PATH=/home/db2usr/sqllib/lib:${LD_LIBRARY_PATH}

beausr@APPS1:~/cafe> java DB_R
JDBC driver version is 1.0.581

beausr@APPS1:~/cafe> java DB_L
SQLException: No suitable driver
SQLState: 08001
Message: No suitable driver
Vendor: 0
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