Instead of DBMS_LOCK.SLEEP Procedure Use SYS.DBMS_BACKUP_RESTORE.SLEEP For Time Interval > 3600 seconds
(Doc ID 471246.1)
Last updated on FEBRUARY 22, 2019
Applies to:PL/SQL - Version 220.127.116.11 and later
Information in this document applies to any platform.
DBMS_LOCK.SLEEP is very unstable and it does not provide the right sleep interval when sleep duration is more than 3600 seconds. Executing the following code block results in a slep time of ~ 50 minutes in opposite to the expected 120 minutes.
before sleep: 10:01:41
after sleep : 10:50:07 PL/SQL procedure successfully completed.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document