Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 2nd, 2005, 11:14 AM
paulh1983 paulh1983 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2004
Posts: 1,229 paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level)paulh1983 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 10 h 25 m 27 sec
Reputation Power: 17
Views and two different database! (distributed database)

ok i am doing distributed database (two database of same stuff in two different locations) lets call them A and B!

now A has tables: customer, branch,
B has: customer (which needs to be referencing Branch table in A)

in B i have created a view:
Code:
create or replace view Branch as select * from branch@Greenwich;


i am then referencing this View from the customers table in B
Code:
create table Customer (
Customer_id	Number CONSTRAINT pk_Customer_id Primary Key,
Fname		varchar2(15),
......
Branch_no	Number,
CONSTRAINT fk_BranchNo FOREIGN KEY (Branch_no) REFERENCES Branch(Branch_no));


but it gives me the following error:
ERROR at line 11:
ORA-02270: no matching unique or primary key for this column-list


PS> i tried using synonyms instead of view but it said there is no table or view called branch. so i am using VIEW!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Views and two different database! (distributed database)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway