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!

java.sql.SQLException Protocol violation

9473Feb 12 2002
I got java.sql.SQLException Protocol violation when trying a connection with JDBC1.2 to Oracle DB 8.1.7.
Connection is set like this:

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String cnctStr = driver + ":" + "@" + hostname + ":" + port + ":" + sid;
Connection con = DriverManager.getConnection(cnctStr,username,password));

What's wrong?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2002
Added on Feb 12 2002
3 comments
308 views