how to find port in db2 database
843854Nov 3 2003 — edited Nov 3 2003Hello Everyone,
I am using a db2 V8.1 and try to connect to it via JDBC. I am using the app-driver,
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
however I get an errormessage: java.sql.SQLException: No suitable driver. I can see though that the driver is registered at the DriverManager, so I assume that something in the database connection part is wrong. I have tried to use the url in the way jdbc:db2://host:port/DBName, however I don't know how to find out which port my DB uses. Can someone tell me how to find it under Linux? And also I have read somewhere that one could use the IP-address instead of host:port, is that possible as well?
thank you very much in advance