Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g570cYN32282
 for <oracle-l@naude.co.za>; Thu, 6 Jun 2002 20:38:34 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA47828;
 Thu, 6 Jun 2002 09:34:39 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 004762EA; Thu, 06 Jun 2002 08:08:25 -0800
Message-ID: <F001.004762EA.20020606080825@fatcity.com>
Date: Thu, 06 Jun 2002 08:08:25 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Khedr, Waleed" <Waleed.Khedr@FMR.COM>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Khedr, Waleed" <Waleed.Khedr@FMR.COM>
Subject: RE: Complex Integrity Checking
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I could not find this and do not know how it could happen! 

If you can post here what you read, it will be appreciated.

Waleed

-----Original Message-----
To: ORACLE-L@fatcity.com
Cc: Waleed.Khedr@FMR.COM
Sent: 6/6/02 9:26 AM

Waleed,
 
The chapter on Autonomous transactions demonstrates how to give the
child transaction the ability to see uncommitted changes made by the
parent transaction.
 
Regards,
 
Tony Aponte

-----Original Message-----
Sent: Wednesday, June 05, 2002 9:03 PM
To: Multiple recipients of list ORACLE-L


The problem with this solution is the Autonomous Transactions  will not
be able to see any changes done within the current transaction only the
committed one. So no way to enforce business logic during the context of
the transaction. 
 
This is why I asked before how frequently commit happens.
 
Regards,
 
Waleed

-----Original Message-----
Sent: Wednesday, June 05, 2002 6:33 PM
To: Multiple recipients of list ORACLE-L



With the introduction of Autonomous Transactions this is no longer
entirely true.  If you call an autonomous transaction procedure, it is
executed in a separate transaction context.  This gives you the ability
to probe the mutating table without inducing the error.  A good
explanation can be found in Tom Kyte's Export One-on-one Oracle book in
the chapter on Autonomous Transactions.

HTH 
Tony Aponte 

-----Original Message----- 
<mailto:Rajendra.Jamadagni@espn.com> ] 
Sent: Wednesday, June 05, 2002 9:24 AM 
To: Multiple recipients of list ORACLE-L 


no matter what you do, if you access table A inside a trigger on table
A, 
oracle will give you mutating table error. What you could (and I really
mean 
you have to consider your business logic here) is go ahead and insert
the 
rows with a temp flag. As soon as you commit, fire up a procedure that
will 
do the scan on the table and delete appropriate rows which have the temp

status. 


BTW how big is this table? What is the frequency of inserts and updates?


Raj 
______________________________________________________ 
Rajendra Jamadagni              MIS, ESPN Inc. 
Rajendra dot Jamadagni at ESPN dot com 
Any opinion expressed here is personal and doesn't reflect that of ESPN
Inc. 

QOTD: Any clod can have facts, but having an opinion is an art! 

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Khedr, Waleed
  INET: Waleed.Khedr@FMR.COM

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@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).

