create or replace trigger log_control before insert on resumen for each row begin if inserting then insert into control values (sec_control.NextVal, user,sysdate); end if; end;