Chapter 02
Chapter 02
CHAPTER 2
Database System
Concepts and
Architecture
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 1- 2
Outline
Data Models and Their Categories
History of Data Models
Schemas, Instances, and States
Three-Schema Architecture
Data Independence
DBMS Languages and Interfaces
Database System Utilities and Tools
Centralized and Client-Server
Architectures
Classification of DBMSs
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 3
Data Models
Data Model:
A set of concepts to describe the structure of a
database, the operations for manipulating these
structures, and certain constraints that the
database should obey.
Data Model Structure and Constraints:
Constructs are used to define the database
structure
Constructs typically include elements (and their
data; these
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 4
Data Models (continued)
Data Model Operations:
These operations are used for specifying
database retrievals and updates by referring
to the constructs of the data model.
Operations on the data model may include
basic model operations (e.g. generic insert,
delete, update) and user-defined operations
(e.g. compute_student_gpa,
update_inventory)
Menu-based (Web-based), popular for
browsing on the web
Forms-based, designed for naïve users
used to filling in entries on a form
Graphics-based
Point and Click, Drag and Drop, etc.
Specifying a query on a schema diagram
Natural language: requests in written
English
Combinations of the above:
For example, both menus and forms
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 25
Other DBMS Interfaces
Natural language: free text as a query
Speech : Input query and Output
response
Web Browser with keyword search
Parametric interfaces, e.g., bank tellers
using function keys.
Interfaces for the DBA:
Creating user accounts, granting
authorizations
Setting system parameters
Changing schemas or access paths
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 26
Database System Utilities
To perform certain functions such as:
Loading data stored in files into a
database. Includes data conversion
tools.
Backing up the database periodically
on tape.
Reorganizing database file structures.
Performance monitoring utilities.
Report generation utilities.
Other functions, such as sorting, user
monitoring, data compression, etc.
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 27
Other Tools
Data dictionary / repository:
Used to store schema descriptions and
other information such as design
decisions, application program
descriptions, user information, usage
standards, etc.
Active data dictionary is accessed by
DBMS software and users/DBA.
Passive data dictionary is accessed
by users/DBA only.
Hierarchical.
Currently Used: Relational, Object-oriented,
Object- relational
Recent Technologies: Key-value storage
systems, NOSQL systems: document based,
column-based, graph-based and key-value
based. Native XML DBMSs.
Other classifications
Single-user (typically used with personal
computers) vs. multi-user (most DBMSs).
DB s )
Co pyrig ht © 2016 Ramez Elmasri and Shamkant Slide 2- 40
Variations of Distributed DBMSs
(DDBMSs)
Homogeneous DDBMS
Heterogeneous DDBMS
Federated or Multidatabase Systems
Participating Databases are loosely
coupled with high degree of autonomy.
Distributed Database Systems have now
come to be known as client-server based
database systems because:
They do not support a totally distributed
environment, but rather a set of database
servers supporting a set of clients.
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 41
Cost considerations for DBMSs
Cost Range: from free open-source
systems to configurations costing
millions of dollars
Examples of free relational DBMSs: MySQL,
PostgreSQL, others
Commercial DBMS offer additional specialized
modules,
e.g. time-series module, spatial data module,
document
module, XML module
These offer additional specialized
functionality when purchased separately
Sometimes called cartridges (e.g., in Oracle)
or blades
Different licensing options: site license, maximum
Slide 2- 42
Copyright © 2016 Ramez Elmasri and Shamkant B.
Other Considerations
Type of access paths within database
system
E.g.- inverted indexing based (ADABAS is
one such system).Fully indexed databases
provide access by any keyword (used in
search engines)
General Purpose vs. Special Purpose
E.g.- Airline Reservation systems or many
others- reservation systems for hotel/car
etc. Are special purpose OLTP (Online
Transaction Processing Systems)
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 43
History of Data Models (Additional
Material)
Network Model
Hierarchical Model
Relational Model
Object-oriented Data
Models
Object-Relational Models
MySQL,
PostgreSQL
Currently most dominant for developing
database applications.
SQL relational standards: SQL-89 (SQL1),
SQL-92 (SQL2),
SQL-99, SQL3, …
Chapters 5 through 11 describe this model
Copyright © 2016 Ramez Elmasri and Shamkant B. Slide 2- 50
History of Data Models
Object-oriented Data Models:
Several models have been proposed for
implementing in a database system.
One set comprises models of persistent O-O
Programming Languages such as C++ (e.g., in
OBJECTSTORE or VERSANT), and Smalltalk (e.g., in
GEMSTONE).
Additionally, systems like O2, ORION (at MCC -
then ITASCA), IRIS (at H.P.- used in Open
OODB).
Object Database Standard: ODMG-93, ODMG-
version 2.0,
ODMG-version 3.0.
Chapter 12 describes this model. Slide 2- 51
Copyright © 2016 Ramez Elmasri and Shamkant B.
History of Data Models
Object-Relational Models:
The trend to mix object models with
relational was started with Informix
Universal Server.
Relational systems incorporated
concepts from object databases leading
to object-relational.
Exemplified in the versions of Oracle,
DB2, and SQL Server and other DBMSs.
Current trend by Relational DBMS vendors is
to extend relational DBMSs with capability
to process XML, Text and other data types.
Slide 2- 52
Chapter Summary
Data Models and Their Categories
Schemas, Instances, and States
Three-Schema Architecture
Data Independence
DBMS Languages and Interfaces
Database System Utilities and Tools
Database System Environment
Centralized and Client-Server
Architectures
Classification of DBMSs
History of Data Models Slide 2- 53
Copyright © 2016 Ramez Elmasri and Shamkant B.