17,377
社区成员
发帖
与我相关
我的任务
分享
--视图的信息都存储在数据字典视图user_trigger里面:
desc user_triggers;
Name Type Nullable Default Comments
----------------- -------------- -------- ------- ---------------------------------------------------------------------------
TRIGGER_NAME VARCHAR2(30) Y Name of the trigger
TRIGGER_TYPE VARCHAR2(16) Y Type of the trigger (when it fires) - BEFORE/AFTER and STATEMENT/ROW
TRIGGERING_EVENT VARCHAR2(227) Y Statement that will fire the trigger - INSERT, UPDATE and/or DELETE
TABLE_OWNER VARCHAR2(30) Y Owner of the table that this trigger is associated with
BASE_OBJECT_TYPE VARCHAR2(16) Y
TABLE_NAME VARCHAR2(30) Y Name of the table that this trigger is associated with
COLUMN_NAME VARCHAR2(4000) Y The name of the column on which the trigger is defined over
REFERENCING_NAMES VARCHAR2(128) Y Names used for referencing to OLD, NEW and PARENT values within the trigger
WHEN_CLAUSE VARCHAR2(4000) Y WHEN clause must evaluate to true in order for triggering body to execute
STATUS VARCHAR2(8) Y If DISABLED then trigger will not fire
DESCRIPTION VARCHAR2(4000) Y Trigger description, useful for re-creating trigger creation statement
ACTION_TYPE VARCHAR2(11) Y
TRIGGER_BODY LONG Y Action taken by this trigger when it fires
--
select table_owner,table_name,column_name,trigger_name,triggering_event
from user_triggers;