?
Solved

horizontal fragmentation

Posted on 2009-07-03
3
Medium Priority
?
2,026 Views
Last Modified: 2012-05-07
Implement the distributed database system based on the student database.
Horizontal partition distribution to distribute the CS dept student info in one site(oracle3) and Math dept. student info in another site(oracle4).
Tables are created in oracle3 and a view of student is created in oracle4.
have created the databse link
 
create table stud(ssn number(2), sname varchar2(10), dept varchar2(25))
partition by list(dept)(
stud1@oracle3 where dept='CS',
stud2@oracle4 where dept='Math');

Open in new window

0
Comment
Question by:siddharthkool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 2000 total points
ID: 24771579
I think itis not possible to partition a table on two servers in this way.
You have to define two different tables and to use dblink on both machines
When you will need the whole table UNION them in a view:
CREATE OR REPLACE VIEW joint_stud AS
SELECT * FROM stud
UNION ALL
SELECT * FROM stud@oracle3;

On the other instance create the same view but using a DBlink to the first instance.
0
 
LVL 14

Expert Comment

by:shru_0409
ID: 24772255
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious sideā€¦
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question