Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: ORA-04091: table mutating problem?

Re: ORA-04091: table mutating problem?

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Fri, 04 May 2001 12:51:45 -0700
Message-ID: <F001.002F98BC.20010504074050@fatcity.com>

Mutating simply means you're trying to access the table that you're trigger is currently firing on (in a row level trigger).

The basic workaround is typically...

before-statement-level
- initialise a PL/SQL table

before-row-level
- store information you need in the PL/SQL table, eg rowid's of rows being inserted

after-statement-level
- loop thru the PL/SQL table and take any action you need to do

hth
connor


Connor McDonald
http://www.oracledba.co.uk (mirrored at http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?Connor=20McDonald?=
  INET: hamcdc_at_yahoo.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri May 04 2001 - 14:51:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US