Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

oracle trigger

$
0
0

I have applied a trigger on a table whose task is to update one column of that inserted row and then insert the same updated row in another table. But once I execute insert query get this error.

Error starting at line 1 in command:
insert into INT_APPLICATIONDETAILS(sapplicationno,bbalancede,baddonforms,bmer,sdocumentid,bcompleted,ibusinesstype,iproductid,dtreceiptdate,dttrigger)
values('3333333333',0,1,0,'090003e88000c05b',0,1,11011,'5-APR-13','5-APR-13')
Error report:
SQL Error: ORA-04091: table MDE_UAT.INT_APPLICATIONDETAILS is mutating, trigger/function may not see it
ORA-06512: at "MDE_UAT.TR_MOVEAPPLICATIONNO", line 6
ORA-04088: error during execution of trigger 'MDE_UAT.TR_MOVEAPPLICATIONNO'
04091. 00000 - "table %s.%s is mutating, trigger/function may not see it"
*Cause: A trigger (or a user defined plsql function that is referenced in
this statement) attempted to look at (or modify) a table that was
in the middle of being modified by the statement which fired it.
*Action: Rewrite the trigger (or function) so it does not read that table.

Please help me out...


Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>