473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Creating foreign keys across different tablespace

ahk
Hi,

As above.
The error I got is "ORA-00942: table or view does not exist". Any ideas?
TIA.
Jul 19 '05 #1
3 5975

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Olivier Crèvecoeur | last post by:
Hello, Excuse me for my poor english. I would kike know if create index on the foreign key it's necessary or if Oracle, are optimized for using foreign key whithout index. Best regards ...
4
by: Jason | last post by:
I realize that FK cannot be created across databases. The question I have is what are the alternatives? In my thinking I have two choices. 1) First choice (which I read in a different post) is...
10
by: Bodza Bodza | last post by:
I'm having an argument with an incumbent self-taught programmer that it is OK to use null foreign keys in database design. My take is the whole point of a foreign key is that it's not supposed...
31
by: Robert Brown | last post by:
Let's say I have a type hierarchy: (just an example) the general entity customer: CREATE TABLE customer(customer_id int, customer_name varchar(250), customer_type int) three specific...
6
by: Brendan Jurd | last post by:
Hi all, I read on the manual page for Inheritance that: "A limitation of the inheritance feature is that indexes (including unique constraints) and foreign key constraints only apply to single...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
2
by: Benjamin Smith | last post by:
I have two tables like following: create table attendancereport ( id serial unique not null, staff_id integer not null references staff(id), schoolyear varchar not null references...
2
by: Ian Davies | last post by:
I have created a database with about 17 tables. I have been creating foreign keys some of which have worked but when creating others I get the message below ************************* 1005...
3
by: ahk | last post by:
Hi, As above. The error I got is "ORA-00942: table or view does not exist". Any ideas? TIA.
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.