[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

SQuirreL connection to DB2 using JCC

Asked by JDCam in DB2 Database, SQL Query Syntax

Tags: SQuirreL connection to DB2 using JCC

I'm trying to use a JCC driver to connect SQuirreL client to a DB2 9 database.  

URL - jdbc:db2://SV-MADD03:6789/TEST02
Class - com.ibm.db2.jcc.DB2Driver

I get the following error when trying to connect:
 
SV-MADD03: [ibm][db2][jcc][t4][2043][11550] Exception java.net.ConnectException: Error opening socket to server SV-MADD03/192.168.10.28 on port 6,789 with message: Connection refused: connect.

Checking the ports on server SV-MADD03 I don't see 6789 open.  Any idea how to open this port?
Stack trace below.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
com.ibm.db2.jcc.c.DisconnectException: [ibm][db2][jcc][t4][2043][11550] Exception java.net.ConnectException: Error opening socket to server SV-MADD03/192.168.10.28 on port 6,789 with message: Connection refused: connect.
	at com.ibm.db2.jcc.b.xb.a(xb.java:375)
	at com.ibm.db2.jcc.b.xb.<init>(xb.java:76)
	at com.ibm.db2.jcc.b.a.w(a.java:264)
	at com.ibm.db2.jcc.b.b.a(b.java:1726)
	at com.ibm.db2.jcc.c.bb.a(bb.java:375)
	at com.ibm.db2.jcc.c.bb.<init>(bb.java:340)
	at com.ibm.db2.jcc.b.b.<init>(b.java:306)
	at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:166)
	at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:125)
	at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.execute(OpenConnectionCommand.java:97)
	at net.sourceforge.squirrel_sql.client.mainframe.action.ConnectToAliasCommand$SheetHandler.run(ConnectToAliasCommand.java:381)
	at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(Unknown Source)
	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
	at java.net.PlainSocketImpl.connect(Unknown Source)
	at java.net.SocksSocketImpl.connect(Unknown Source)
	at java.net.Socket.connect(Unknown Source)
	at com.ibm.db2.jcc.b.y.run(y.java:34)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.ibm.db2.jcc.b.xb.a(xb.java:369)
	... 12 more
[+][-]09/30/09 01:23 PM, ID: 25463075Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: DB2 Database, SQL Query Syntax
Tags: SQuirreL connection to DB2 using JCC
Sign Up Now!
Solution Provided By: momi_sabag
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625