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: "SLEEP" command in PL/SQL?

Re: "SLEEP" command in PL/SQL?

From: Peter Schneider <peter.schneider_at_okay.net>
Date: Fri, 01 May 1998 18:56:02 GMT
Message-ID: <354a1a82.11300875@news.okay.net>


On Fri, 01 May 1998 16:19:46 GMT, weaver_at_pwrh.com (Walt Weaver) wrote:

>Does anyone know if there's an equivalent of the unix "sleep" command
>in PL/SQL? I've got a stored procedure that goes into a loop and
>inserts a specified number of rows into a table. I'd like to have the
>procedure insert a row every, say, three seconds. Is there a
>relatively easy way to this?

[...]

Hi Walt,

try sys.dbms_lock.sleep(no_of_seconds).

HTH
Peter

--
Peter Schneider
peter.schneider_at_okay.net Received on Fri May 01 1998 - 13:56:02 CDT

Original text of this message

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