Solved

horizontal fragmentation

Posted on 2009-07-03
3
1,954 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
3 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

830 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