Title: Kszlt a HEFOP3'3'1P'20040600181'0 projekt keretben
1Készült a HEFOP-3.3.1-P.-2004-06-0018/1.0 projekt
keretében
A szakirány neve
- DATABASE MANAGEMENT SYSTEMS
Modul 1 1.1 Introduction (1 lecture)
Az Európai Szociális Alap támogatásával
2Outline
- What is a DBMS
- -properties
- -users
- -history
- - File Management System versus DBMS
- - DBMS overall structure
- What is Data Modelling
- -notion
- -model classification
- -modern and historical models and examples
- Data abstraction levels, examples
3- DBMS
- Aim
- Averall (simplified, abstract) view
- Basic notions
- Words
4- Notion of a Database
- What is data?
- What is information?
- What is a Database?
- DBMSDataBaseManagementSystem
5- Properties
- 1. DATA DESCRIPTION, NEW DATABASE
- New database can be constructed
- Logical structure of data can be described
- Data Definition Language DDL
6- 2. GETTING DATA FROM THE DATABASE
- Data can be get back through queries efficiently
- Query Language
- Data can be modified easily
- Data Manipulation Language (DML)
7- 3. STORING DATA
- Huge amount of data must be safely stored
- Safe storage
- it must be defended against unauthorized
users Grants - - it must be defended against failors
- DBMS Recovery Systems
8- 4. MULTIUSER ENVIRONMENT
- Concurrent usage
- Transaction Management
- Concurrency Control
9abstraction
WORLD
DATA MODEL
Data models serve for describing the structure
of the database. In a data model we do
not care with the concret values of a data,
rather only the relationships among these
data. Many database can satisfy a given database
model. The structured data, with the given
values, satisfying the database model is called
the database instance.
10Data abstraction levels
11Abstraction levels
- I. View level
- What a user can see from the database not the
whole model can be seen ( subschemas - SDDL) - - what particular relationships are required by
users? - -more abstract because partial - typically very
high-level knowledge - constitutes the view
- II. Logical/Conceptual level
- The complete database model (schema - DDL)
- - what meaningful relationships are expressed by
the physical data? - - entities, and relationships between entities
- III. Physical level
- Storage and access methods, files, indeces, other
storing structures - -how is the data actually represented in the
hardware? - -bits, bytes
12- Data independence
-
- logical logical level can be modified without
modifying physical level - physical physical level can be modified without
modifying logical level
13- Example Consider an n x m array.
- Physical level
- m x n (consecutive ) memory location
- Logical level
View level 2(m x n) possible view
14- Model logical level schema
- type tgridarray1..2, 1..3 of integer
- var vgrid1, vgrid2tgrid
- An instance
15- ? Object based models
- Entity/Relationship diagram (graphycal standard)
- Objectumoriented model, ODL (C like standard
for describing data structures) - Unified Model Language (UML)
16- Record based models
-
- Relational model
- Constraint Model
- Network model (historical)
- Hierarchical model (historical)
17- History by topic
- Examples
- Banking systems
- (Airlines) Seat reservation systems
- Company Administration
18- Banking systems
- User Programs
- -accounts-deposits, withdraws
- -new accounts
- -balance
- -monthly reports
- Data items customers(name, address,
account-no)accounts(account-no, balance,
type)Type could be savings or checking
19(Airlines) Seat reservation systems
- Data items
- customers(name, address, phone, flight-number)
- flights(flight-number, departure, arrival,
airport) - seats(flight-number,seat-id., name)
20Company administration
- sells, bills (in-out)
- - what could be the data items?
21File management systems
- Files could have different structures
(sequential, ..)- New questions new programs - Data could be stored in different storage places
which make writing new programs difficoult - Constraints can be hardly checked
- - Atomicity level is the whole file
- - Concurrency is almost impossible
- Cont
22File management systems
- Safety can not be guaranteed
- Abstraction level is law-the programmer should
know the physical level for writing new programs
23History by models
- First DBMS
- - network model (graph)
- - hierarchical model (tree)
- - relational model (Codd, 1970)
24Who use DBMS?
- Administrator
- Tasks
- - logical schema modification
- - logical schema definiton
- - physical schema modification
- - constraints definitions
- - constraints modifications
- - authorization
- - routine maintenance
25Who use DBMS?
- Other users
- -programmers
- -naive users
- -sophisticated users
26DBMS STRUCTURE
- Storage manager (program)- authorization and
integrity manager - file-manager
- buffer manager
Query processing (progams)- DDL / DML
interpreter / compiler - DML precompiler
Query evaluation-optimization
27DBMS STRUCTURE
- Transaction manager (program)
- Controls the correct concurrent running
- Atomicity all-or-none
- Consistency correctness
- Isolation if I were alone..
- Tools locking, validation, time-stamping
- Durability ..forever? Tools
journal-files, mirroring..
28DBMS STRUCTURE
- Physical storage (device)
- real data (the pure database)
- metadata indeces statistical data
- data dictionary-records data structures
29DBMS STRUCTURE
- Klient - server architectures
- - 2 triers
-
- - 3 tiers
30- DBMS simplifyied structure
31Slide from Silberschatz-Korth-Sudarsan DATABASE
SYSTEMS CONCEPTS http//db-book.com/, 1.26
slide, completion by BNÁ
32Other directions (will be partly covered)
- Object oriented database systems
- -Active elements - constraints - triggers
- Multimedia databases
- Data Warehouse