Dbms Introduction
Dbms Introduction
Database and
Management System
What is a Database?
To find out what database is, we have to start from data, which is the
1, ABC, 19 etc).
Record: Collection of related data items, e.g. in the above example the
collection of tables:
Chapter 1: Introduction
Purpose of Database Systems
View of Data
Database Languages
Relational Databases
Database Design
Object-based and semistructured databases
Data Storage and Querying
Transaction Management
Database Architecture
Database Users and Administrators
Overall Structure
History of Database Systems
Database Applications:
file systems
Integrity problems
Atomicity of updates
Security problems
Levels of Abstraction
Physical level: describes how a record (e.g., customer) is stored.
Logical level: describes data stored in database, and the relationships
View of Data
An architecture for a database system
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.
Data Models
A collection of tools for describing
Data
Data relationships
Data semantics
Data constraints
Relational model
Entity-Relationship data model (mainly for database design)
Object-based data models (Object-oriented and Object-relational)
Semistructured data model (XML)
Other older models:
Network model
Hierarchical model
Example:
char(10),
integer)
Database schema
Integrity constraints
Domain constraints
Assertions
Authorization
Relational Model
Example of tabular data in the relational model
Attributes
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
Database Design
The process of designing the general structure of the database:
Logical Design Deciding on the database schema. Database design
database language
The ability to specify new tags, and to create nested tag structures
XML has become the basis for all new generation data interchange
formats.
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.
Issues:
Storage access
File organization
Query Processing
1. Parsing and translation
2. Optimization
3. Evaluation
Equivalent expressions
Cost difference between a good and a bad way of evaluating a query can
be enormous
Transaction Management
A transaction is a collection of operations that performs a single
Database Architecture
The architecture of a database systems is greatly influenced by
the underlying computer system on which the database is running:
Centralized
Client-server
Parallel (multi-processor)
Distributed
Database Users
Users are differentiated by the way they expect to interact with
the system
Application programmers interact with system through DML calls
Sophisticated users form requests in a database query language
Specialized users write specialized database applications that do
Database Administrator
Coordinates all the activities of the database system; the
Schema definition
History (cont.)
1980s:
1990s:
2000s:
End of Chapter 1
Figure 1.4
Figure 1.7