Link to home
Start Free TrialLog in
Avatar of SayYou_SayMe
SayYou_SayMe

asked on

how to grant user to disable/enable trigger in Oracle?

I have Oracle table tableA under schema abc, and has a trigger triggerA associated to tableA .

grant alter on tableA to userA

but userA can not : alter table tableA disable all triggers




Avatar of OP_Zaharin
OP_Zaharin
Flag of Malaysia image

- try this:
GRANT TRIGGER ON TABLE tblname TO user
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
- you are right slightwv. the GRANT TRIGGER is not available for Oracle (mix up with another db). syntax would be GRANT ADMINISTER DATABASE TRIGGER but as slightwv have mention, this is dangerous as the user are allowed to administer the whole trigger in the database.

GRANT ADMINISTER DATABASE TRIGGER TO user;
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

>> ADMINISTER DATABASE TRIGGER

I don't think this gives permission to enable/disable triggers.  I'm pretty sure you need 'alter any trigger'.
- i agree that slightwv method on 35509678 will work best :)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can I ask why you selected some of the answers you did since they aren't even valid Oracle syntax or only agree with a previous post?
Recommend split:
Accept http:#a35509678
Assist  http:#a35701946
Agreed with slightwv's recommendations:

Accept http:#a35509678
Assist  http:#a35701946