Professional Documents
Culture Documents
CHAP10-database & Dtabase MGT System
CHAP10-database & Dtabase MGT System
CHAP10-database & Dtabase MGT System
Chapter 10
The Database and Database
Management System
File
Record
Element
Data Management Activities
Data collection
Integrity and verification
Storage
Maintenance
Security
Organization
Retrieval
Secondary Storage
Two types
1.Sequential
» Magnetic tape storage
» Media
Reels
Cartridges
» A tape record
» Blocks of records
2.Direct access
» Magnetic disk
Disk stack; access mechanism, track, cylinder concept
A Magnetic Tape Record
A Magnetic Tape File
Used to attach
to take-up reel The First
(about 25 feet) data record
Used to identify
Take-up the tape
reel
Transaction
file
Old master file
Update
master file New master file
Direct Access Storage (DASD)
- Reading and writing
- The disk address
- Record addressing schemes
» Direct
» Hashing scheme or randomizing formula
» Indexed sequential
- Used as a master file medium, intermediate
storage medium, and input medium
- Compact disks
A Disk Stack
Access 10 Access 404 Tracks 11 disks
mechanism arms
000 403
20 20 Tracks
Read/write
heads
A DASD Address
2 0 9 0 7 0 0 3
Track Read/write Record
number head number number
Updating a Master File
Transaction
data
Enter
Step 1 transaction data
Update
Master
Step 2 master
file file
Optical Disks ( laser, compact )
5¼" compact disk = 650 MB average
Sorted
transaction
data Old
Inventory
Step 2 Update inventory file
file
New
Transaction Inventory
data file
Sorted
transaction Old
data Sales
Analysis
Update Sales
Step 6 Analysis file
file
New
Sales
Analysis
file
Online Processing
Enter single
transaction Files
record
Inventory
Accounts
Update Receivable
Sales
Analysis
Applications Determine Media
Applications
Batch Online
Realtime
Sequen- Direct
tial
Dawn of the Database Era (Mid-1960s)
Use logical organization to overcome
limitations of physical organization
Inverted files
- Inverted file index
Linked lists
- Link (pointer) field
- Head, tail
Logical integration of files
- GE’s IDS (Integrated Data Store)
The Database Concept
Database definition
An integrated collection of computer data,
organized and stored in a manner that
facilitates easy retrieval.
Database concept
Data independence -- keep data
specifications separate from programs, in
tables and indexes
Data hierarchy; database, file, record, data element
Salesperson Salesperson Customer Customer Customer Customer
number name 1 2 3 n
16 17042 21096
20 41854
23 23694 25410 30102 30111
31 31002
56 34107 13109
92 20842
98 61634
104 10974
110 16342 64210 51263 41782
22504
23694 23 25410
24782
25409
25410 23 30102
26713
28914
30004
30102 23 30111
30111 23
30417
*
31715
Data Record
Salesperso Sale Customer Accounts
statistics
s
n file file
file receivable
file
Accounts
Buyer Inventory Vendor
payable
file file file
file
Purchase General
order ledger
file file
Accounts receivable
record
DBMS
Examples
- IBM’s IMS
- Intel’s SYSTEM 2000
- SQL/DS
- QBE
- Oracle
Creating a Database
Two approaches:
3.
Describe
information needs
Defined by
Taking a
4.
Determine
the necessary Problem-
Oriented
processing
Specify Approach
5. data needs
Data
6. Specifications
Data Documentation
Enterprise
Data Model
Data Needs Can
Develop
Be Defined by
2. Database Creating an
Enterprise
Model
Database
Describing the Database Contents
Data dictionary
Enter
Step 1 dictionary data
Data description
Step 2 language (DDL)
Schema
Using a Database
Database user
- Person (query language)
- Application program (data manipulation
language, DML)
DBMS events
DBMS Events
Primary storage
Operating system
Schema Subschema
Application
Step 4 DBMS program
Step 6
Step 7
Buffer storage area Step 5 User’s input, output, and
working areas
Step 4
Data flow
A DBMS
language
processor
Model Database
description
(schema)
Database manager
Query Data manipulation
Database
language language (DML)
Performance
statistics
Application programs
Performance
statistics
processor Transaction
log
Information
Information
Performance requests
statistics Backup/recovery
module
The Database Administrator
(DBA)
D B A Duties
Database planning; work with users and
others, define schema, etc.
Database implementation; creating the
database and enforcing policies and
procedures
Database operations
Database security
DBA Duties
4.
Security
3.
Operation
Use
Imple- Planning
mentation
Analysis
2. Design
Implementation
1.
Planning
Knowledge Discovery in
Databases
Data warehousing
- refinement in the database concept to make it
» very large
» very pure
» very retrievable
Data mart
- a more modest approach than data
warehousing, generally only one segment of
the firm
Knowledge Discovery in
Databases (continued)
Data mining
- the process of finding relationships in data
that are unknown to the user
- may be for
» verification
» discovery
» combination of verification and discovery
The Knowledge Discovery in
Database Process
1. Define the data and the task
2. Acquire the data
3. Clean the data
4. Develop the hypothesis and search model
5. Mine the data
6. Test and verify
7. Interpret and use
DBMS Advantages
Resource demands
Software
Hardware
Information specialists
Putting it all Together
The ideal situation
Enterprise planning Executives