Hi All
I'm new to set up DB2 though using JDBC for years.
my question is:
supposed there are 3 computers in local-net, named A,B,C (they are Windows
2000 families). DB2 installed in A (port is db2c_DB2 50000/tcp) which hosts
a web, named www.abc.com, using dynamic ip, like 1.2.3.4 for a week them
2.3.4.5 for another week
when using JDBC within local-net by using,
Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");
Connection conn = DriverManager.getConnection("jdbc:db2://A/datainstance");
three of them work as expected; but if replace
"jdbc:db2://A/datainstance" with "jdbc:db2://www.abc.com/datainstance" or
"jdbc:db2://www.abc.com:50000/datainstance"
none of them works.
Error message were " CLI0616E Error opening socket" and "no suitable
driver" respectively.
Actually the router has been set port 50000 to point to A and opened to
public.
Can any one tell me how to fix it?
--
Thanks lots in advance
John Woo
Toronto