I am trying to establish a connection from a Jupyter Notebook using the following Python code:
!pip install cx_Oracle --upgrade
import cx_Oracle
dsn = cx_Oracle.makedsn("<myhost>", 1521, service_name="<myservice>")
connection = cx_Oracle.connect("<myuser>", "<mypassword>", dsn, encoding="UTF-8")
And get this error:
DatabaseError Traceback (most recent call last) in 1 dsn = cx_Oracle.makedsn("", 1521, service_name="") ----> 2 connection = cx_Oracle.connect("", "", dsn, encoding="UTF-8")
DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/odpi/doc/installation.html#linux for help
In the link, there is no information on how to install the library in Linux using Python from the Jupyter Notebook. How can I do such an installation?