cx_Oracle error. DPI-1047: Cannot locate a 64-bit Oracle Client library

Rexilife picture Rexilife · May 13, 2019 · Viewed 42.7k times · Source

I installed the library and when trying to access SQL in jupyter notebook with my credentials the following error appears:

DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help

Answer

Naik picture Naik · Oct 21, 2020

The easiest solution is as follows:

  1. Download 64-bit version of oracle instantClient from: https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html
  2. Copy the dll files in the instantclient directory to the python directory, as shown below

enter image description here

enter image description here

That is it!