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

Home -> Community -> Usenet -> c.d.o.misc -> what's a "reasonable" length of time to keep a cursor open?

what's a "reasonable" length of time to keep a cursor open?

From: <mh_at_pixar.com>
Date: Wed, 22 Aug 2007 23:55:13 GMT
Message-ID: <B14zi.28952$RX.13879@newssvr11.news.prodigy.net>


I've got a long running job that is using the database to queue up entries to be processed.

Sometimes a couple of million items might be dumped in the queue, needing a couple of days to process.

Of course, keeping a cursor open for several days is not a good idea and will probably get an oracle error when the redo log or somesuch is expired.

So, I periodically close my active select cursor and reissue the query.

What's a "reasonable" length of time to keep a cursor open? I'm not looking for a hard and fast number, just a general concensus. Is one hour for keeping a cursor open raising eyebrows? one minute?

Many TIA!
Mark

-- 
Mark Harrison
Pixar Animation Studios
Received on Wed Aug 22 2007 - 18:55:13 CDT

Original text of this message

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