Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Oracle JDBC oci8 doesn't work

Oracle JDBC oci8 doesn't work

From: <mconti13_at_my-dejanews.com>
Date: Mon, 15 Mar 1999 17:20:03 GMT
Message-ID: <7cjffm$489$1@nnrp1.dejanews.com>


I have tried to connect to a databace Oracle 8.0.4 by JDBC - oci8 from a Java JDK 1.2 application.

The result is the following runtime error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no oci804jdbc in java.library.path

	at java.lang.Throwable.fillInStackTrace(Native Method)
	at java.lang.Throwable.<init>(Throwable.java:94)
	at java.lang.Error.<init>(Error.java:50)
	at java.lang.LinkageError.<init>(LinkageError.java:43)
	at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
	at java.lang.ClassLoader.loadLibrary(Compiled Code)
	at java.lang.Runtime.loadLibrary0(Runtime.java:471)
	at java.lang.System.loadLibrary(System.java:745)
	at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:149)
	at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
	at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
	at java.sql.DriverManager.getConnection(Compiled Code)
	at java.sql.DriverManager.getConnection(DriverManager.java:137)
	at Employee.main(Compiled Code)

I'm sure that the library oci804jdbc.so is in the path.

The classical example Employee.java results in the same error.

On the contrary, the Thin driver works well, but i hope the oci8 driver will be faster.

The Operating System for server and client is Sun Solaris 2.6

Can somebody help me?

Marco

Thanks in advanced

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Mon Mar 15 1999 - 11:20:03 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US