Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to find port in db2 database

843854Nov 3 2003 — edited Nov 3 2003
Hello 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2003
Added on Nov 3 2003
1 comment
242 views