By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,504 Members | 1,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,504 IT Pros & Developers. It's quick & easy.

Creating foreign keys across different tablespace

P: n/a
ahk
Hi,

As above.
The error I got is "ORA-00942: table or view does not exist". Any ideas?
TIA.
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"ahk" <ah*@writeme.com> wrote in message
news:eb**************************@posting.google.c om...
| Hi,
|
| As above.
| The error I got is "ORA-00942: table or view does not exist". Any ideas?
| TIA.

it's not a tablespace issue, the owner of the foreign key must have
REFERENCES privileges granted on the PK table -- directly, and not via a
role

check the USER_TAB_PRIVS_RECD view

;-{ mcs
Jul 19 '05 #2

P: n/a
ah*@writeme.com (ahk) wrote in message news:<eb**************************@posting.google. com>...
Hi,

As above.
The error I got is "ORA-00942: table or view does not exist". Any ideas?
TIA.


Either you need to qualify the table_name with the owner, or the owner
didn't grant you reference privilege on the affected table.
BTW: There is no relation between foreign keys and tablespaces. There
is a relation between foreign key and schemas.

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #3

P: n/a
ah*@writeme.com (ahk) wrote in message news:<eb**************************@posting.google. com>...
Hi,

As above.
The error I got is "ORA-00942: table or view does not exist". Any ideas?
TIA.


Yes, either you got the table name wrong in your code, or you do not
have the REFERENCES privilege on the referenced table.

Oracle does not care what tablespace the referenced table is in as
long as it is local to the database and not remote (distributed
table).

HTH -- Mark D Powell --
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.