Oracle: SQL query to find all the triggers belonging to the tables?

SqlOracle

Sql Problem Overview


how can i find all the triggers that belong to a table?

Sql Solutions


Solution 1 - Sql

The following will work independent of your database privileges:

select * from all_triggers
where table_name = 'YOUR_TABLE'

The following alternate options may or may not work depending on your assigned database privileges:

select * from DBA_TRIGGERS

or

select * from USER_TRIGGERS

Solution 2 - Sql

Solution 3 - Sql

Another table that is useful is:

SELECT * FROM user_objects WHERE object_type='TRIGGER';

You can also use this to query views, indexes etc etc

Solution 4 - Sql

Use the Oracle documentation and search for keyword "trigger" in your browser.

This approach should work with other metadata type questions.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRajesh Kumar GView Question on Stackoverflow
Solution 1 - SqlyanjostView Answer on Stackoverflow
Solution 2 - Sqla_horse_with_no_nameView Answer on Stackoverflow
Solution 3 - SqldiagonalbatmanView Answer on Stackoverflow
Solution 4 - SqltboneView Answer on Stackoverflow