Skip to content

DPI-1047: Cannot locate a 64-bit Oracle Client library #319

@edelgadocru

Description

@edelgadocru

Delete unnecessary parts of this template.

For security issues:

See https://www.oracle.com/support/assurance/vulnerability-remediation/reporting-security-vulnerabilities.html for how to report security issues.

For general questions:

Describe exactly what you did and what you want to happen.
Use the questions at the bottom of this template as a guide.

Use Markdown syntax, particularly for code blocks: see https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code

For installation issues:

Use a gist for screen output and logs: see https://gist.github.com/
Do not paste long output into this issue

Review your output and logs. Google any errors
Try to install in a different way. Try some potential solutions.

Review the install instructions at
http://cx-oracle.readthedocs.io/en/latest/installation.html

Answer the following questions:

  1. What is your version of Python? Is it 32-bit or 64-bit?
    --> Python 3.7.3 (tags/v3.7.3:ef4ec6ed12, Mar 25 2019, 22:05:12) [MSC v.1916 64 bit (AMD64)] on win32

  2. What is your cx_Oracle version?
    --> cx-oracle-7.1.3

  3. What exact command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
    -->con = cx_Oracle.connect('USER/pass@host:port/SID')

  4. What error(s) you are seeing?

  5. What OS (and version) is Python executing on?

  6. What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where is it installed?
    --> cx_Oracle.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

  7. What is your Oracle Database version?
    --> Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

  8. What is the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) set to? On macOS, what is in ~/lib?
    -> C:\Oracle\instantclient_18_5;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\A123846\AppData\Local\Microsoft\WindowsApps;;C:\Users\A123846\AppData\Local\Programs\Microsoft VS Code\bin

  9. What Oracle environment variables did you set? How exactly did you set them?
    oracle_home --> C:\Oracle\instantclient_18_5\

  10. Do you have a small, single Python script that immediately runs to show us the problem?

import cx_Oracle
import os
import sys

print(sys.version)
#print(os.environ['ORACLE_HOME'])
print(os.environ['path'])

con = cx_Oracle.connect('USER/pass@host:port/SID')
print (con.version)

con.close()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions