Skip to content

I'm struggling to connect a Python script with two different Oracle databases at the same time. #471

Closed
@analisis1data

Description

@analisis1data

Hello,

I have to execute a Python script. In this script, I import two modules (both using oracledb). In one of them, I create a connection to ADW using Thin mode. In the other, it creates a connection to an Oracle database 11g using Thick mode.

When I execute the main script, the module that connects to ADW says "Oracle Client library has already been initialized." I know this occurs because they are sharing an oracledb state.

I tried to create a copy of oracledb files with another name so that they use virtually different libraries, but it failed.

Notes:
For thick mode I have to execute oracledb.init_oracle_client(lib_dir="....instantclient_21_11")

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