Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set Trigger to History Table

3046502Dec 19 2016 — edited Dec 20 2016

Hi,

I got 2 objects in different schema

1) Master object in Test1 schema (Primary Key is EmployeeID)

2) History object in Test2 schema (Foreign Key is EmployeeID)

But i when i tried to execute below trigger, getting some exception

CREATE OR REPLACE TRIGGER TRIGGER1

AFTER INSERT ON Test1.abc

for each row

BEGIN

insert into Test2.def (EmployeeID) values ( :NEW."EmployeeID" );

END;

1st Error: Error(2,2): PL/SQL: SQL Statement ignored

2nd Error: Error(2,22): PL/SQL: ORA-00942: table or view does not exist

Any suggestions!

THanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2017
Added on Dec 19 2016
8 comments
904 views