Protocol violation

Hello all

I am trying to connect to Oracle 8.1.7 using thn driver.

My connection string is

on=DriverManager.getConnection("Jdbc:oracle:thin:@ip:port:SID","userid","passwd");

I am getting the error SQL EXCEPTION : Protocol Violation

Can some one suggest ...

Regards

ankur bahl

[354 byte] By [ankur_bahl] at [2007-9-26 7:03:51]
# 1
This is most likely an issue with Oracle and not Java. Try accessing the DB using SQL*Plus and see if you get the same error. Also lookup the specific ORA error on oracles site for things you can look at.
Complication at 2007-7-1 16:41:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
>DriverManager.getConnection("Jdbc:oracle:thin:@ip:po> t:SID","userid","passwd"); I don't think the j in jdbc should be capitalized. We use the string "jdbc:oracle:thin:@ipnumber:1521:dbname"and it works.Hope that helps.J.D.
jdpark at 2007-7-1 16:41:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...