Distributed Database
Management System
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.1
g
y
UNIT-4
Learning Objective
Heterogeneousdatabase-federated database, reference architecture, loosely and tightly coupled,
Alternative architectures, Development tasks, operation – global task management.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.2 operation global task management.
Client server databases– SQL server,
Open database connectivity, Constructing an Application.
Definition: ‘Composed of heterogeneous hardware, operating system database management system and applications’. • Provides logically integrated view of existing
heterogeneous distributed databases
Heterogeneous Distributed Database
heterogeneous distributed databases. • The three-level architecture of a
Heterogeneous Distributed Database System (HDDMS)
External Schema 1 External Schema 2 External Schema 3
User User User User
Heterogeneous Distributed Database
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.4
Conceptual Schema
Internal Schema
• Data management system (different vendors)
• Data Models (i.e. relational, text indexing, object)
• Query the transaction processing algorithms
Challenges posed by integrating distributed databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.5 • Data types (i.e., text graphics, multimedia,
hypermedia)
• Format (i.e. Structured, unstructured) • Semantics
In a heterogeneous database (HDD), the local database is not managed by the same distributed database management system.
Federated Database:
“A bi ti f t
Challenges posed by integrating distributed databases Cont...
“A combination of autonomous, heterogeneous databases that are operating together”
• Definition
• Why do we need database federation • Problem with federated database • How does database federation work
Federated Databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.7 • Reference Architecture
• A collection of databases that are treated as one entity and viewed through a single user interface.
• A federated database system integrates
Definition
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.8
y g
heterogeneous, autonomous database systems, whereby both local applications and global applications accessing multiple component database systems are supported.
• Such a federated database system is a complex system of systems which requires a well designed organization at the software architecture level.
• 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 th l f i i t l d if th
Data Federation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.10 • If the volume of queries is not large, and if they
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
• Organization of schemas in a schema architecture Organize the management and stewardship of the various data sets in some way that ensures their interoperability
Problems
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.11 interoperability.
• 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
Federated Databases
• Client application programs can perform operations on the virtual tables in the "Federator" database, but the real persistent storage is in the remote database.
• Each "federatee" views the "federator" as just another database client connection. The "Federatee" is simply servicing client requests for database operations.
• The "federator" needs client software to
Federated Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.13 The federator needs client software to access each remote database
FEDERATOR FEDERATEE 1 FEDERATEE 2
Members of federation
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.14
Figure 1
We wish to consider how contracts written in our framework can interact with one another.
Before doing so, let us return to a more Contract Interactions
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.
The heart of the federated database problem is to be able to share certain data between independent organizations without giving up full control of that data.
Typically one organization will permit
The Basic Framework: Granting Rights
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.16 Typically, one organization will permit another organization certain accesses to its data provided that the latter organization agrees to full certain obligations.
A problem that needs addressing is that obligations imposed by various contracts may conflict with one another. In the following we present a framework that eliminates potential conflicts between The Basic Framework: Granting Rights Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.17 eliminates potential conflicts between obligations by eliminating the need for obligations.
In fact, we simply do not allow for obligations in the framework. One might say that there is only one global obligation, namely, to abide by the framework. (We also make the tacit assumption that an inter organizational access privilege can only be
The Basic Framework: Granting Rights Cont…
organizational access privilege can only be granted through a contract.) The desired effect will be achieved partly by the particulars of the contract and partly by the general framework itself. We make no attempt in this framework to address issues of implementation or assurance.
Specially, we will not be concerned with general mechanisms for guaranteeing that all parties must abide by the contract, though it will be possible for contracts to be written so as to impose some checks and
The Basic Framework: Granting Rights Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.19 written so as to impose some checks and balances toward this end.
• For federated database systems, the traditional three-level database schema architecture must be extended to support the dimensions of distribution heterogeneity, andautonomy.
Reference Architecture
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.20
g y y
• It provides the framework in which to understand, categorize and compare different architectural options for developing specific systems.
• Local Schema: A Local Schema is the conceptual schema of a component database system which is expressed in the (native) data model of that component.
Reference Architecture Cont…
• Component Schema:A Component Schema is a Local Schema transformed into the (canonical) data model of the federation layer.
• Export Schema: An Export Schema is derived from a Component Schema and defines an interface to the local data that is made available to the federation.
Reference Architecture Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.22
Federated Schema:When Exported Schemas are semantically heterogeneous, it is necessary to integrate them using another level. A Federated Schema on this higher level is the result of the integration of multiple
E t S h th idi i t t d
Reference Architecture Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.23 Export Schemas; thus, providing an integrated view.
External Schema:An External Schema is a specific view on a Federated Schema or on a Local Schema. External Schemas may base on a specific data model different from the canonical data model. Basically, External
Reference Architecture Cont…
y,
Schemas serve as specific interfaces for applications (local or global).
• Loosely & tightly coupled • Alternative architecture • Development tasks
• Operation – Global task management Points to be covered
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.25
Information systems that provide interoperation and varying degrees of integration among multiple DBs are called.
Multi database systems or Federated systems or
Heterogeneous Distributed Databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.26 Federated systems or
More generally, heterogeneous distributed database systems (HDDBSs)
• User creates and maintains federation schema, Also called Interoperable Database System • Creating schema corresponds to creating a view
against relevant export schemas
Th f h t b f
Loosely coupled FDBSs
• Therefore, each user must be aware of information and structure of the export schemas • Hard to support view updates – therefore,
• Flexibility of different interpretations possible for same federated schema
• Easier to cope with dynamic changes in Loosely coupled FDBSs -Advantages
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.28 schemas since it is easier to create views. Detection of changes is however expensive.
• Duplicated effort in creation of similar federated schemas.
• Difficulty in understanding the semantics of schemas available to the user.
Loosely coupled FDBSs - Disadvantages
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.29 • Due to possible multiple view creations,
view updating cannot be supported.
Aim: provide location, replication and distribution transparency
• Federation administrators have full control over creation and maintenance of federated schemas and access to other export
Tightly coupled FDBSs
schemas and access to other export schemas
• Single federated schema same as global schema but view updates possible if administrators understand the mappings.
• FDBS administrator and component DBSs negotiate creation of export schemas during which administrator. has complete read access to component schema and/or data Violates autonomy
Tightly coupled FDBSs – Disadvantages
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.31 data. Violates autonomy
• Change in export/component schemas imply redoing federated schema creation.
System architecture - Core components combined in different ways to produce different data management architectures
•Data: Data are the basic facts and information managed by a DBS.
•Database: A database is a repository of
More on Federated Databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.32 Database: A database is a repository of data structured according to a data model. •Commands: Commands are requests for specific actions that are either entered by a user or generated by a processor.
•Processors: Processors are software modules that manipulate commands and data.
•Schemas: Schemas are descriptions of data managed by one or more DBMSs. A
h i t f h bj t d
More on Federated Databases Cont…
schema consists of schema objects and their interrelationships.
•Mappings: Mappings are functions that correlate the schema objects in one schema to the schema objects in another schema.
• Transforming P: Uses mappings to transform commands from internal command language to local query language etc.
Filtering P: Uses access control specified in
Processors in a FDBS
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.34 • 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
• Multiple databases created for the same functionality
• Different operating systems, data formats, query languages etc
Multi database systems
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.35 • Typically DBs managed by DBMSs running
on heterogeneous computing platforms
Information sharing across dissimilar
platforms
Interconnect previously isolated
software systems (DBMS)
Multi database systems Cont…
software systems (DBMS)
Not
only
invoke
but
also
Multidatabase has been classified according to the following criteria:
1. Distribution:
* Data can be placed in many distributed Multi database systems Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.37 databases.
* Databases can be found in the same or different computer systems.
2. Heterogeneity:
* This is found in the differences in technology i.e., software, hardware, and operating system.
* The two types of heterogeneity are those Multi database systems Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.38 The two types of heterogeneity are those
that are due to:
* differences in various DBMSs * differences in data semantics
3. Autonomy:
A component database can have the following autonomies:
•Design Autonomy:Choice of data presentation and attributes.
Multi database systems Cont…
•Communication Autonomy : ability to decide on its own when to communicate with other components of the federated database system.
•Execution Autonomy: ability to execute some of its operations locally without influence by external operations that are executed in other component databases or in the federation database system.
Multi database systems Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.40 y
•Autonomy (A)
A0: Tight integration A1: Semi-autonomous A2: Total isolation •Distribution (D)
Distribution
(A2. D2, H1) Architectural Alternatives (1)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.41
D0: Non-distributed D1: Client Server D2: Peer-to-peer •Heterogeneity (H) • H0: Homogeneous • H1: Heterogeneous Heterogeneity Autonomy (A0. D0, H0) • (A0, D0, H0)
A collection of logically integrated DBMSs on the same site, also called
Composite Systems
Architectural Alternatives (2)
• (A0, D0, H1)
• Providing integrated access to heterogeneous systems on a single machine
• (A0, D1, H0)
Client Server distribution • (A0, D2, H0)
Fully distributed
Architectural Alternatives (3)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.43 • (A1, D0, H0)
• Semi-autonomous systems, also called
Federated Systems.Each DBMS knows how to participate in the federation
• (A1, D0, H1)
Heterogeneous Federated DBMSs. • (A1, D1, H1)
Distributed Heterogeneous Federated Architectural Alternatives (4)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.44 DBMSs
• (A2, D0, H0)
• Multi-database Systems. Complete homogeneity in component systems is unlikely
• (A2, D0, H1)
Heterogeneous Multi-databases. Similar to (A1, D0, H1), but with full autonomy
Architectural Alternatives (5)
• (A2, D1, H1), (A2, D2, H1)
• (Ax, D1, Hy)
Client Server Architecture • (A0, D2, H0)
Major DBMS Architectures (6)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.46 Peer-to-peer Architecture
• (A2, Dx, Hy)
• Multi-database Architecture
• Data management system (different vendors)
• Data Models (i.e. relational, text indexing, object)
• Query the transaction processing
Challenges posed by integrating HDDBS
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.47 Query the transaction processing algorithms
• Data types (i.e., text graphics, multimedia, hypermedia)
• Format (i.e. Structured, unstructured) • Heterogeneity in Semantics
• Typical Heterogeneous databases include: World Wide Web
Multimedia
• Preservation of the database’s autonomy is Challenges posed by integrating HDDBS Cont...
paramount.
• Database Systems can range from: browsing across component databases querying a centralised data warehouse querying multiple databases.
• A heterogeneous database system can be Challenges posed by integrating HDDBS Cont...
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.49 • A heterogeneous database system can be
provided with a multi-database query language.
• Semantic Heterogeneity(Different Database designers represent the same object in different ways.) e.g.
• Synonyms - same entity different names • Homonyms different entities same
Problems in Integrating Heterogeneous Databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.50 • Homonyms - different entities same
names
• Description Heterogeneity
(Different characteristics are used to describe the same object)
M d l H t it
Problems in Integrating Heterogeneous Databases Cont...
• Model Heterogeneity
(Use of different models to represent the same data e.g. SSADM, E-R Diagram, Use Cases)
• Based on complete integration to provide a single view
Advantages:
• Consistent, uniform view of and access to d t f
Global Schema Integration
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.52 data for users
• Users unaware of existing multiple existing DBs
Disadvantages
• Hard to automate creation of a global schema: structural, semantic or behavioral conflicts
• Autonomy esp association autonomy Global Schema Integration Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.53 Autonomy esp. association autonomy sacrificed: all local data and operations to be revealed
• Loss of semantic information depending on how the schema integration is performed • Correctness of global schema is hard to
prove: hard because of context dependent meanings
Global Schema Integration Cont…
• GES : global external schema • GCS : global conceptual schema • LES : local external schema • LCS : local conceptual schema
Acronyms Used
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.55 p
• LIS : local internal schema
• Distribute the functionality between clientand server to better manage the complexity of the DBMS • Two-level Architecture
Client Server Architectures
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.56
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 Server Client
User
Request Response
• A type of network in which eachworkstation
has equivalent capabilities and responsibilities.
• This differs from client/server architectures, in which some computers are dedicated to
Peer-to-peer Arch.
p serving the others.
• Peer-to-peer networks are generally simpler, but they usually do not offer the same performance under heavy loads.
• Created Late 80’s
• Uniform interface to write client s/w
for relational dbs
P
l
t d
t
d d f
Open Database Connectivity
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.58
• Popular - accepted as standard for
relational database
• Single API for client application to
work with different dbs.
• Applications using ODBC API can communicate with any relational db for which there is an ODBC driver • Compared to other db interfaces it is a low
l l i t f
ODBC API (The Interface)
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.59 level interface
• Enables client application to • configure and
• control the relational database at a relatively low level
Limited to relational dbs
Due to relational nature, difficult to use for non-relational data sources, such as
Object dbs
ODBC - Limitations
non-relational dbs
network directory services email stores
• ODBC Driver Manager (ODBC32.DLL) Calls functions in the ODBC drivers (DLLs) to perform operations on the database • Import Library (ODBC32.LIB)
ODBC - Provides
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.61 Client applications link to it to use functions exposed by the ODBC driver manager • ODBC header files for the ODBC API
Client RDBMS Database Server ODBC Drivers ODBC Architecture
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.62 Client Application Code Host System ISAM Files ODBC Driver Manager ODBC32.DLL • Introduction • Transact Sql • History • Releases • Description SQL Server • Description • Future Developments • Working
• Microsoft SQL Server is a relational database management system (RDBMS) produced by Microsoft.
• Its primary query language is Transact-SQL, an implementation of the ANSI/ISO standard
Microsoft SQL Server
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.64 Structured Query Language (SQL) used by both Microsoft and Sybase.
• SQL Server is commonly used by businesses for small- to medium-sized databases, but the past five years have seen greater adoption of the product for larger enterprise databases.
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
Transact-SQL
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.65 • A wide variety of data types
• Temporary objects
• System and extended stored procedures
• Scrollable cursors, • Conditional processing, • Transaction control,
• Exception and error handling, and much
Transact-SQL Cont…
• 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 t
History
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.67 VMS, etc.
• 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 .
• 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.
History Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.68 • Later, Sybase changed the name of its
product to Adaptive Server Enterprise
• 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
History Cont…
Advancements have been made in • performance,
• several complementary systems that are packaged with SQL Server 2005. These include:
• an ETL tool (SQL Server Integration Services or SSIS),
• a Reporting Server,
History Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.70 • an OLAP and data mining server (Analysis
Services), and
• several messaging technologies, specifically Service Broker and Notification Services.
• 1993 - SQL Server 4.21 for Windows NT • 1995 - SQL Server 6.0, codenamedSQL95
• 1996 - SQL Server 6.5, codenamedHydra
• 1999 - SQL Server 7.0, codenamedSphinx
Releases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.71 • 1999 - SQL Server 7.0 OLAP, codenamed
Plato
• 2000 - SQL Server 2000 32-bit, codenamed
Shiloh(version 8.0)
• 2003 - SQL Server 2000 64-bit, codenamed
Liberty
• 2005 SQL Server 2005 codenamedYukon
Releases Cont…
• 2005 - SQL Server 2005, codenamedYukon
• 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 adds additional syntax for use
Description
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.73
y y
in stored procedures, and affects the syntax of transaction support. (Note that SQL standards require Atomic, Consistent, Isolated, Durable or "ACID" transactions.)
• 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
Description Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.74 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).
• According to Microsoft, future versions of SQL Server aim to make data management
• self-tuning, • self organizing, • self maintaining
Future development
self maintaining
• with the introduction of SQL Server Always On technologies, to provide near-zero downtime.
• Microsoft also aims to intrinsically support many digital data formats, including pictures, audio, video and other multimedia data. In current versions, such multimedia data can be stored as BLOBs (binary large objects), but they are generic bitstreams Intrinsic
Future development Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.76 but they are generic bitstreams. Intrinsic awareness of multimedia data will allow specialized functions to be performed on them.
• Better support for unstructured and semi-structured data is planned as well.
What is Object Oriented Database? (OODB)
• A database system that incorporates all the important object-oriented concepts.
• Some additional features
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.77
• Unique Object identifiers • Persistent object handling
Advantages of OODBS
• Designer can specify the structure of objects andtheir 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
• Lack of Industry Standards • RDBMS Popularity
Object Oriented Databases Disadvantages.
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.79 RDBMS Popularity
Spatial Databases
• It had been state that approximately 75% to 80% of all the information contains some notion of the location.
• So Spatial database system give the
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.80 • So, Spatial database system give the
concept of database that helps in keeping the track of objects in multidimensional space.
• A spatial database is also known as a database that is used to store and querying data related to the object in space like points, lines and polygons etc.
Spatial Databases Cont…
• While we can see that most of the data layer can deals with various numeric and character data types in order to implements spatial databases some additional functionalities needs to added in the database to add-on some geometry related spatial data types.
• A most common example for the spatial data we can see in the map of road, in which we can see various spatial objects along the 2-Dimension, some of these spatial objects are points, line and polygons etc. these objects some how can represents roads, cities, state boundaries etc.
Spatial Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.82
• A road map is a classic example of spatial information. The roads, cities, state boundaries reside on the piece of paper in 2-D format. A GIS is used to retrieve, store and manage the spatial data.
Types of Queries supported by spatial Databases:
1. Spatial Scope-Distance Query. 2. Spatial Nearly Queries 3. Joins Queries.
Spatial Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.83 3. Joins Queries.
Multimedia Databases
• Multimedia Database System(MMDBS) are createdin 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, retailing, entertainment and e-libraries etc.
libraries etc.
• The multimedia data has the influence both directly as well as indirectly in the development of
• 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.
Multimedia Databases
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.85 • 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.
Multimedia Databases Cont...
• Multimedia data characterize in images, video,audio and text.
• Moreover, MMDBSs are very necessary for the
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.86
y y
efficient as well as effective management of large amount of multimedia data.
Deductive Databases
• A deductive database is a database system thatcan 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.
• Deductive data bases are based on the desire of combining logic programming with the RDBMS to made such a system that support powerful calculation and also system can give very fast response time and deals with large datasets. Deductive database systems are far more
Deductive Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.88 Deductive database systems are far more.
• Expensive than a RDBMS system but economical against logic programming systems.
• Now a days, Deductive database systems are largely used in academics as compare to industries,
Deductive Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.89 but lot many concepts of Deductive database system are used in today's Relation Database systems to give support to various new SQL standards.
Temporal Databases
• Temporal database are created to store thetemporal 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
• Temporal database objects are defined using TDDL while Temporal database are manipulated i.e., update, delete and retrieve etc. with the help of TDML.
Temporal Databases Cont…
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.91 • Further, it can be seen that some specific queries
related to the temporal data are very difficult to express in term of simple SQL query, while temporal DBMS give us a better support to implements these specific queries, it may also be possible to use SQL queries for these purpose but again the performance factor is a big issue.
Short Questions
• Explain about the federated database give any example ?
• What is Open database connectivity? • Briefly describe the architecture of SQL
server?
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.92 server?
• Write some difference between
heterogeneous and homogenous DDBMS?
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 (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
Long Questions
• Difference between homogenous DDBMS and heterogeneous DDBMS ? Give one example in each case?
• Explain client server database and peer to
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.94 • Explain client –server database and peer to
peer architecture?
• Explain reference architecture of federated database ?
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 “Advanced Database Technology and
© Bharati Vidyapeeth’s Institute of Computer Applications and Management, New Delhi-63,By Shivendra Goel. U4.95
3. Mario Piattini, 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”,