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: Enforced Costraints ??

RE: Enforced Costraints ??

From: Daemen, Remco <R.Daemen_at_facent.nl>
Date: Tue, 12 Jun 2001 05:49:56 -0700
Message-ID: <F001.003253AE.20010612053650@fatcity.com>

I think there are a number of ways to implement something like that (like catching exceptions), and choosing solutions like permitting temporary states of non-uniqueness is asking for trouble. As long as I can see any other option to return the same result, I would take it. This also prevents the developers from getting lazy and delivering 'quick-and-dirty' solutions :).

Enabling a primary key by deferred constraint checking is something that I would consider, because in that case it is still Oracle that enforces the constraint, and at the and of the transaction, no duplicate values are allowed, but I didn't think this was the issue here. I thought it was about disabling constraints, fooling around and then enabling the constraints with the "novalidate" option.

hth too
Remco

-----Oorspronkelijk bericht-----
Van: Connor McDonald [mailto:hamcdc_at_yahoo.co.uk] Verzonden: dinsdag 12 juni 2001 14:31
Aan: Multiple recipients of list ORACLE-L Onderwerp: RE: Enforced Costraints ??

I disagree. A simple reason for a non-unique index to enforce a primary key are is to allowing a temporary state of "non-uniqueness" to be permitted during a transaction. eg insert a batch of new records (some of which may be duplicates), then remove the bad ones, then commit. (with deferred constraint checking)

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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Daemen, Remco
  INET: R.Daemen_at_facent.nl

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 Tue Jun 12 2001 - 07:49:56 CDT

Original text of this message

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