I am trying to create a trigger on addcomments table, which contains a long coloumn
CREATE OR REPLACE TRIGGER careventCommentssysc
AFTER INSERT
ON addcomments
FOR EACH ROW
DECLARE
BEGIN
cargetcomments(:NEW.addcode, :NEW.addcomment, 'INSERTING');
END careventCommentssysc;
when i try to compile this i am getting following error.
ORA-04093, references to column of type LONG are not allowed in triggers.
But i cant change the table column type to other than long.
Please help me if anyone handled this problem earlier.
EDIT:I think this can be done with Simple compund trigger ,as you are using
ORACLE 11g,hence this will work for you.No need for any loopback dblinks.Cheers