Desenvolvi uma trigger para que ao inserir uma carga em determinada tabela ele verifique o conteudo da mesma e de acordo com ele faça um update antes de inserir estes registros. Porém estou tomando o seguinte erro:
"ORA-04091: table OBF.T_TESTE_ODF is mutating, trigger/function may not see it"
"ORA-06512: AT OBF.ALTERA_HORA, line 5"
"ORA-04088: error during execution of trigger OBF.ALTERA_HORA"
Segue abaixo o código da mesma:
create or replace trigger ALTERA_HORA
before insert on T_TESTE_ODF
for each row
declare
-- local variables here
begin
IF SUBSTR(:NEW.CONTACT_INFO, 5, 2) = '62' THEN
UPDATE T_TESTE_ODF SET DAILY_FROM = 36000, DAILY_TILL = 79200;
END IF;
end ALTERA_HORA;