[Python] DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could...

Discussão em 'Python' iniciado por Stack, Março 2, 2025.

  1. Stack

    Stack Membro Participativo

    I tried to follow every possible answer from Stack overflow and tried to follow exact same steps as mentioned in official doc.

    https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html

    1. I have python 3.8 64bit
    2. I have Windows server 2019 64 bit
    3. I downloaded Version 12.1.0.2.0 64bit oracle instant client. Tried with both Instant Client Package - Basic and Instant Client Package - Basic Light
    4. Set the path of the downloaded file to environment variable Path
    5. Restarted the system.

    import cx_Oracle

    dsn_tns = cx_Oracle.makedsn('XXX', 'PORT', service_name='XXX')
    conn = cx_Oracle.connect(user=r'XXX', password='XXX', dsn=dsn_tns)


    c = conn.cursor()
    c.execute(r'select name,open_mode from v$database;')
    print(c)
    conn.close()


    I dont know what more to do. Still receiving the below error:

    cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

    Continue reading...

Compartilhe esta Página