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

Home -> Community -> Usenet -> c.d.o.misc -> Re: dbms_alert.package

Re: dbms_alert.package

From: Johan Ur Riise <riise_at_bgnett.no>
Date: Tue, 26 Jan 1999 09:50:47 GMT
Message-ID: <36b08abd.1124467669@nntp.statoil.no>


On Mon, 25 Jan 1999 17:27:56 GMT, i wrote:
>it looks like i cannot use the function call
>dbms_alert.signal('sigma',999);
>in a stored procedure nor in a packaged procedure nor a java program.
>PLS-00201: identifier 'SYS.DBMS_ALERT' must be declared

On 25 Jan 1999 23:09:35 GMT, gjlinker_at_aol.com (Gjlinker) wrote:
>grant execute on dbms_alert to SCOTT;

and on Mon, 25 Jan 1999 17:57:59 GMT tkyte_at_us.oracle.com (Thomas Kyte) wrote:
>roles are never enabled during the execution of a procedure.
[...]
>If you can do it in plus with no roles you can do it in a procedure.
>If you can't, you must have the privelege from a role and hence
>won't be able to do it in a procedure.

it worked, thanks to both of you.

the owner of the package where i use the dbms_alert functions, was granted (from SYS directly) the privilege to execute dbms_alert. before that, it probably had the right via the dba role (though i could no see that in table_privileges).

johan Received on Tue Jan 26 1999 - 03:50:47 CST

Original text of this message

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