So I am running this example that I found on Oracle's site on my linux machine. I have seen questions like this before, but the suggestions were not relevant in my case. I used pip install to download cx_oracle and I'm not entirely sure why it is failing to connect.
import cx_Oracle
con = cx_Oracle.connect('pythonhol/[email protected]/orcl')
print (con.version)
con.close()
Here is the error that I get:
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
I've looked up this error, but it seems as if this is unrelated to Oracle based on my google searches. Any guidance is appreciated.
echo $LD_LIBRARY_PATHSee also the official troubleshooting doc: cx-oracle.readthedocs.io/en/latest/… - kfinitylibclntsh.soon your machine? - Bob Jarvis - Reinstate Monica