[cx-oracle-users] Connection timeout
Brought to you by:
atuining
From: Paul M. <pf_...@ya...> - 2004-03-17 18:41:04
|
Is it possible to force a timeout on a cx_Oracle.connect? I have a job which connects to a number of databases, but occasionally one of the connections hangs. I'm not sure why, it may be a network problem or something, but I can't find a way of stopping it. To avoid the whole job hanging, I'd like to be able to specify a timeout on the connection attempt. I've checked the cx_Oracle documentation, and what I can of the Oracle documentation (I know very little of how OCI works) but I can't see a way of doing this. Is it possible? Thanks, Paul. -- This signature intentionally left blank |