Chapter 1: Introduction Database Management System (DBMS)
Chapter 1: Introduction Database Management System (DBMS)
Chapter 1: Introduction
View of Data
Database Languages
Database Applications:
Relational Databases
Database Design
Transaction Management
Database Architecture
Overall Structure
file systems
Multiple
Need
Integrity problems
Integrity
Hard
Example:
Atomicity of updates
Failures
Uncontrolled
constraints
Security problems
Hard
View of Data
Levels of Abstraction
An architecture for a database system
Physical level: describes how a record (e.g., customer) is stored.
Logical level: describes data stored in database, and the relationships
Data Models
Data
Data relationships
Data semantics
Data constraints
Relational model
Physical Data Independence the ability to modify the physical schema without
changing the logical schema
In general, the interfaces between the various levels and components should
be well defined so that changes in some parts do not seriously influence others.
Network model
Hierarchical model
Example:
Database schema
Integrity constraints
Specifies
Domain
constraints
Referential
Assertions
Authorization
Relational Model
10
11
12
SQL
Database Design
The process of designing the general structure of the database:
Example:
select
from
where
Example: Find the balances of all accounts held by the customer with
customer-id 192-83-7465
select account.balance
from
depositor, account
where depositor.customer_id = 192-83-7465 and
depositor.account_number = account.account_number
13
14
Storage Management
Described
between the low-level data stored in the database and the application
programs and queries submitted to the system.
The storage manager is responsible to the following tasks:
by a set of attributes
Issues:
15
Storage access
File organization
16
Query Processing
Query Processing
Equivalent expressions
3. Evaluation
Cost difference between a good and a bad way of evaluating a query can
be enormous
Need to estimate the cost of operations
17
18
Transaction Management
Database Users
the system
19
20
Database Administrator
Schema definition
21
22
History
Tapes
1980s:
SQL
1990s:
2000s:
23
24