Commit 1fd7a61
Use DBMS_SESSION.SLEEP instead of DBMS_LOCK.SLEEP where available
DBMS_SESSION.SLEEP (available since Oracle 18c) does not require a
separate grant from SYS, unlike DBMS_LOCK.SLEEP.
Remove the blanket "grant execute on dbms_lock to hr" from the shared
user setup SQL. The spec already uses DBMS_SESSION.SLEEP on Oracle
18c+ and falls back to DBMS_LOCK.SLEEP on older versions. Add the
DBMS_LOCK grant only to the 11g workflow which still needs it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 464c728 commit 1fd7a61
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
0 commit comments