mike hsieh

Greenhorn
+ Follow
since Oct 07, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by mike hsieh

HI,
I posted the same question yesterday and I modify it a little bit but it still has some problem.
Here's my info.
Error:
COM.ibm.db2.jdbc.net.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01
Question:
I have a problem to get the connection from the mainframe db2.
My codes:
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance();
Connection db2conn = DriverManager.getConnection("jdbc b2://gateway_host_ip_address ort atabase alias name", "userid","password");
I am running my java ap on NT box and I have the db2java.zip in my classpath.
What else I can do to get this working
Gateway or database alias name?
Thanks
I change it to
DriverManager.getConnection("jdbc b2://gateway_host_ip_address ort atabase",userid,password);
but I still got the same error, especially
Error opening socket.
What else I can do.
Do I have to configure the database alias name at my local PC?

Thanks
HI,
COM.ibm.db2.jdbc.net.DB2Exception: [IBM][JDBC Driver] CLI0616E Error opening socket. SQLSTATE=08S01
I have a problem to get the connection from the mainframe db2.
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver").newInstance();
Connection db2conn = DriverManager.getConnection("jdbc b2://gateway_host_ip_address ort/database");
I am running my java ap on NT box and I have the db2java.zip in my classpath.
What else I can do to get this working
Thanks