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 -> Re: "OK" to loop on DBMS_SLEEP ???

Re: "OK" to loop on DBMS_SLEEP ???

From: Daniel Morgan <damorgan_at_exesolutions.com>
Date: Mon, 15 Apr 2002 17:26:35 GMT
Message-ID: <3CBB0D46.C47303F0@exesolutions.com>


I would generally use GET_TIME and look for a specific difference. But even if you find the file that does not mean, if it is a large file, that it is all there yet. I would wait a specific time period after finding the file to make sure it is completely written too.

Daniel Morgan

R Chin wrote:

> I 'm using DBMS_JOB to schedule a function to simply check if an OS file
> exists, the file may not be there just yet...
> so Im thinking of putting in a loop around DBMS_SLEEP to keep sniffing for
> few minutes....
>
> Is it "ok" to use DBMS_SLEEP to do this ? that is, is this an acceptable
> practice or Am I doing something wrong & wasting resources ?
> Thanks
> robert
Received on Mon Apr 15 2002 - 12:26:35 CDT

Original text of this message

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