Solved

horizontal fragmentation

Posted on 2009-07-03
3
1,886 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 47

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
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

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now