You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
With cx_Oracle 7 (which will be the first version to officially support 18) the symlink won't be needed, but currently it is. Still, the RPM should have created the symlink for you. I'll have to check that out and see if that is a packaging issue or something else that went wrong when you did your install.
I have confirmed that without the symbolic link it does not work (and that the RPM doesn't create the symbolic link) and with it, it does. So the workaround is simple enough. Run these commands as root:
cd /usr/lib/oracle/18.3/client64/lib
ln -s libclntsh.so.18.1 libclntsh.so
What is your version of Python? Is it 32-bit or 64-bit?
3.6.5 64-bit
What is your version of cx_Oracle?
6.4.1
What is your version of the Oracle client (e.g. Instant Client)? How was it
installed? Where is it installed?
What is your version of the Oracle Database?
12.1.0.2.0 - 64-bit
What is your OS and version?
CentOS Linux release 7.4.1708 (Core)
What compiler version did you use? For example, with GCC, run
gcc --version
.gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)
What environment variables did you set? How exactly did you set them?
install with)? Who were you logged in as?
$ python3 test.py
Per step 3 of this link, I have done:
Looking in the directory,
libclntsh.so
does not exist:Is it still required to create a symlink?
Alternatively, setting
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib/
in~/.bash_profile
does not seem to solve the issue.The text was updated successfully, but these errors were encountered: