adbs lecture 1
TRANSCRIPT
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 1/27
@
SZABIST
DubaiCampus
By:
Syed Imtiaz Ali
Lecture 1
Distributed DBMSs ²
Concepts and Design
Advanced
Database Systems
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 2/27
@
SZABIST
DubaiCampus
Slide 2 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Course Contents
1. Distributed DBMSs- Concepts and Design
2. Distributed DBMSs- Advanced Concepts
3. Introduction to Object DBMSs
4. SQL in Reality and XML
5. Object-Oriented DBMSs-Concepts6. Object-Oriented DBMSs-Standards and
Systems
7. Object-Relational DBMSs
8. Data Warehousing Concepts9. Data Warehousing Design
10.Online Analytic Processing (OLAP)
11.Data Mining
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 3/27
@
SZABIST
DubaiCampus
Slide 3 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Recommended Text Book
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 4/27
@
SZABIST
DubaiCampus
Slide 4 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Concepts
Distributed Database A logically interrelated collection of shared data (and a description of thisdata), physically distributed over acomputer network.
Distributed DBMS
Software system that permits the
management of the distributed databaseand makes the distribution transparentto users.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 5/27
@
SZABIST
DubaiCampus
Slide 5 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Concepts
Collection of logically-related shared data.
Data split into fragments.
Fragments may be replicated.
Fragments/replicas allocated to sites.
Sites linked by a communications network. Data at each site is under control of a
DBMS.
DBMSs handle local applications
autonomously.
Each DBMS participates in at least one
global application.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 6/27
@
SZABIST
DubaiCampus
Slide 6 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Distributed DBMS
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 7/27
@
SZABIST
DubaiCampus
Slide 7 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Distributed Processing
A centralized database that can be
accessed over a computer network.
Pearson Education © 2009
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 8/27
@
SZABIST
DubaiCampus
Slide 8 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Parallel DBMS
A DBMS running across multiple
processors and disks designed to executeoperations in parallel, whenever possible,to improve performance.
Based on principle that single processor
systems can no longer meet requirementsfor cost-effective scalability, reliability, andperformance.
Parallel DBMSs link multiple, smaller machines to achieve same throughput assingle, larger machine, with greater scalability and reliability.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 9/27
@
SZABIST
DubaiCampus
Slide 9 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Advantages of DDBMSs
Reflects organizational structure
Improved share-ability and local autonomy
Improved availability
Improved reliability
Improved performance
Economics
Modular growth
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 10/27
@
SZABIST
DubaiCampus
Slide 10 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Disadvantages of DDBMSs
Complexity
Cost
Security
Integrity control more difficult
Lack of standards
Lack of experience
Database design more complex
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 12/27
@
SZABIST
DubaiCampus
Slide 12 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Homogeneous DDBMS
All sites use same DBMS product.
Much easier to design and manage.
Approach provides incremental growth
and allows increased performance.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 13/27
@
SZABIST
DubaiCampus
Slide 13 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Heterogeneous DDBMS
Sites may run different DBMS products,
with possibly different underlying datamodels.
Occurs when sites have implemented their own databases and integration is
considered later. Translations required to allow for:
± Different hardware.
± Different DBMS products.
± Different hardware and different DBMSproducts.
Typical solution is to use gateways.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 14/27
@
SZABIST
DubaiCampus
Slide 14 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Multidatabase System (MDBS)
DDBMS in which each site maintains
complete autonomy.
DBMS that resides transparently on
top of existing database and file
systems and presents a single
database to its users.
Allows users to access and sharedata without requiring physical
database integration.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 15/27
@
SZABIST
DubaiCampus
Slide 15 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Overview of Networking
Network - Interconnected collection of
autonomous computers, capable of exchanging information.
Local Area Network (LAN) intended for
connecting computers at same site. Wide Area Network (WAN) used when
computers or LANs need to be connected
over long distances.
WAN relatively slow and less reliable thanLANs.
DDBMS using LAN provides much faster
response time than one using WAN.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 16/27
@
SZABIST
DubaiCampus
Slide 16 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Functions of a DDBMS
Expect DDBMS to have at least the
functionality of a DBMS.
Also to have following functionality:
± Extended communication services.
± Extended Data Dictionary.
± Distributed query processing.
± Extended concurrency control.
± Extended recovery services.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 18/27
@
SZABIST
DubaiCampus
Slide 18 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Distributed Database Design
Fragmentation
Relation may be divided into a number of sub-relations, which are then distributed.
AllocationEach fragment is stored at site with³optimal´ distribution.
ReplicationCopy of fragment may be maintained atseveral sites.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 20/27
@
SZABIST
DubaiCampus
Slide 20 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Data Allocation
Centralized: Consists of single database and
DBMS stored at one site with usersdistributed across the network.
Partitioned: Database partitioned into disjoint
fragments, each fragment assigned to one
site.
Complete Replication: Consists of
maintaining complete copy of database at
each site.
Selective Replication: Combination of
partitioning, replication, and centralization.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 21/27
@
SZABIST
DubaiCampus
Slide 21 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Why Fragment?
Usage
± Applications work with views rather than
entire relations.
Efficiency
± Data is stored close to where it is most
frequently used.
± Data that is not needed by localapplications is not stored.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 22/27
@
SZABIST
DubaiCampus
Slide 22 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Why Fragment?
Parallelism
± With fragments as unit of distribution,
transaction can be divided into several
subqueries that operate on fragments.
Security
± Data not required by local applications
is not stored and so not available tounauthorized users.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 23/27
@
SZABIST
DubaiCampus
Slide 23 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Why Fragment?
Disadvantages
± Performance,
± Integrity.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 24/27
@
SZABIST
DubaiCampus
Slide 24 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Types of Fragmentation
Four types of fragmentation:
± Horizontal,
± Vertical,
± Mixed,
± Derived.
Other possibility is no
fragmentation:
± If relation is small and not updated
frequently, may be better not to fragment
relation.
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 25/27
@
SZABIST
DubaiCampus
Slide 25 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Horizontal and VerticalFragmentation
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 26/27
@
SZABIST
DubaiCampus
Slide 26 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Mixed Fragmentation
8/8/2019 ADBS Lecture 1
http://slidepdf.com/reader/full/adbs-lecture-1 27/27
@
SZABIST
DubaiCampus
Slide 27 of Lecture 1Advanced Database Systems ± Semester Fall 2010
Derived HorizontalFragmentation
A horizontal fragment that is based on
horizontal fragmentation of a parent
relation.
Ensures that fragments that are frequently joined together are at same site.