What is mutated trigger? In single user mode we got mutated error, as a dba how you will resolve it?



What is mutated trigger? In single user mode we got mutated error, as a dba how you will resolve it?..

Answer / Ratnesh Kumar Verma

A mutating trigger is a trigger that modifies the same table from which an event that fires the trigger originates. This can lead to a situation known as 'mutating table' error in Oracle DB when the trigger is fired in single user mode. To resolve this issue, you have several options:
1. Use DBMS_LOCK package to acquire and release locks before and after the trigger execution.
2. Create a PL/SQL function instead of a trigger to avoid the mutating table error.
3. If possible, change the trigger definition to fire in multi-user mode.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle DBA (Database Administration) Interview Questions

What is a dba why is this position necessary?

1 Answers  


Which function is used to find the largest integer less than or equal to aspecific value?

1 Answers  


Which is the best option used to move database from one server to another serve on same network and why?

1 Answers  


What database block size should I use?

1 Answers  


What does dba stand for in technology?

1 Answers  


Guideline for sizing db_block_size and db_multi_block_read for an application that does many full table scans?

1 Answers  


What is the relation between database and instance?

1 Answers  


What are dba privileges?

1 Answers  


You attempt to add a datafile and get: ora-01118: cannot add anymore datafiles: limit of 40 exceeded. What is the problem and how can you fix it?

1 Answers  


What happens when the default and temp tablespace clauses are left out from create user statements?

1 Answers  


When looking at v$sysstat you see that sorts (disk) is high. Is this bad or good? If bad -how do you correct it?

1 Answers  


What is a database instance?

1 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)