Professional Documents
Culture Documents
Ddbms Unit 4
Ddbms Unit 4
Distributed Database
Management
g
System
y
UNIT-4
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.1
Learning Objective
Heterogeneous databasefederated database, reference architecture,
loosely and tightly coupled,
Alternative architectures, Development tasks,
operation global task management.
Client server databases
SQL server,
Open database connectivity,
Constructing an Application.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.2
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.3
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.1
User
External
Schema 1
User
External
Schema 2
User
External
Schema 3
Conceptual
Schema
Internal
Schema
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.4
Data
management
system
(different
vendors)
Data Models (i.e. relational, text indexing,
object)
Query the transaction processing algorithms
Data types (i.e., text graphics, multimedia,
hypermedia)
Format (i.e. Structured, unstructured)
Semantics
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.5
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.6
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.2
Federated Databases
Definition
Why do we need database federation
Problem with federated database
How does database federation work
Reference Architecture
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.7
Definition
A collection of databases that are treated as
one entity and viewed through a single user
interface.
A federated database system
y
integrates
g
heterogeneous,
autonomous
database
systems, whereby both local applications and
global applications accessing multiple
component database systems are supported.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.8
Federated Databases
Such a federated database system is a
complex system of systems which requires a
well designed organization at the software
architecture level.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.9
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.3
Data Federation
Significant productivity gains are to be had if you
can work on all the different databases, including
selects, inserts, updates, and deletes as if all the
tables lived in a single database. Database
federation makes the tables look like they are all
in the same database.
If the
th volume
l
off queries
i is
i nott large,
l
and
d if they
th
can often can be satisfied with summary tables,
there is a huge productivity boost by eliminating
the need for a data mart and the corresponding
need to create a new server, move significant
quantities of data, and so on
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.10
Problems
Organization of schemas in a schema
architecture Organize the management
and stewardship of the various data sets in
some
way
that
ensures
their
interoperability
interoperability.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.11
Federated Databases
The "federator" system operates on the
tables in the remote systems, the
"federatees".
The remote tables appear as virtual tables
in the "Federator" database.
Client application programs can perform
operations on the virtual tables in the
"Federator" database, but the real
persistent storage is in the remote
database.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.12
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.4
U4.13
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
Members of federation
FEDERATOR
FEDERATEE 1
FEDERATEE 2
Figure 1
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.14
Contract Interactions
We wish to consider how contracts written in
our framework can interact with one
another.
Before doing so, let us return to a more
intuitive level to see how contracts,
unconstrained by our framework, might
interact. Two contracts are in conflict when
one requires a certain action and the other
prohibits it.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.15
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.5
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.16
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.17
U4.18
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.6
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.19
Reference Architecture
For federated database systems, the
traditional three-level database schema
architecture must be extended to support
the
dimensions
of
distribution
heterogeneity,
g
y and autonomy.
y
It provides the framework in which to
understand, categorize and compare
different architectural options for developing
specific systems.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.20
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.21
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.7
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.22
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.23
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.24
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.8
Points to be covered
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.25
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.26
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.27
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.9
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.28
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.29
U4.30
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.10
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.31
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.32
U4.33
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.11
Processors in a FDBS
Transforming P: Uses mappings to
transform
commands
from
internal
command language to local query
language etc.
Filtering P: Uses access control specified in
export schema to limit allowable operations
submitted to corresponding component
schemas
Constructing
P:
Performs
query
decomposition and merges data
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.34
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.35
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.36
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.12
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.37
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.38
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.39
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.13
U4.40
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
Distribution
Autonomy
Heterogeneity
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.41
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.42
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.14
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.43
U4.44
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.45
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.15
U4.46
U4.47
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.48
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.16
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.49
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.50
Description Heterogeneity
(Different characteristics are used to describe
the same object)
M
Model
d l Heterogeneity
H t
it
(Use of different models to represent the
same data e.g. SSADM, E-R Diagram, Use
Cases)
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.51
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.17
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.52
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.53
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.54
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.18
Acronyms Used
U4.55
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
User
Typical Scenario
1.Client parses a query, decomposes into
independent site queries, and sends to
appropriate server
2.Each server processes local query and sends
the result relation to client
3.Client combines the results of sub-queries
Client
Response
Request
Server
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.56
Peer-to-peer Arch.
A type of network in which each workstation
has
equivalent
capabilities
and
responsibilities.
This differs from client/server architectures,
in which some computers
p
are dedicated to
serving the others.
Peer-to-peer networks are generally simpler,
but they usually do not offer the same
performance under heavy loads.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.57
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.19
U4.58
U4.59
ODBC - Limitations
Limited to relational dbs
Due to relational nature, difficult to use for
non-relational data sources, such as
Object dbs
non-relational dbs
network directory services
email stores
etc
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.60
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.20
ODBC - Provides
ODBC Driver Manager (ODBC32.DLL)
Calls functions in the ODBC drivers (DLLs)
to perform operations on the database
Import Library (ODBC32.LIB)
Client applications link to it to use functions
exposed by the ODBC driver manager
ODBC header files for the ODBC API
U4.61
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
ODBC Architecture
ODBC Drivers
Client
Application
Code
RDBMS
Database
Server
ODBC
Driver
Manager
Host
System
ODBC32.DLL
ISAM
Files
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.62
SQL Server
Introduction
Transact Sql
History
Releases
Description
Future Developments
Working
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.63
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.21
U4.64
Transact-SQL
Transact-SQL is an extension to the SQL
database programming language.
It is a powerful language offering many
features
A wide variety of data types
Temporary objects
System and extended stored procedures
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.65
Transact-SQL Cont
Scrollable cursors,
Conditional processing,
Transaction control,
Exception and error handling, and much
more
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.66
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.22
History
Microsoft,
Sybase
and
Ashton-Tate
originally teamed up to create and market
the first version named SQL Server 1.0 for
OS/2 (about 1989) which was essentially the
same as Sybase SQL Server 3.0 on Unix,
VMS etc.
VMS,
t
Microsoft SQL Server 4.2 was shipped
around 1992 (available bundled with
Microsoft OS/2 version 1.3). Later Microsoft
SQL Server 4.21 for Windows NT was
released .
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.67
History Cont
Microsoft SQL Server v6.0 was the first
version of SQL Server that was
architected for NT and did not include
any direction from Sybase.
Later, Sybase changed the name of its
product to Adaptive Server Enterprise
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.68
History Cont
SQL Server 7.0 was the first true GUI based
database server .
The current version, Microsoft SQL Server
2005, was released in November of 2005.
Advancements have been made in
performance,
the client IDE tools, and
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.69
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.23
History Cont
several complementary systems that are
packaged with SQL Server 2005. These include:
an ETL tool (SQL Server Integration
Services or SSIS),
a Reporting Server,
an OLAP and data mining server (Analysis
Services), and
several messaging technologies, specifically
Service Broker and Notification Services.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.70
Releases
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.71
Releases Cont
2000 - SQL Server 2000 32-bit, codenamed
Shiloh (version 8.0)
2003 - SQL Server 2000 64-bit, codenamed
Liberty
2005 - SQL Server 2005,
2005 codenamed Yukon
(version 9.0)
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.72
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.24
Description
MS SQL Server uses a variant of SQL
called T-SQL, or Transact-SQL, an
implementation of SQL-92 with some
extensions.
T-SQL mainly
y adds additional syntax
y
for use
in stored procedures, and affects the syntax
of transaction support. (Note that SQL
standards require Atomic, Consistent,
Isolated, Durable or "ACID" transactions.)
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.73
Description Cont
MS SQL Server and Sybase/ASE both
communicate over networks using an
application-level protocol called Tabular Data
Stream (TDS).
The TDS protocol has been implemented in
order to allow more kinds of client
applications to communicate with MS SQL
Server and Sybase databases.
MS SQL Server also supports Open
Database Connectivity (ODBC).
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.74
Future development
According to Microsoft, future versions of SQL
Server aim to make data management
self-tuning,
self organizing,
self maintaining
with the introduction of SQL Server Always
On technologies, to provide near-zero
downtime.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.75
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.25
U4.76
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.77
Advantages of OODBS
Designer can specify the structure of objects and
their behavior (methods)
Better interaction with object-oriented languages
such as Java and C++
Definition of complex and user-defined types
Encapsulation of operations and user-defined
methods
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.78
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.26
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.79
Spatial Databases
It had been state that approximately 75% to
80% of all the information contains some
notion of the location.
So
So, Spatial database system give the
concept of database that helps in keeping the
track of objects in multidimensional space.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.80
U4.81
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.27
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.82
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.83
Multimedia Databases
Multimedia Database System(MMDBS) are created
in order to cope up with the growth in the usage of
huge volume of multimedia data that is used by
various applications such as journalism software
applications, e-retailing, entertainment and elibraries etc.
The multimedia data has the influence both directly
as well as indirectly in the development of
multimedia databases.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.84
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.28
Multimedia Databases
Multimedia data bases are design in the various
similar manner that are highlighted by the classical
DDBMSs to give ease of use and understandability
to its user, along with the MMDBS provide some
additional features to its user.
These MMDBs are provide a frame work to store,
process, retrieve, present and transmit variety of
multimedia data-types in lot many formats
multimedia database support more new features as
compared to the traditional DBMSs.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.85
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.86
Deductive Databases
A deductive database is a database system that
can make deductions, these deductions are based
on some rules and facts that are stored in the
databases (deductive).
Prolog and Datalog are the languages that are
mainly used to specifies rules, facts and queries in
the deductive databases.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.87
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.29
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.88
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.89
Temporal Databases
Temporal database are created to store the
temporal data, it means data that is dependent on
time.
Temporal DBMS or TDBMS is created in order to
support the manipulation as well as maintenance of
the temporal data.
TDBMS provide the Temporal data model (TDM)
that comprises of TDDL (Temporal Data Definition
Language) and TDML (Temporal Data Manipulation
Language)
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.90
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.30
U4.91
Short Questions
Explain about the federated database give
any example ?
What is Open database connectivity?
Briefly describe the architecture of SQL
server?
Write some difference between
heterogeneous and homogenous DDBMS?
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.92
Long Questions
Explain any one heterogeneous DDBMS ? What
are the problems that can occur in a
heterogeneous DDBMS.
Write Short notes on the following :
(a) Open Database Connectivity
(b) SQL Server Architecture
Discuss the loosely and tightly coupled
architectures of parallel and distributed systems.
What is federated database system? Explain its
features.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.93
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.31
Long Questions
Difference between homogenous DDBMS
and heterogeneous DDBMS ? Give one
example in each case?
Explain client server
server database and peer to
peer architecture?
Explain reference architecture of federated
database ?
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.94
References
1. S. Ceri, G. Pelagatti, Distributed Database: Principles
and Systems, McGraw Hill, New York, 1985.
2. M. Tamer Ozsu, Patrick Valduriez, Principles of
Distributed Databases System, Pearson, 2nd Ed.,
2009.
3 Mario Piattini,
3.
Piattini Advanced
Advanced Database Technology and
Design, Artech House, UK, 2000.
4. Shivendra Goel, Divya Goel, Distributed Database
Management System, Sun India Publications, 2009.
5. Chhanda Ray, Distributed Database System,
Pearson, 2009.
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel.
U4.95
Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi-63, by Shivendra Goel
U4.32