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: What privs are required to alter a trigger owned by SYS?

RE: What privs are required to alter a trigger owned by SYS?

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Fri, 07 Mar 2003 08:19:23 -0800
Message-ID: <F001.00563554.20030307081923@fatcity.com>


Rick,

My 2000 crashed yesterday and I lost my reply to you, so here it is ...

alter any trigger is the privilege ... but here is a better solution ...

create or replace sys.enable_trigg_proc is begin
  execute immediate 'alter trigger sys.dbt_logon enable'; end;
/

create or replace sys.disable_trigg_proc is begin
  execute immediate 'alter trigger sys.dbt_logon disable'; end;
/

create synonym your_favorite_user.enable_trigg_proc for sys.enable_trigg_proc
/

grant execute on sys.enable_trigg_proc to your_favorite_user
/

create synonym your_favorite_user.disable_trigg_proc for sys.enable_trigg_proc
/

grant execute on sys.disable_trigg_proc to your_favorite_user
/

I perfer this to granting privileges ...

Let me know if this will work for you.
Raj



Rajendra dot Jamadagni at espn dot com
Any views expressed here are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !!

-----Original Message-----
Sent: Friday, March 07, 2003 10:14 AM
To: Multiple recipients of list ORACLE-L

Yes but do you have an answer to original question


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Fri Mar 07 2003 - 10:19:23 CST

Original text of this message

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