1. View system triggers:
select * from dba_triggers
select * from user_triggers
2. Add trigger
你首先要有CREATE TRIGGER或者CREATE ANY TRIGGER权限
create or replace trigger tri1
before
insert on TXY.TEST
for each row
begin
insert into TXY.TEST1 values(:new.a1,:new.a2,:new.a3);
end;
3. Pause the trigger
alter trigger tri1 disable;
alter trigger tri2 enable;
4. Pause/enable all triggers of a table
alter table TXY.TEST disable all triggers;
alter table TXY.TEST1 enable all triggers;
Remarks:
user_triggers This is the view of the trigger to see the information of the trigger
user_source This view is to see the information of the stored procedure function