Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding out if a trigger is enabled or not

Status
Not open for further replies.

stevecal

Technical User
May 10, 2000
78
DK
Here's an interesting problem; I have lost a considerable amount of hair recently with this one. I have a piece of dynamic SQL which does an ALTER TRIGGER xyz DISABLE (or ENABLE as the case may be). I can physically tell via DBMS_OUTPUT whether the triggers are firing or not, but I would like to know programatically what the situation is. The view 'all_triggers' doesn't seem to contain this information and I'm not sure where to look next. Any suggestions?
 
Try this:
SELECT name, status from user_triggers where trigger_name = 'xyz';
 
Yes, this works but also so does the same for all_triggers. I guess I must have misread the status column. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top