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: Endless cycle in inserting/updating tables

RE: Endless cycle in inserting/updating tables

From: Jared Still <jkstill_at_bcbso.com>
Date: Sat, 14 Oct 2000 13:51:21 -0700 (PDT)
Message-Id: <10649.119251@fatcity.com>


Rick,

Sorry about that. We all get stuck with sub-optimal designs from time to time.

Would you mind sharing Garry's solution on the list?

Thanks

Jared

On Sat, 14 Oct 2000, Cale, Rick T (Richard) wrote:

> Jared,
>
> I agree 100%. Fortunately not my design, I was asked for a solution. My
> thanks to Garry Gillies
> for a very simple solution using after insert/update trigger.
>
> Rick
>
> > -----Original Message-----
> > From: Jared Still [SMTP:jkstill_at_bcbso.com]
> > Sent: Friday, October 13, 2000 2:09 PM
> > To: Cale, Rick T (Richard)
> > Cc: oracledba_at_quickdoc.co.uk; ORACLE-L_at_fatcity.com
> > Subject: Re: Endless cycle in inserting/updating tables
> >
> >
> > Rick,
> >
> > You need to seriously consider the design of these tables
> > and/or this process. It sounds suspect.
> >
> > Jared
> >
> > On Fri, 13 Oct 2000, Cale, Rick T (Richard) wrote:
> >
> > > Hi All,
> > > I have 3 tables tab1,tab2,tab3. Each table has a trigger that will
> > update or
> > > insert the other 2
> > > Tab1 when inserting inserts into tab2 and tab3.
> > > Tab2 when inserting inserts into tab1 and tab3.
> > > Tab3 when inserting inserts into tab1 and tab2
> > >
> > > As you can see this would result in endless loop.
> > >
> > > Does anyone have any suggestions on how to solve?
> > >
> > > Also if a table has a foreign constraint and a before insert/update
> > trigger
> > > what is done first on insert
> > > or update? Is the RI constraint checked first or is the trigger fired
> > first.
> > > I have a situation if the RI
> > > constraint fails I want to insert a record into another table so the
> > foreign
> > > key constraint does not fail
> > >
> > > Thanks
> > > Rick
> > >
> > >
> > >
> > > --------
> > > Think you know someone who can answer the above question? Forward it to
> > them!
> > > to unsubscribe, send a blank email to oracledba-unsubscribe_at_LAZYDBA.com
> > > to subscribe send a blank email to oracledba-subscribe_at_LAZYDBA.com
> > >
> >
> >
> > Jared Still
> > Certified Oracle DBA and Part Time Perl Evangelist ;-)
> > Regence BlueCross BlueShield of Oregon
> > jkstill_at_bcbso.com - Work - preferred address
> > jkstill_at_teleport.com - private
> >
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Cale, Rick T (Richard)
> INET: RICHARD.T.CALE_at_saic.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).
>

Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;-) Regence BlueCross BlueShield of Oregon Received on Sat Oct 14 2000 - 15:51:21 CDT

Original text of this message

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