views:

839

answers:

2

Is there any way to set a timeout on Oracle OCI calls (OCIStmtExecute for example) ?

Thanks

+2  A: 

There is no way provided by OCI itself.

You can create a Timer and issue an OCIBreak() on timeout.

OCIBreak() is thread safe and signal safe.

Quassnoi
A: 

Timeouts can be set on oracle server side, but not through any OCI APIs.