Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
44 views1 page

Practice 85 Distributed Databases

Uploaded by

Youssef Khaled
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views1 page

Practice 85 Distributed Databases

Uploaded by

Youssef Khaled
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Practice 85 Distributed Databases

Let’s assume we have the following tables distributed over two servers.

On server projects.com we have the following two tables:


Project (projNo, projName, ProjMgrId, budget, startDate, expectedDurationWeeks)
Assign(projNo, empId, hoursAssigned, rating)

On server workers.com we have the following table:


Worker(empId, lastName, firstName, departmentName, birthDate, hireDate, salary)

Now, assume you are running the following command from a third database.

SELECT p.projName, W.lastName, A.hoursAssigned


FROM Project P, Assign A, Worker W
WHERE P.projID = A.projID AND A.empId = W.empId

Asumming your username is John and password is P@ssW0rd and


 The table Project is on the database projects.com with the port 1521 and the database
service name is Projects_production.
 The table Worker is on the database server workers.com with the port number 1522 and
the database service name is Workers_all.

Write appropriate commands to create a Fixed User database link. You need to create two
entries in tnsnames.ora file, two CREATE DATABASE LINKS and two synonym.

You might also like