Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Unable to execute dbms_lock.sleep()

Re: Unable to execute dbms_lock.sleep()

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Sat, 7 Aug 1999 10:12:51 +0200
Message-ID: <934013575.9581.0.pluto.d4ee154e@news.demon.nl>


Hi Anurag,

While a specific error message other than 'can't compile' would have helped more, the most likely cause is either a missing grant execute to public or a missing public synonym. There are one or two packages which need to be granted manually in a Designer/2000 install, dbms_lock is one of them. For some reason they haven't been in included in the normal installation procedures.

Hth,

Sybrand Bakker, Oracle DBA

Anurag Minocha <anurag_at_synergy-infotech.com> wrote in message news:37ABDBB3.1ACD705_at_synergy-infotech.com...
> Hi,
> I am unable to compile a stored procedure in schema other than sys's
> which has the following statement
>
> dbms_lock.sleep(100);
>
> But from the sqlplus i am able to execute the follwing command in any
> schema.
>
> exec dbms_lock.sleep(100);
>
> What might be the problem. I have to use the sleep function in one of
> the stored procedures under the user which has resource,connect and dba
> roles.
>
> Thanks
> anurag
>
> also reply to
> anurag_at_synergy-infotech.com
>
>
>
>
Received on Sat Aug 07 1999 - 03:12:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US