Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: database link & db integrity
Larry Pettit wrote:
>
> Is there a way to enforce referential integrity across databases with a
> database link. I tried it and it didn't work.
>
> I have database1.tableA and database2.tableB. TableB is the parent in
> another database and I would like to make a column in tableA a FK to the PK
> of TableB.
>
> Is it possible?
>
> Thanks
Not with normal foreign key but you could do it with a database trigger...
...but remember, once you do this, you are enforcing a synchronous link with the two db's - if one goes down, then you can't insert on the other
HTH
--
"Some days you're the pigeon, and some days you're the statue." Received on Thu Jan 20 2000 - 05:24:25 CST
![]() |
![]() |