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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Privileges on Triggers

RE: Privileges on Triggers

From: <oracle-l-bounce_at_freelists.org>
Date: Thu, 1 Nov 2007 14:01:56 -0700
Message-ID: <FE043305B38A0F448F3924429D650C2A0511886E@VEXBE2.ex.ad3.ucdavis.edu>


Toon,

I'm learning something here, thanks for the response. If I understand correctly if the trigger selects from a table then all I need to do is grant select on that table to the user who will be using the trigger, correct? By the same token if the trigger updates a table then the user doing the updating via the trigger must also have appropriate update access on the object, is that correct?

The public synonym bit came from a response I saw else where when googling the problem. It sort of made sense in that the trigger is owned by usera but is being used by userb so in order for usera to use the code calling the trigger it seems a public synonym would be necessary. Again, I'm not certain I am understanding that part either.

Thanks.

Bill Wagman
Univ. of California at Davis
IET Campus Data Center
wjwagman_at_ucdavis.edu
(530) 754-6208

-----Original Message-----
From: Koppelaars, Toon [mailto:T.Koppelaars_at_centraal.boekhuis.nl] Sent: Thursday, November 01, 2007 1:41 PM To: William Wagman; oracle-l
Subject: RE: Privileges on Triggers

Bill,

Triggers are not directly executed by users. Triggers are indirectly executed when the user executes a DML-statement
(an insert, update or delete statement).

So, there is no concept of 'granting someone execute on a trigger'. Instead you grant someone to perform DML on a table (that has triggers attached to it).

I don't see how creating a public synonym for a trigger could 'fix' a problem, you were experiencing with regards to triggers executing or not.

Toon

-----Oorspronkelijk bericht-----
Van: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]Namens William Wagman Verzonden: donderdag 1 november 2007 21:13 Aan: oracle-l
Onderwerp: Privileges on Triggers

Greetings,

I have been playing around trying to grant execute on a trigger to a particular user. After playing with this for a while and reading docs I have come to the conclusion that execute on a trigger is not an allowed grant. Instead the access is given via a public synonym. For example, give the particular trigger, usera.trigger. If usera wants to allow userb to use the trigger it is sufficient merely to create a public synonym, create public synonym trigger on usera.trigger and user b will then be able to use the trigger. Seems to simplistic for me, is that correct or am I missing something?

Thanks.

Bill Wagman
Univ. of California at Davis
IET Campus Data Center
wjwagman_at_ucdavis.edu
(530) 754-6208

--
http://www.freelists.org/webpage/oracle-l



--
http://www.freelists.org/webpage/oracle-l
Received on Thu Nov 01 2007 - 16:01:56 CDT

Original text of this message

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