File Systems and Databases: Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel
File Systems and Databases: Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel
LEARNING GOAL:
• What a database is, what it does, and why
database design is important
• How modern databases evolved from files and file
systems
• About flaws in file system data management
• What a DBMS is, what it does, and how it fits into
the database system
• About types of database systems and database
models
2
1
Database Management
• Database is shared, integrated computer
structure housing:
– End user data
– Metadata
• Database Management System (DBMS)
– Manages Database structure
– Controls access to data
– Contains query language
3
1
4
1
METADATA
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 5
1
METADATA
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 6
1
Importance of DBMS
• Makes data management more efficient and
effective
• Query language allows quick answers to ad
hoc queries
• Provides better access to more and
better-managed data
• Promotes integrated view of organization’s
operations
• Reduces the probability of inconsistent data
7
1
Figure 1.2
8
1
Database Design
• Importance of Good Design
– Poor design results in unwanted data redundancy
– Poor design generates errors leading to bad
decisions
• Practical Approach
– Focus on principles and concepts of database
design
– Importance of logical design
9
1
10
1
File Terminology
• Data
– Raw Facts
• Field
– Group of characters with specific meaning
• Record
– Logically connected fields that describe a person,
place, or thing
• File
– Collection of related records
11
1
Figure 1.5
12
1
13
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 14
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 15
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 16
1
Database Systems
• Database consists of logically related data stored
in a single repository
• Provides advantages over file system
management approach
– Eliminates inconsistency, data anomalies, data
dependency, and structural dependency problems
– Stores data structures, relationships, and access
paths
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 17
1
Database vs. File Systems
Figure 1.6
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 18
1
Database System Environment
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 19
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 20
1
DBMS Functions
• Data dictionary management
• Data storage management
• Data transformation and presentation
• Security management
• Multiuser access control
• Backup and recovery management
• Data integrity management
• Database language and application
programming interfaces
• Database communication interfaces
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 21
1
Database Models
• Collection of logical constructs used to represent
data structure and relationships within the
database
– Conceptual models: logical nature of data
representation
– Implementation models: emphasis on how the data
are represented in the database
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 22
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 23
1
Figure 1.8
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 24
1
Figure 1.10
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 26
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 27
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 28
1
Figure 1.11
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 29
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 30
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 31
1
Figure 1.13
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 32
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 33
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 34
1
Comparison of OO
and E-R Data Models
Figure 1.15
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 35
1
OO Data Model
• Advantages
– Adds semantic content
– Visual presentation includes semantic content
– Database integrity
– Both structural and data independence
• Disadvantages
– Lack of OODM
– Complex navigational data access
– Steep learning curve
– High system overhead slows transactions
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 36
1
Figure 1.16
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 37
1
Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel 38