Professional Documents
Culture Documents
Chapter 1: Introduction
Purpose of Database Systems
View of Data
Database Languages
Relational Databases
Database Design
Transaction Management
Database Architecture
Database Users and Administrators
Overall Structure
History of Database Systems
1.2
Database Applications:
1.3
file systems
Integrity problems
1.4
Atomicity of updates
Security problems
1.5
View of Data
A database system is a collection of interrelated data and a set of
abstract view of the data. That is, the system hides certain details of
how data are stored and maintained.
1.6
Levels of Abstraction
1.7
View of Data
An architecture for a database system
1.8
Example: The database consists of information about a set of customers and accounts
and the relationship between them)
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.
Logical Data Independence - the ability to modify the logical schema without causing
application programs to be rewritten.
1.9
Data Models
A collection of tools for describing
Data
Data relationships
Data semantics
Data constraints
Network model
Hierarchical model
1.10
Database Languages
DDL
DML
1.11
1.12
Example:
char(10),
integer)
Database schema
Integrity constraints
Domain constraints
Assertions
Authorization
1.13
Relational Model
Example of tabular data in the relational model
1.14
Attributes
1.15
SQL
SQL: widely used non-procedural language
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
1.16
Database Design
The process of designing the general structure of the database:
Logical Design Deciding on the database schema. Database design
1.17
1.18
Storage Management
Storage manager is a program module that provides the interface
between the low-level data stored in the database and the application
programs and queries submitted to the system.
Transaction manager
File manager
Buffer manager
1.19
access data.
Buffer manager : responsible for fetching data from disk storage into
main memory and decide what data to cache in main memory. The
data buffer manager is a critical part of the database system, since it
enables the database handle data sizes that are much larger than the
size of main memory.
1.20
Indices: Provide first access to the data items. Like index of the
textbook,
1.21
Database Users
Users are differentiated by the way they expect to interact with the system
Application programmers
Can use RAD tools for constructing forms and reports with minimal
programming efforts.
Sophisticated users
Analyst
1.22
Naive users
Read reports
1.23
Database Administrator
Coordinates all the activities of the database system; the database
1.24
1.25
Figure 1.7
1.26
End of Chapter 1