Share a Oracle connection

keefy kbines at yahoo.com
Fri Jun 4 11:31:03 CEST 2004


Hi,

We have a c++ routine with an embedded python interpreter.
The c++ routine calls a python script many times in a single session.
The script does a lookup on an oracle database and then performs some
additional functionality depending on the results returned by the
query.

I would like to be able to open a Oracle connection in the c++ routine
and then re-use it every time the python script is called rather than
have the python script connect every time.

So, does anybody know how to share an oracle connection from a c++
routine with an embedded python script?

Thanks

K



More information about the Python-list mailing list