Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insufficient privileges when creating a trigger for a table in another schema

When I try to create a trigger in schema A for a table located in schema B, I get an ora error : insufficient privileges.

What privileges do I need?

like image 855
Igor Zelaya Avatar asked Jan 02 '09 02:01

Igor Zelaya


1 Answers

If you are creating the trigger in your schema, you'll need the CREATE TRIGGER privilege. In order to create the trigger in somebody else's schema, you'll need the CREATE ANY TRIGGER privilege.

This resource does a very good job of explaining the requirements, and contains more information about triggers (syntax, enabling, disabling, etc).

like image 138
Todd Avatar answered Nov 12 '22 18:11

Todd