import pandas as pd
import sqlalchemy
engine = sqlalchemy.create_engine('oracle://XXX:XXX@XXX:XXX/?service_name=XXX')
sql = 'select * from XXX where rownum < 10'
df = pd.read_sql(sql,con=engine)
DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: 64-bit Oracle Client library cannot be loaded: "C:\oracle\11.2.0\bin\oci.dll is not the correct architecture". See https://oracle.github.io/odpi/doc/installation.html#windows for help
I am trying to connect to an Oracle database using Python but I am receiving the above error. I know that:
- I have set the path to look at the correct location - it is shown in the error.
- Python is 64 bit.
- The bin folder location contains both a 32 bit (ociw32.dll) and a 64 bit (oci.dll) file.
Yet the error still tells me the architecture is wrong.
Any help on this would be great - I can't figure out where the issue might be!