Chapter 2 DataBase System Concepts and Architecture
Chapter 2 DataBase System Concepts and Architecture
2-1 2-1
2.1 Data Models, Schemas, and Instances
‧data types
‧relationships
Data Model: A set of concepts to describe the structure of a
database, and certain constraints that the database should obey.
Provide data abstraction
2-2 2-2
2.1.1 Categories of Data Models:
- Conceptual (high-level, semantic) data models: Provide concepts that
are close to the way many users perceive data.
(Also called entity-based or object-based data models.)
‧entity ‧attribute ‧relationship
schema construct
Known data:
name of record types, data items
2-4a 2-5
Figure 1.2
UNIVERSITY Database
2-4 2-6
define
empty state
load
initial state
update
valid state
state satisfy database schema
update
2-3 2-7
2.2 DBMS Architecture and Data Independence
Mappings among schema levels are also needed. Programs refer to an external
schema, 2-5 2-8
Figure 2.2 The Three-schema architecture 2-6
2-6 2-9
2.2.2 Data Independence By adding or removing a record type or data
item to
· expand the database (2-11)
· reduce the database
Logical Data Independence: The capacity to change the conceptual schema without
having to change the external schemas and their application programs.
Physical Data Independence: The capacity to change the internal schema without
having to change the conceptual schema.
-Procedural DML:
• Also called record-at-a-time (record-oriented) or low-level DML
• Must be embedded in a programming language.
• Searches for and retrieves individual database records and uses looping
and other constructs of the host programming language to retrieve multiple
records.
- User-friendly interfaces:
-Menu-based Interfaces for Browsing.
-Forms-based Interfaces.
-Graphical User Interfaces.
-Natural language Interfaces
-Combination of the above
Figure 2.3
2-11 2-15
2.4.2 Database System Utilities
2-12 2-16
2.4.3 Tools, Application Environments, and
Communications Facilities
Communications Facilities
- Allow users at locations remote from the database system site to access
the database.
DB (DBMS)/DC (Data Communication System)
2-12 2-17
2.5 Classification of Database Management Systems
Based on the data model used:
•Data models
-Traditional: Relational, Network (see 2-19), Hierarchical
- Emerging: Object-oriented, Semantic, Entity- Relationship, other.
Other classifications:
•Number of users : Single-user (typically used with personal computers) vs.
multi-user (most DBMSs)
•Number of sites:
Centralized (uses a single computer) vs. distributed (uses multiple computers).
Homogeneous vs. Heterogeneous
• Cost of DBMS software. $10,000~100,000
$100~3,000
•Types of access paths used. (inverted file structures, …)
•Purpose general purpose
special purpose
e.g. airline reservations, telephone directory, on-line transaction
processing system
2-13 2-18
Figure 2.4 A Network Schema
2-14 2-19