• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SQLSTATE=08S01

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
whippersnapper
Posts: 1843
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mike_hsieh,
Please adjust your displayed name to meet the JavaRanch Naming Policy. You can do so here.
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try changing
"jdbc:Db2://gateway_host_ip_address:port/database"
to
"jdbc:Db2://gateway_host_ip_address:port:database"
not sure where your username and password are though?
Jamie
[ October 07, 2002: Message edited by: Jamie Robertson ]
 
mike hsieh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
make sure that
1. the database is running AND listening to the port specified
2. you have permissions to connect to the database
3. you don't have any firewall issues that may be interfering with your connection.
Jamie
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic