What is mutating trigger?How to avoid it??

Answer Posted / megha bidve

Use autonomous transactions because is it we can use commit
inside the trigger.

Autonomous transactions allow you to leave the context of
the calling transaction, perform an independant
transaction, and return to the calling transaction without
affecting it's state. The autonomous transaction has no
link to the calling transaction, so only commited data can
be shared by both transactions.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you load microsoft excel data into oracle? : aql loader

613


what are different types of keys in sql?

604


Are stored procedures faster than dynamic sql?

528


what is “go” in t-sql? : Transact sql

599


How do I debug a stored procedure?

627






what is a primary key? : Sql dba

552


What are crud methods?

551


Can we insert data into materialized view?

511


Can we perform dml on view?

553


How many types of indexes are there in sql?

535


how to shutdown mysql server? : Sql dba

563


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

771


How to add, remove, modify users using sql?

558


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

596


What is auto increment in sql?

584