4

I am trying to change the trigger script for my database. My trigger name is ARCH_USER_UPD_TRG and this puts any updates or deletes on the USER table into a Z_USER table

I am dropping a column from the USER table and now need to modify the trigger script to no longer use this column.

How do I modify the PL/SQL script of an oracle trigger?

user906153
  • 1,218
  • 8
  • 30
  • 43

2 Answers2

12

A trigger is similar to a package or a procedure, so you can simply use

create or replace trigger triggerName
...
declare
...
begin
    ...
end;
Aleksej
  • 22,443
  • 5
  • 33
  • 38
3

The easy solution would be to Drop and Create the trigger once again with the modified SQL script code.

DROP TRIGGER ARCH_USER_UPD_TRG; 

CREATE TRIGGER ARCH_USER_UPD_TRG
//rest of code body 
Rahul
  • 76,197
  • 13
  • 71
  • 125