Kszlt a HEFOP3'3'1P'20040600181'0 projekt keretben - PowerPoint PPT Presentation

1 / 32
About This Presentation
Title:

Kszlt a HEFOP3'3'1P'20040600181'0 projekt keretben

Description:

abstraction. Data models serve for describing the structure ... Abstraction level is law-the programmer should know the physical level for writing new programs ... – PowerPoint PPT presentation

Number of Views:28
Avg rating:3.0/5.0
Slides: 33
Provided by: agi57
Category:

less

Transcript and Presenter's Notes

Title: Kszlt a HEFOP3'3'1P'20040600181'0 projekt keretben


1
Ké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
2
Outline
  • 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

9
  • Data(base) models

abstraction

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.

10
Data abstraction levels
11
Abstraction 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)

20
Company administration
  • sells, bills (in-out)
  • - what could be the data items?

21
File 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

22
File management systems
  • Safety can not be guaranteed
  • Abstraction level is law-the programmer should
    know the physical level for writing new programs

23
History by models
  • First DBMS
  • - network model (graph)
  • - hierarchical model (tree)
  • - relational model (Codd, 1970)

24
Who use DBMS?
  • Administrator
  • Tasks
  • - logical schema modification
  • - logical schema definiton
  • - physical schema modification
  • - constraints definitions
  • - constraints modifications
  • - authorization
  • - routine maintenance

25
Who use DBMS?
  • Other users
  • -programmers
  • -naive users
  • -sophisticated users

26
DBMS STRUCTURE
  • Schema definition
  • Storage manager (program)- authorization and
    integrity manager
  • file-manager
  • buffer manager

Query processing (progams)- DDL / DML
interpreter / compiler - DML precompiler
Query evaluation-optimization
27
DBMS 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..

28
DBMS STRUCTURE
  • Physical storage (device)
  • real data (the pure database)
  • metadata indeces statistical data
  • data dictionary-records data structures

29
DBMS STRUCTURE
  • Klient - server architectures
  • - 2 triers
  • - 3 tiers

30
  • DBMS simplifyied structure

31
Slide from Silberschatz-Korth-Sudarsan DATABASE
SYSTEMS CONCEPTS http//db-book.com/, 1.26
slide, completion by BNÁ
32
Other directions (will be partly covered)
  • Object oriented database systems
  • -Active elements - constraints - triggers
  • Multimedia databases
  • Data Warehouse
Write a Comment
User Comments (0)
About PowerShow.com