-1

I want to introduce sleep time for my already stored procedure. Can you please let me know the syntax for that like where to place it in my procedure. I want to use DBMS_LOCK.sleep(time in seconds).

1 Answers1

1

If i understand your question correctly you need the implementation of dbms_lock.sleep in your procedure. Basic idea of SLEEP Procedure is snooze the logic for mentioned seconds. so you can refer below snippet. Hope it helps.

BEGIN
  FOR I IN (
  /*YOUR SELECT QUERY */
  )
  LOOP
    --Your processing logic
    dbms_lock.SLEEP(10);
  END LOOP;
END;
Avrajit Roy
  • 3,233
  • 1
  • 13
  • 25