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:RE: On delete cascade

Re:RE: On delete cascade

From: <dgoulet_at_vicr.com>
Date: Tue, 18 Jun 2002 05:53:29 -0800
Message-ID: <F001.00480311.20020618055329@fatcity.com>


Fawzia,

    I'm going to disagree with just about everybody on this one. Assuming, and that is a BIG assumption, that the parent and child relationships have been properly established there is no real good reason not to use 'on delete cascade'. I've one &^%$ duhveloper who does not want to use this 'feature' and he is always having problems because 'the parent record is wrong'. Consequently in his case he's always trying to handle the deletion of a parent record without deleting the children and the ORA- error that then occurs. In the end we always end up deleting the child records due to other data 'errors' that were induced and sure enough the assembly line will stop due to his missing at least one row.  OH, for those who would just disable the foreign keys, that's a real mess since there are 6 child tables & they all have multiple rows per parent. I kinda which he had never done the foreign keys, but there's no arguing with him. They must be there, and they must be enabled.

Dick Goulet

____________________Reply Separator____________________
Author: "Stephane Faroult"<sfaroult_at_oriolecorp.com>
Date:       6/18/2002 4:53 AM

>From: "Malik, Fawzia" <Fawzia.Malik_at_bskyb.com>
>To: Multiple recipients of list ORACLE-L
><ORACLE-L_at_fatcity.com>
>Sent: Tue, 18 Jun 2002 03:38:25
>
>
>Hi Gurus,
>
>I have just been told by a colleague that I must
>not use "On delete Cascade"
>as for sure it could have serious negative
>implications!!!! We need to be
>able to remove an entry and to avoid writing a
>script (deleteing children
>then parent) I was just doing to set the above...
>Anyone have any opinions on this???
>
>Best Rgds
>
>Fawzia
>

Fawzia,

   Write the script. I have seen very tense situations because a $%$@ç#& developer had used DELETE CASCADE and a lot of important info was deleted by mistake. You do not always have a clear idea of what references what.

Regards,

Stephane Faroult
Oriole

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroul
  INET: sfaroult_at_oriolecorp.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_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: 
  INET: dgoulet_at_vicr.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_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 18 2002 - 08:53:29 CDT

Original text of this message

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