What Is "Data"?: ANSI Definition
What Is "Data"?: ANSI Definition
What Is "Data"?: ANSI Definition
ANSI definition:
Data
1-1
PROGRAM 1
DATA SET 1
Data
Management
PROGRAM 2
DATA SET 2
Data
Management
PROGRAM 3
DATA SET 3
Data
Management
1-2
Problems
There is no persistence.
terminates.
Random access memory (RAM) is expensive and
limited
All data may not fit available memory
1-3
File Processing -
Recent (and Current) History
Data are stored in files with interface between programs and
files.
Various access methods exist (e.g., sequential, indexed, random)
PROGRAM 1
Data
Redundant Data
Management FILE 1
PROGRAM 2 File
Data System
Management
Services
PROGRAM 3 FILE 2
Data
Management
1-4
File System Functions
Mapping between logical files and physical files
device.
Data is unstructured
“flat” files
1-6
Database Approach
PROGRAM 1
DBMS
Query Processor
Integrated
PROGRAM 1
Transaction Mgr Database
…
PROGRAM 2
1-7
What is a Database?
1-8
What is a Database?
1-9
Data Model
Formalism that defines what the structure of the
data are
within a file
between files
Hierarchical; network
Relational
Object-oriented
1-10
Example Relation Instances
EMP WORKS
ENO ENAME TITLE ENO PNO RESP DUR
E1 J. Doe Elect. Eng. E1 P1 Manager 12
E2 M. Smith Syst. Anal. E2 P1 Analyst 24
E3 A. Lee Mech. Eng. E2 P2 Analyst 6
E4 J. Miller Programmer E3 P3 Consultant 10
E5 B. Casey Syst. Anal. E3 P4 Engineer 48
E6 L. Chu Elect. Eng. E4 P2 Programmer 18
E7 R. Davis Mech. Eng. E5 P2 Manager 24
E8 J. Jones Syst. Anal. E6 P4 Manager 48
E7 P3 Engineer 36
E7 P5 Engineer 23
E8 P3 Manager 40
PROJ
1-11
control
Reduction of redundancy
Avoidance of inconsistency
Sharability
Standards
Improved security
Data integrity
1-12
Why Database Technology
Programmer productivity
Maintenance
Time
1-13
Data Independence
1-14
ANSI/SPARC Architecture
ASSIGNMENT(ENO,PNO,ENAME,PNAME)
Users
1-15
Database Functionality
Integrated schema
relational model
Declarative integrity and consistency enforcement
manager.
User specifies and system enforces.
Individualized views
1-16
Database Functionality (cont’d)
Declarative access
1-17
Transactions
Provide
Concurrency transparency
Multiple users may access the database, but they each see the
Failure transparency
Even when system failure occurs, database consistency is not
violated
Logging and recovery
1-18
Database Functionality (cont’d)
Transaction Properties
Atomicity
All-or-nothing property
Consistency
1-19
Application Programs
App. development tools
DBMS
1-20
Naïve users
System Structure
Casual users Application Database
programmers administrator
Application
Forms Front ends DML Interface CLI DDL
SQL Commands
DBMS Query Evaluation Engine
DDL
Recovery Manager
File & Access Methods Compiler
Transaction
&
Lock Buffer Manager
Manager
Disk Space Manager
Indexes System
Catalog
Data
files
1-21
Database Users
End user
front-ends
More sophisticated ones generate ad hoc queries using DML
Application programmer/developer
schema)
Loads and reformats the database
1-22
DBMS Languages
Can be
!
1960s:
"
Honeywell (IDS)
$
1970s:
%
1970s)
'
model
1-25
1990s
%
improvement of performance
Distribution becomes a reality
&