Fallback by thick mode · Issue #44 · oracle/python-oracledb (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@sosoba

Description

@sosoba

  1. What versions are you using?

oracledb: 1.0.3
python: 3.10.5
database: 19.10.0.0.0

  1. Is it an error or a hang or a crash?

crash

  1. What error(s) or behavior you are seeing?

DPY-2019: python-oracledb thick mode cannot be used because a thin mode connection has already been created

  1. Does your application call init_oracle_client()?

Yes. Im trying to use thin mode first and switch to thick when the database is incompatible

  1. Include a runnable Python script that shows the problem.

try: connection = oracledb.connect(params=params) except oracledb.NotSupportedError as err: print( err.args[0].message ) # DPY-3015: password verifier type 0x939 is not supported by python-oracledb in thin mode oracledb.init_oracle_client() # Try fallback in thick mode connection = oracledb.connect(params=params)