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: referential integrity across databases

Re: referential integrity across databases

From: Kent Eilers <kent.eilers_at_pca.state.mn.us>
Date: Wed, 16 Sep 1998 14:45:31 -0500
Message-ID: <3600155B.55B8696C@pca.state.mn.us>


Can a trigger be attached to a view (and only the view not the original table) - i.e. if the address record in a view is changed a trigger fires to handle ref. integ. issues?

Krishnan Ranganathan wrote:

> Hi, This could be one of the possible ways to solve your problem.
> Have your contact tables in one database let saythe sid is db1. You
> need to reference the contact information in other instances like db2
> and db3. Create a database link 'contactlink' pointing to the db1
> instance. Note: If you want to set the database link to a different
> name than the oracle sid of db1 then make sure that
> global_name = False in the init.ora of db1. Now create view in db2
> and db3 looking like : create view contactas select * from
> contact_at_contactlink --> This is the dblink name. This way you have one
> centeralized data and the other instances can refer to the same data
> instead of duplicatingthe information. Hope that
> helps.Krishnankrishnan_at_cdgpd.com
>
> Kent Eilers wrote in message
> <35FFC9D8.96B1E688_at_pca.state.mn.us>...We have a 'core'
> database which centralizes shared information (e.g.
> addresses, contacts) used by several programs - each with
> their own respective database.
>
> The issues we are dealing with is how to avoid orphans (in
> program db's) when the core data is dedupped.
>
> An example is as follows:
> Program A references core record 'Smith Inc.' and
> program B references 'Smith H. Inc.' Our
> monthly cleanup of the core db discovers 'Smith Inc.'
> is the same company as 'Smith H Inc.' and
> removes Smith H. Inc. Now all records which referenced
> 'Smith H' are orphaned in program B's db.
>
> Options entertained so far include:
>
> -the use of triggers on the Core db to check
> program references
> -additional tables in the core db registering
> program references
>
> I suspect this issue is quite common - what have you done?
> Does Oracle have specific options for this?
>
> Thanks.
>
Received on Wed Sep 16 1998 - 14:45:31 CDT

Original text of this message

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