Beruflich Dokumente
Kultur Dokumente
¾ A database is a collection of related data Sales Order program Payroll program Invoicing program
¾ Implicit properties:
A database represents some aspect of real-world (miniworld)
A database is designed for some specific application Customer Inventory Salesman Employee Customer
It has an intended group of users Traditional File processing approach
DBMS
3
Database as a collection of related files 4
A more formal definition of a Database Why use a DBMS?
¾ A database is a mechanized, shared, formally defined and ¾ A Database Management System (DBMS) is a software
centrally controlled collection of data. package designed to store and manage databases
Data sharing
Minimal data redundancy
¾ Implications:
Consistency of data
Multiple Independent Users
Integrity and Security
Concurrent Access
Reduced application development time
Central Repository
Data Independence
Information
– Logical and Physical data independence
– New data requirement
– Representation of data
– Structure of stored files
5 6
Staff-no
Invoice Staff-name
Program Customer-no
Address
Customer-name
Personnel Tel-no
Address
Customer Salary
Tel-no
Credit-limit
Stored as real number
Change storage from real to binary
Email address to be inserted
Assume Personnel file is stored as an indexed file; now, changed
Invoice Program should NOT be affected to hashed file.
¾ End-users: interact with the database applications Evolution of database management systems
Object-Oriented
Hierarchical DBMS
¾ Application programmers DBMS
Deductive
¾ Database administrator (DBA) Conventional Relational DBMS
DBMS
Deciding information content of database files
Deciding storage structure and access strategy Distributed
DBMS
Liaise with users
Defining security and integrity checks XML
Network
Backup and recovery strategy DBMS Database
Monitoring performance
9 10
Stored Database
11 12
Why is the 3-layer model important? Benefits of Data Independence
¾ Data Independence: programs are insulated from changes ¾ Gives users a simpler 'view' of database
(incl. the way data is structured and stored)
Hotel Bencoolen ¾ Immunity from changes in schema - growth & restructuring
¾ Security
EXTERNAL
SCHEMA
CONCEPTUAL SCHEMA 13 14
Review
19