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: inter references from one schema to another

Re: inter references from one schema to another

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Tue, 21 Sep 2004 21:33:58 +0100
Message-ID: <hq31l0t7vmq6sarfqlavrn6qgmg4tnquk3@4ax.com>


On 21 Sep 2004 13:09:08 -0700, rayan.yellina_at_gmail.com (Rayan Yellina) wrote:

> I am a SQL SERVER guy (new to Oracle). This question might be
>obvious for you guys. The question is....
> Is it possible to have a foreign key constraint
>[schema1.tableA.field] referencing a [schema2.tableB.field] .

 Yes.

>I mean
>it is referencing the table in another schema.
>If yes, then is this below privillege sufficient
>grant references to schema2.tableA to schema1;

 Yes, but don't you mean:

grant references ON schema2.tableB to schema1;

                 ^^              ^

 ('on' not 'to', tableB not tableA)

 By the way, what happened when you tried this on your copy of Oracle?

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Tue Sep 21 2004 - 15:33:58 CDT

Original text of this message

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