Skip to content

oracledb thin mode: DPY-4000 (Unable to find <DBNAME> in tnsnames.ora #115

@avmcohen

Description

@avmcohen

Hi
While connecting to DB in thin mode, getting the title ERROR (DPY-4000).
The scenario is only when providing the TNS alias in to dsn argument.
(ERROR: oracledb.exceptions.DatabaseError: DPY-4000: cannot connect to database. Unable to find "" in /tnsadmin/tnsnames.ora)

When providing full TNS address (IP address:port/DSN) - it connecting fine.
This happened only in thin mode.
In thick mode (and cx_Oracle) it work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions