Pessoal, Vejam se podem me ajudar. O meu objetivo é atualizar a tabela t2 sempre que a view vw_t1 tiver um novo registro. O meu problema eh que apesar de a view aparecer um registro novo, ela não executa a trigger.
A estrutura das tabelas estão corretas. Eu tenho 2 campos varchar2 em cada uma tabela e tb mostrando na view. A view_t1 mostra os valores da tabela t1. A minha ideia aqui eh replicar os valores de t1 em t2 através do que mostra a view. CREATE OR REPLACE TRIGGER meuusuario.TRG_V1 INSTEAD OF INSERT ON meuusuario.VW_T1 REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW DECLARE BEGIN INSERT INTO meuusuario.T2 VALUES (:NEW.c1,:NEW.c2); EXCEPTION WHEN OTHERS THEN -- Consider logging the error and then re-raise RAISE; END ; ---------------------------------------------------------------- Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production PL/SQL Release 9.2.0.7.0 - Production CORE 9.2.0.7.0 Production TNS for 32-bit Windows: Version 9.2.0.7.0 - Production NLSRTL Version 9.2.0.7.0 - Production -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 22/3/2007 07:44 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/730 - Release Date: 22/3/2007 07:44