Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

trigger to prevent grant on a table

oraLaroNov 7 2017 — edited Nov 14 2017

12.1

I want to create a trigger on a table as I dont want anyone else to grant select on it

something like

create trigger

  before grant select on t1

    declare

BEGIN

      RAISE_APPLICATION_ERROR(-20997,' grants Not Allowed on t1, see DBA for details');

END;

/

    

can only create a trigger on a grant at database level as far as I can find.  Is there someway to do that?

This post has been answered by oraLaro on Nov 9 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2017
Added on Nov 7 2017
17 comments
1,928 views