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"<[EMAIL PROTECTED]>
Date:       6/18/2002 4:53 AM

>From: "Malik, Fawzia" <[EMAIL PROTECTED]>
>To: Multiple recipients of list ORACLE-L
><[EMAIL PROTECTED]>
>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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to