0

I need a sql statement that retrieves the names of all triggers currently setup in the database. I am using Oracle SQL Developer version 1.5.5, with java version 1.7.

Something like this:

select OBJECT_NAME from OBJECTS where OBJECT_TYPE = 'Trigger'

2
  • 1
    you have a VERY old SQL Developer. Get the latest, I think 4.0 is already out. You can easily browse for db objects like triggers Commented Aug 19, 2013 at 18:19
  • @tbone this is what we use in oil and gas! haha Commented Aug 19, 2013 at 19:08

1 Answer 1

4

What you have is pretty close:

select owner, object_name
from all_objects
where object_type = 'TRIGGER'

Or more usefully:

select owner, trigger_name, table_owner, table_name, triggering_event
from all_triggers

all_triggers has other columns to give you more information that all_objects does, like when the trigger fires. You can get more information about this and other useful data dictionary view in the documentation.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes! that is it. Thanks sir! Looks like my OWNER and TABLE_OWNER are all the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.