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!

Mutating Error

User_JIAY3Dec 2 2013 — edited Dec 2 2013

Hi Team,

i am confused when use an "pragma autonomous_transaction". Don't know how to handle with this. pls share. why it is creating mutating error and how to resolve with different ways.. if i use "pragma autonomous_transaction" in the trigger statement. it's shows same error mess. pls help me.

Even i added the "pragma autonomous_transaction" in the statement why it is throwing the error mess?

Example:-

create or replace trigger T1

after insert on T2

declare

pragma autonomous_transaction;

begin

insert into t2 values(1);

end;

TRIGGER T1 compiled

insert into t2 values(2);

Error:-

00036. 00000 -  "maximum number of recursive SQL levels (%s) exceeded"

*Cause:    An attempt was made to go more than the specified number

           of recursive SQL levels.

*Action:   Remove the recursive SQL, possibly a recursive trigger.

Thanks.

This post has been answered by Karthick2003 on Dec 2 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2013
Added on Dec 2 2013
13 comments
431 views