I am establishing a connection to oracle 11g which is in a remote server using cx_oracle 7 with python 3.6.7. my OS in Ubuntu 18.04
I have installed oracle instant c
I was facing the exact same problem. This is what worked for me:
$ sudo mkdir -p /opt/oracle
$ cd /opt/oracle
$ sudo unzip /opt/oracle/instantclient-basic-linux.x64-19.8.0.0.0dbru.zip
$ sudo apt-get install libaio1
LD_LIBRARY_PATH $ vim ~/.bashrc
.bashrc file export LD_LIBRARY_PATH=/opt/oracle/instantclient_19_8:$LD_LIBRARY_PATH
.bashrc file, I sourced it: $ source ~/.bashrc
Then my Python script worked nicely again.
See also the cx_oracle documentation