Title: RE: Complex Integrity Checking
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-----
From: Khedr, Waleed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 9:03 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Complex Integrity Checking

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-----
From: Aponte, Tony [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 6:33 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Complex Integrity Checking

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-----
From: Jamadagni, Rajendra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 9:24 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Complex Integrity Checking


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!

Reply via email to