[DB-SIG] Re: threads sharing connection with cx_Oracle

Paul Moore pf_moore at yahoo.co.uk
Sat Jan 24 17:43:34 EST 2004


Randall Smith <randall at tnr.cc> writes:

> Are there any known issues with threads sharing a connection with
> cx_Oracle?

You need to do

cx_Oracle.OPT_Threading = 1

at the start of your script in order to enable thread-safe operations. 
It's not the default, because it has a small performance penalty.
Check the documentation for more details. (Apologies if you know this,
and have done it already...)

Paul.
-- 
This signature intentionally left blank




More information about the DB-SIG mailing list