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

Home -> Community -> Usenet -> c.d.o.server -> Re: Check RI on Commit

Re: Check RI on Commit

From: Nathan D. Hughes <nhughes_at_well.com>
Date: 1998/01/19
Message-ID: <6a0b9f$iv3$1@was.hooked.net>#1/1

Dag Arne Matre <dam_at_visma.com> writes:

>I believe there is an option in ANSI-SQL (don't know whether it is SQL2
>or the SQL3 proposal, don't know which level) that says: wait for commit
>to check referential integrity. Normally, this would fail:
>INSERT INTO Detail (DetailPK, MasterPK) values (1,1)
>INSERT INTO Master (MasterPK) values (1)
>COMMIT
>but with the option set, it would be OK.
>Basically, this means that you can do whatever you want inside your
>transaction, just make sure the db is consistent when you COMMIT your
>WORK.
Oracle8 introduces the concept of deferred constraint checking, in which integrity constraints are not checked until the transaction ends. See Oracle Concepts, chapter 23 pp 19.

--

Nathan D. Hughes <nhughes_at_well.com>
Senior Consultant, Custom Business Solutions, Inc.
Received on Mon Jan 19 1998 - 00:00:00 CST

Original text of this message

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