You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by DT78 <di...@sap.aphp.fr> on 2014/07/24 12:06:26 UTC

Re: Activemq with oci : java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path

Hi,
Sorry for the delay to post the solution.
I have got instantclient_10_2 from Oracle and extract it in a directory.

Configuration in .profile :
export SHLIB_PATH=$HOME/instantclient_10_2
export TNS_ADMIN=/.......
PATH=$HOME:$HOME/current/bin:$SHLIB_PATH:$PATH

Configuration in activemq.xml :
        <persistenceAdapter>
            <jdbcPersistenceAdapter dataDirectory="${activemq.base}/data"
dataSource="#oracle-ds" />
        </persistenceAdapter>

   <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
      <property name="driverClassName"
value="oracle.jdbc.driver.OracleDriver"/>
      
      <property name=&quot;url&quot;
value=&quot;jdbc:oracle:oci:@&lt;ORACLE_SID>"/>
      <property name=&quot;username&quot; value=&quot;&lt;compte>"/>
      <property name=&quot;password&quot; value=&quot;&lt;password>"/>
      <property name="maxActive" value="200"/>
      <property name="poolPreparedStatements" value="true"/>
    </bean>





--
View this message in context: http://activemq.2283324.n4.nabble.com/Activemq-with-oci-java-lang-UnsatisfiedLinkError-no-ocijdbc10-in-java-library-path-tp4680012p4683579.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.