Solved

horizontal fragmentation

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

Question has a verified solution.

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

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…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

810 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