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: Privileges for Trigger

Re: Privileges for Trigger

From: Jesper Søndergaard <jsoender_at_NOSPAM.dk.oracle.com>
Date: 1998/02/10
Message-ID: <34E02275.1EB4DDAD@NOSPAM.dk.oracle.com>#1/1

My guess is that you are trying to access the object with PL/SQL.

It is not possible to use object privileges obtained through a role from within PL/SQL.
Instead you must grant the privileges directly to the owner of the PL/SQL object
(package, procedure, function).

The reason is that the PL/SQL compiler cannot check privileges at compile-time if
the object is supplied at run-time.

/Jesper

Helmut Hahn wrote:

> Grue wrote:
>
> > Schema A needs to be granted update privilege on B.Table2.
> > I believe that's all that's required. The syntax would be:
> >
> > GRANT UPDATE ON B.Table2 TO A;
> >
> > Hope that helps.
>
> Yes thats it. I cant figure out why this does not work when a grant a
> role to A which has update privileges on B.Table2.
> Could please anybody give me hint on this?
>
> Thanks Helmut

--
.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.

|
|
|                            Jesper
 Søndergaard                              |
|                            Technical
 Analyst                              |
|
|
| Email:     jsoender_at_dk.oracle.com                 Oracle
 Danmark           |
| Office:    +45 4480 8081                          Lautrupbjerg
 2-6         |
| Direct:    +45 4480 4269                          DK-2750
 Ballerup         |
|
|
'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'´`'·.,,.·'

         The statements and opinions expressed here are my own and
         do not necessarily represent those of Oracle Corporation.
Received on Tue Feb 10 1998 - 00:00:00 CST

Original text of this message

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