Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to use cx_Oracle on Fedora 15 with Oracle 11.

I have install Oracle and InstantClient rpms and also cx_Oracle rpm for CentOS. I am exporting ORACLE_HOME and other like this:

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=XE

However, libclntsh.so.11.1 lies here:

/usr/lib/oracle/11.2/client64/lib/libclntsh.so.11.1

I wonder, if that is not the problem. However Oracle was already installed in this u01 directory (I don't know what is it, on Ubuntu it installed in the right place). Could you suggest me, what I can do with this?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Finally found the answer! I didn't need to install again InstantClient, as the libclntsh.so.11.1 was already in the oracle installation. I needed to add another environment variable to .bashrc:

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.