DBMS_LOCK - To Set Time Delay |
During data management activities, ETL, etc. time lag may be needed for synchronization of systems, external dependencies or for other reasons. Using the Oracle package/procedure DBMS_LOCK.sleep(time in seconds) lag can be created. The DBMS_LOCK.sleep(time) can be also used to execute certain procedure, script etc. in specific time intervals. Example below shows creation of two second time lag. |
74669