Client Database and Distributed Database, Server Database Approach, Local Area Network, TwoTiered Client, File Server Approach, Server Approach, TwoTier Approach, ThreeTier Approach, Distributed Database Concept, Distributing the Data are some points from this Database Management lecture.
Download Client Database and Distributed Database - Database Management - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!
Client/Server Database and
Distributed Database
Objectives
• Describe the concepts and advantages of the
client/server database approach.
• Describe the concepts and advantages of the
distributed database approach.
• Explain how data can be distributed and
replicated in a distributed database.
Local Area Network (LAN)
An arrangement of personal computers connected together by communications lines.
The PCs must be located fairly close to each other.
Allows sharing of resources such as servers, printers, etc.
Local Area Network (LAN)
The PCs on a LAN can certainly operate independently, but they can also communicate with each other.
A gateway computer on the LAN can link the LAN and its PCs to other LANs, to one or more mainframe computers, or to the Internet.
File Server Approach
When a LAN client needs to query, update, or
otherwise use a file on the server, the entire file must
be sent from the server to that client.
All of the querying, updating, or other processing is
then performed at the client.
If changed, the entire file is then shipped back to the
server.
DBMS Server Approach
• The database is located at the server.
• The processing is split between the client and
the server.
• Result: there is much less data traffic on the
network.
Two-Tier Approach
The user issues a query at the client.
The software first checks to see if the required data is on the PC’s own hard drive. If yes, the data is retrieved from it.
If it is not on local drive, the software looks for it on the server.
Three-Tier Approach
If the software doesn’t find the data on the client PC’s hard drive or on the LAN server, it can leave the LAN through a gateway computer and look for the data on, for example, a large, mainframe computer that may be reachable from many LANs.
The Distributed Database Concept
• Instead of having one, centralized database,
we are going to spread the data out among
various cities on the distributed network, each
of which has its own computer and data
storage facilities.
• All of this distributed data is still considered to
be a single logical database.
The Distributed Database Concept
• Location transparency - The user just issues
the query, and the result is returned.
A person or process anywhere on the distributed
network queries the database.
It is not necessary to know where on the network
the data being sought is located.
Distributing the Data
Headquartered in NY, a
company’s database
consists of 6 large
tables: A, B, C, D, E, F.
With a centralized
database, all 6 tables
would be located in NY.
Distributing the Data
• The company has major sites in Los Angeles,
Memphis, New York, Paris, and Tokyo.
• The first and simplest idea in distributing the
data would be to disperse the six tables
among the five sites, perhaps based on
frequency of use of each table.
Distributing the Data
• Paris employees can now access Table F
without incurring telecommunications costs
associated with accessing Table F in NY.
• Local autonomy - Paris employees, e.g., can
take responsibility for Table F -- its security,
backup and recovery, and concurrency
control.
Distributing the Data: Problems
When the database was centralized at New York, a
query issued at any of the sites that required a join of
two or more of the tables could be handled in the
standard way by the computer at New York.
The result would then be sent to the site that issued