1 introduction introduction to database systems database management systems (dbms) type of databases...
Post on 22-Dec-2015
243 views
TRANSCRIPT
![Page 1: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/1.jpg)
1
Introduction
• Introduction to database systems
• Database Management Systems (DBMS)
• Type of Databases
• Database Design
• Database Design Considerations
![Page 2: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/2.jpg)
2
Introduction to database systems
What is a Database?• Collection of data central to some enterprise• Essential to operation of enterprise
– Contains the only record of enterprise activity
• An asset in its own right– Historical data can guide enterprise strategy– Of interest to other enterprises
• State of database mirrors state of enterprise– Database is persistent
![Page 3: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/3.jpg)
3
What is a Database?
• A database is a software program that stores information, which relates to a particular activity or purpose
• Examples– A bank needs to store the information relating to
customer accounts, – A hospital needs to keep data about patients and the
medication dispensed.– A university needs to maintain a record of its students– An internet sales business
![Page 4: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/4.jpg)
4
What is a Database?
• A database includes tools to help organise and maintain the data
• In a properly designed database, the information is updated once and all other occurrences of this within the database will be updated automatically.
• A principal requirement of any database system is the ability to generate, store and retrieve data efficiently
![Page 5: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/5.jpg)
5
Basic components of typical database systems
![Page 6: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/6.jpg)
6
![Page 7: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/7.jpg)
7
![Page 8: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/8.jpg)
8
![Page 9: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/9.jpg)
9
![Page 10: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/10.jpg)
10
![Page 11: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/11.jpg)
11
![Page 12: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/12.jpg)
12
![Page 13: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/13.jpg)
13
![Page 14: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/14.jpg)
14
![Page 15: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/15.jpg)
15
What is a Database Management System?
• A Database Management System (DBMS) is a program that manages a database:– Supports a high-level access language (e.g.
SQL).– Application describes database accesses using
that language.– DBMS interprets statements of language to
perform requested database access.
![Page 16: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/16.jpg)
16
What is a Transaction?
• When an event in the real world changes the state of the enterprise, a transaction is executed to cause the corresponding change in the database state– With an on-line database, the event causes the
transaction to be executed in real time
• A transaction is an application program with special properties - discussed later - to guarantee it maintains database correctness
![Page 17: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/17.jpg)
17
What is a Transaction Processing System?
• Transaction execution is controlled by a TP monitor– Creates the abstraction of a transaction, analogous
to the way an operating system creates the abstraction of a process
– TP monitor and DBMS together guarantee the special properties of transactions
• A Transaction Processing System consists of TP monitor, databases, and transactions
![Page 18: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/18.jpg)
18
Transaction Processing System
TP Monitor
DBMS databasetran
sact
ions
DBMS database
![Page 19: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/19.jpg)
19
System Requirements
• High Availability: on-line => must be operational while enterprise is functioning
• High Reliability: correctly tracks state, does not lose data, controlled concurrency
• High Throughput: many users => many transactions/sec
• Low Response Time: on-line => users are waiting
![Page 20: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/20.jpg)
20
System Requirements (con’t)
• Long Lifetime: complex systems are not easily replaced– Must be designed so they can be easily
extended as the needs of the enterprise change
• Security: sensitive information must be carefully protected since system is accessible to many users– Authentication, authorization, encryption
![Page 21: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/21.jpg)
21
Roles in Design, Implementation, and Maintenance of a TPS
• System Analyst - specifies system using input from customer; provides complete description of functionality from customer’s and user’s point of view
• Database Designer - specifies structure of data that will be stored in database
• Application Programmer - implements application programs (transactions) that access data and support enterprise rules
![Page 22: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/22.jpg)
22
Roles in Design, Implementation and Maintenance of a TPS
(con’t)• Database Administrator - maintains
database once system is operational: space allocation, performance optimization, database security
• System Administrator - maintains transaction processing system: monitors interconnection of HW and SW modules, deals with failures and congestion
![Page 23: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/23.jpg)
23
OLTP vs. OLAP
• On-line Transaction Processing (OLTP) – Day-to-day handling of transactions that result
from enterprise operation – Maintains correspondence between database
state and enterprise state
• On-line Analytic Processing (OLAP) – Analysis of information in a database for the
purpose of making management decisions
![Page 24: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/24.jpg)
24
OLAP
• Analyzes historical data (terabytes) using complex queries
• Due to volume of data and complexity of queries, OLAP often uses a data warehouse
• Data Warehouse - (offline) repository of historical data generated from OLTP or other sources
• Data Mining - use of warehouse data to discover relationships that might influence enterprise strategy
![Page 25: 1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations](https://reader036.vdocuments.net/reader036/viewer/2022062314/56649d7d5503460f94a5fb50/html5/thumbnails/25.jpg)
25
Examples - Supermarket
• OLTP– Event is 3 cans of soup and 1 box of crackers
bought; update database to reflect that event
• OLAP– Last winter in all stores in northeast, how many
customers bought soup and crackers together?
• Data Mining– Are there any interesting combinations of foods
that customers frequently bought together?