File Systems and Databases
File Systems and Databases
Database Management
Database is shared, integrated computer structure
housing:
End user data
Metadata
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 bettermanaged data
Promotes integrated view of organizations
operations
Reduces the probability of inconsistent data
Figure 1.2
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
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
Figure 1.5
10
11
Data Dependence
Change in files data characteristics requires modification of
data access programs
Must tell program what to do and how
Makes file systems cumbersome from programming and data
management views
Structural Dependence
Change in file structure requires modification of related
programs
12
13
Data Redundancy
Data inconsistency
Lack of data integrity
14
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
15
16
Figure 1.7
17
18
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
19
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
20
21
Figure 1.8
22
Conceptual simplicity
Database security and integrity
Data independence
Efficiency
Disadvantages
Complex implementation
Difficult to manage and lack of standards
Lacks structural independence
Applications programming and use complexity
Implementation limitations
23
Figure
1.10
24
Conceptual simplicity
Handles more relationship types
Data access flexibility
Promotes database integrity
Data independence
Conformance to standards
Disadvantages
System complexity
Lack of structural independence
25
26
Figure 1.11
27
28
29
Figure 1.13
30
Disadvantages
31
32
OO Data Model
Advantages
Disadvantages
Lack of OODM
Complex navigational data access
Steep learning curve
High system overhead slows transactions
33
34