1 Reply Latest reply: Jan 11, 2012 1:57 AM by ddevienne RSS

    no ocijdbc11 in java.library.path

      I have downloaded the instant client for HP-UX itanium as i want to run swingbench using oci , once downloaded i have set the LD_LIBRARY_PATH to the instant client directory

      when i start swingbench , i get the following error

      EVERE: Thread 48 : Error in establishConnection() :
      java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1689)
      at java.lang.Runtime.loadLibrary0(Runtime.java:823)
      at java.lang.System.loadLibrary(System.java:1028)
      at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3532)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3528)
      at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:266)
      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
      at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
      at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
      at java.sql.DriverManager.getConnection(DriverManager.java:582)
      at java.sql.DriverManager.getConnection(DriverManager.java:185)
      at com.dom.benchmarking.swingbench.datasource.DataBaseDataSourceFactory.getDataBaseConnection(DataBaseDataSourceFactory.java:50)
      at com.dom.benchmarking.swingbench.kernel.UserSession.getDedicatedConnection(UserSession.java:618)
      at com.dom.benchmarking.swingbench.kernel.UserSession.establishConnection(UserSession.java:470)
      at com.dom.benchmarking.swingbench.kernel.UserSession.run(UserSession.java:149)

      I am really stuggling trying to sort this out , What else do i need to do or download to get oci working

      what is it complainign about ?

      Any help would be appreciated

      The instant client for HP-UX has the following files

      oracle@cruz:/u01/drop/swingbench/instantclient_11_2 > ls -lrt
      total 741790
      -rw-rw-r-- 1 oracle oinstall 387 Oct 21 07:39 BASIC_README
      -rwxrwxr-x 1 oracle oinstall 95824 Oct 21 07:39 adrci
      -rwxrwxr-x 1 oracle oinstall 88832 Oct 21 07:39 genezi
      -rwxrwxr-x 1 oracle oinstall 427096 Oct 21 07:39 uidrvci
      -rwxrwxr-x 1 oracle oinstall 118431720 Oct 21 07:39 libociei.so
      -r-xr-xr-x 1 oracle oinstall 10787592 Oct 21 07:39 libnnz11.so
      -rwxr-xr-x 1 oracle oinstall 120567408 Oct 21 07:40 libclntsh.so.11.1
      -rwxr-xr-x 1 oracle oinstall 120567408 Oct 21 07:40 libclntsh_nopthread.so
      -rwxrwxr-x 1 oracle oinstall 3923040 Oct 21 07:40 libocci.so.11.1
      -r--r--r-- 1 oracle oinstall 2095661 Oct 21 07:40 ojdbc5.jar
      -r--r--r-- 1 oracle oinstall 2714016 Oct 21 07:40 ojdbc6.jar
      -rw-rw-r-- 1 oracle oinstall 66779 Oct 21 07:40 xstreams.jar

        • 1. Re: no ocijdbc11 in java.library.path
          I'm afraid this is the wrong forum for this issue. This forum deals with the programmatic use (in C and C++) of the Oracle OCI API, not with Java-based applications nor Instant-Client issues. You may have more luck getting help in the Instant-Client forum perhaps, and more likely in the forum dedicated to that particular Java-based application. --DD