Skip to content

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

@jafarsharifshaik

Description

@jafarsharifshaik

-->

  1. What versions are you using?
    oracledb version 1.4.1
  1. Is it an error or a hang or a crash?
    error

  2. What error(s) or behavior you are seeing?
    Traceback (most recent call last):
    File "/application/INFA/server/infa_shared/Scripts/test.py", line 76, in
       table_names = get_list_tables(schema_name)  # Add more table names as needed
    File "/application/INFA/server/infa_shared/Scripts/test.py", line 63, in get_list_tables
       oracledb.init_oracle_client('/u01/oracle/product/12.0.1/client_64/lib')
    File "src/oracledb/impl/thick/utils.pyx", line 476, in oracledb.thick_impl.init_oracle_client
    File "src/oracledb/impl/thick/utils.pyx", line 500, in oracledb.thick_impl.init_oracle_client
    File "src/oracledb/impl/thick/utils.pyx", line 421, in oracledb.thick_impl._raise_from_info
    oracledb.exceptions.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "/u01/oracle/product/12.0.1/client_64/lib/libclntsh.so: cannot open shared object file: No such file or directory". See https://python-oracledb.readthedocs.io/en/latest/user_guide/initialization.html for help

  1. Does your application call init_oracle_client()?
    yes
  1. Include a runnable Python script that shows the problem.
    oracledb.init_oracle_client('u01/oracle/product/12.0.1/client_64/lib')

Running the code in linux system. Not able to figure out the solution. Please do need the helpful
image

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