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 accessed by role during new package compilation

434126Dec 6 2004 — edited Apr 19 2005
Hi,
I heard that oracle has a problem with new package compilation if user do not have a direct access to the sys package.

I have created my package which uses DBMS_LOCK.SLEEP. However I do not have a direct grant for this package. I have grant to the role A which has grant to role B which has grant to DBMS_LOCK package. During compilation I have :
PLS-00201: identifier 'DBMS_LOCK' must be declared.

When I try to use it directly from sql window it works without any problems:

begin
dbms_lock.sleep(5);
end;
/

Can somebody explain what is the problem ?

Thanks
Jaroslaw
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2005
Added on Dec 6 2004
4 comments
432 views