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 issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-06, 09:43
MiraJasmin MiraJasmin is offline
Registered User
 
Join Date: Jun 2005
Posts: 85
DB2 JDBC connection issue

Hi,

I am trying to connect DB2 7.1 through JDBC. Using db2Java.zip and db2jcc.jar from the DB2 installation directory.

Using Type 3 driver and the following :

DriverClasses: COM.ibm.db2.jdbc.net.DB2Driver

URLs: jdbc:db2://host_name:6789/db_name

I am getting the exception :

Caused by: COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01
at COM.ibm.db2.jdbc.net.SQLExceptionGenerator.socketE xception(SQLExceptionGenerator.java:574)
at COM.ibm.db2.jdbc.net.DB2Connection.create(DB2Conne ction.java:244)
at COM.ibm.db2.jdbc.net.DB2Connection.<init>(DB2Conne ction.java:193)
at COM.ibm.db2.jdbc.net.DB2Driver.connect(DB2Driver.j ava:198)
at java.sql.DriverManager.getConnection(DriverManager .java:512)
at java.sql.DriverManager.getConnection(DriverManager .java:171)

Please advice,

Thanks,
MiraJ
Reply With Quote
  #2 (permalink)  
Old 01-06-06, 11:01
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
>db2 ? CLI0616E


CLI0616E Error opening socket.

Explanation:

Cannot open the socket to server, server may be down.

User Response:

Ensure JDBC server is up, and rerun your program.
Reply With Quote
  #3 (permalink)  
Old 01-06-06, 12:11
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
jdbc

check that jdbc server has been started
db2jstrt 6789 and check the process db2jd
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
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