Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Asynchonous requests

Re: Asynchonous requests

From: Pablo Sanchez <pablo_at_dev.null>
Date: Tue, 19 Nov 2002 20:09:32 GMT
Message-ID: <Xns92CB85DC06A16pingottpingottbah@209.242.64.107>


"Michel D" <si_at_jes.fr> wrote in news:ardols$r7j$2_at_s1.read.news.oleane.net:

> Hi !
>
> I'm working with ORACLE 8i release 3 (8.1.7). When I submit a request to
> the server I have to wait for the response synchronously that is to say
> that my program is blocked. I want to know if it is possible to submit
> the request asynchronously so that if the server is busy for a long time
> I can fire a time-out event in my program and cancel the request.

Howdy!

Yes, it's very possible for you to do this. It's not clear what tools you're using. Assuming that you're using OCI 8 calls with a c/c++ app, look at the manuals regarding blocking and non-blocking calls. You can issue an OCIBreak() (OCIReset() too) in order to asynchronously 'break' the outstanding call - known as, timing out.

-- 
Pablo Sanchez, High-Performance Database Engineering
http://www.hpdbe.com
Received on Tue Nov 19 2002 - 14:09:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US