java.sql.SQLException Protocol violation
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?