The moose likes JDBC and the fly likes Type II Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Type II Driver" Watch "Type II Driver" New topic

Type II Driver

ravichandra Nibbaragandlla

Joined: May 31, 2007
Posts: 3
for type 2 drive (Oracle Driver) i am getting this error, can any one help me

this is the URL which i gave in my application
con = DriverManager.getConnection("jdbcracleci:@host:1521:sid","userid","password");

java.sql.SQLException: ORA-06401: NETCMN: invalid driver designator

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.source.JdbProgram.main(JdbProgram.java:26)
at com.source.JdbProgram.main(JdbProgram.java:64)
Exception in thread "main"
It is sorta covered in the JavaRanch Style Guide.
subject: Type II Driver
Similar Threads
JDBC connection to Oracle 8.0.5
no ocijdbc9 in java.library.path in JDK 1.4.2
jdbc oci8 connectivity
java.lang.UnsatisfiedLinkError: do_open
Java Oracle Connectivity (JDBC:ODBC)