question

OraLearner avatar image
OraLearner asked

Sleep command in pl/sql ?

How to give sleep command in pl/sql ? I heard like there are many ways but not known. Please let me know which one is better if we have many options. Thank you.

oracleplsqlcommands
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Dwayne King avatar image
Dwayne King answered

You can use the built-in package DBMS_LOCK.

Example:
SQL> exec dbms_lock.sleep(10);

The unit of measurement is seconds.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.