Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle8i JDBC problem on Linux
Most likely you need to add $ORACLE_HOME/lib to /etc/ld.so.conf and run
ldconfig.
Wei Tian <wtian_at_metaedge.com> wrote:
: Hi,
: I am having this problem with Oracle8i's OCI8 driver on linux. After
: installation and configuration of tnsnames.ora, I ran JdbcCheckup from the
: sample and got the following error:
: Connecting to the database...Connecting...
: java.lang.UnsatisfiedLinkError: ocijdbc8
: at java.lang.Throwable.<init>(Throwable.java:40)
: at java.lang.Error.<init>(Error.java:21)
: at java.lang.LinkageError.<init>(LinkageError.java:21)
: at
: java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:21)
: at java.lang.Runtime.loadLibrary(Runtime.java:144)
: at java.lang.System.loadLibrary(System.java:98)
: at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:line unknown,
: pc0x81ca0d5)
: at
: oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:line
: unknown, pc 0x81c0a7d)
: at
: oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:line
: unknown, pc 0x8191a74)
: at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:line
: unknown, pc 0x81c37bc)
: at java.sql.DriverManager.getConnection(DriverManager.java:61)
: at java.sql.DriverManager.getConnection(DriverManager.java:49)
: at JdbcCheckup.main(JdbcCheckup.java:42)
: The error occured when the program tried to do:
: DriverManager.getConnection ("jdbc:oracle:oci8:@" + database, user,
: password);
: And it seems to me that the program did not even try to connect.
: I checked the liboci8i.so, it is under $ORACLE_HOME/lib, which is included
: in LD_LIBRARY_PATH. TNSNAMES.ora is also OK (verified with sqlplus). Oracle
: version 8.1.5, linux is Red Hat 6.0.
: Could somebody tell me what may cause this? Thanks a lot.
: Wei Tian
Received on Sun Feb 06 2000 - 09:04:00 CST
![]() |
![]() |