Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_LOCK.SLEEP must be declared?

913578Jan 25 2013 — edited Jan 25 2013
Hi,

CREATE OR REPLACE FUNCTION TEST_SLEEP
(
TIME_ IN NUMBER
)
RETURN INTEGER IS
BEGIN
DBMS_LOCK.sleep(seconds => TIME_);
RETURN 1;
EXCEPTION
WHEN OTHERS THEN
RAISE;
RETURN 1;
END TEST_SLEEP;

Giving error: PLS-00201: identifier 'DBMS_LOCK' must be declared

what can be the reason? even i have tried with SYS.DBMS_LOCK.. still not working.
This post has been answered by Dom Brooks on Jan 25 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 22 2013
Added on Jan 25 2013
3 comments
16,753 views