This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Oracle OCI Driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Oracle OCI Driver" Watch "Oracle OCI Driver" New topic

Oracle OCI Driver

scott gaidos

Joined: Jan 30, 2002
Posts: 6
I'm trying to use Oracle OCI drivers to connect to a Oracle 8.1.6 database on a Solaris box with Weblogic 5.1 sp11. The connection pool gets created successfully but when I try to run a query I get the following error:
java.sql.SQLException: Invalid column type
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.driver.OracleStatement.get_internal_type(OracleStatement.
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(Oracl
at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(Oracl
at weblogic.jdbcbase.pool.Statement.registerOutParameter(
The code works with the standard weblogic drivers.
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

what is code for the prepared statements (and the binding of variable to them) and the Oracle column types for each column in the prepared statement?
I agree. Here's the link:
subject: Oracle OCI Driver
It's not a secret anymore!