Beruflich Dokumente
Kultur Dokumente
CHAPTER 1
An Overview
3
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Introduction
Definitions
Data:
“A collection of raw facts and figures”.
4
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Figure 1-1a Data in Context
5
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Information
Information:
Data processed to be useful in decision
making.
Information is, processed data that is
correlated and meaningful.
6
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Figure 1-1b Summarized data
7
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Metadata: Data that describes data.
Example
9
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
MetaMeta Data
“Data about a metadata record”
10
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Data Vs Information
A binary digit.
13
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
3. A database is a self-defined collection
of integrated files.
Integrated : It is possible to navigate from file to file
to extract necessary information.
Implicit
properties
Have a Source
Degree of interaction
Audience 14
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
SLSREP Slsrep Name Commission Total
Number Rate Commission
3 Mary Jones .05 2150.00
6 Bill Smith .07 4912.00
12 Sam Brown .06 3567.80
16
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Types of Files
Master File
“A master file is a relatively permanent file relating to a
standard. The records changes less frequently. “
Example:Customers, student’s, employee’s
Table File
“A table file contains references data used by information
system.These are relatively permanent. Updated by
periodically.”
Example: Tax table, postage rate tables, department code file
Transaction File:
It contains records reflect day-to-day activities.These are
temporarily files.
Example: New employees, patient release, cash receipt,
commission and customer payments
17
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Security File
“Is a file that is created and saved for backup and recovery
purposes. New security files must be created periodically to
replace old, outdated security files.”
History File
“Is a file created and saved historical reasons. Don’t replace
old files; usually both the old and new history files are
saved.”
18
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
File-Based Approach
A collection of application programs that perform
services for the end-users such as the production of
reports. Each program defines and manages its own
data.
19
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
What is File Processing Systems
File: a collection of related information defined by its creator.
Physical file: a file actually exists in a storage devise.
( a collection of bites, as seen by the operating system.)
Logical file: a file viewed by users and programs.
( a collection of records.)
A file management system, usually within the operating system, is
used to efficiently access physical files stored in the secondary storage
devices.
Functions: create, updates, retrieval
Examples: Hard copy registers/folders,bill folder, tax folder
20
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG 21
22
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Figure Three file processing systems
23
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Disadvantages of File Processing
• Program-Data Dependence
– All programs maintain metadata for each file they use
• Data Redundancy (Duplication of data)
– Different systems/programs have separate copies of the
same data
• Limited Data Sharing
– No centralized control of data
• Lengthy Development Times
– Programmers must design their own file formats
• Excessive Program Maintenance
– 80% of of information systems budget 24
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Figure 1-2 Three file processing systems
Duplicate
Data
25
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Disadvantages File Management
Systems
Uncontrolled redundancy
Inconsistent data
Inflexibility
28
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Problems with Data
Redundancy
• Waste of space to have duplicate data
• Causes more maintenance headaches
• The biggest Problem:
– When data changes in one file, could
cause inconsistencies
– Compromises data integrity
29
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
SOLUTION:
The DATABASE Approach
• Central repository of shared data
• Data is managed by a controlling
agent
• Stored in a standardized,
convenient form
Requires a Database Management System (DBMS)
30
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Database Systems
A database system Database systems
Consists of Allow users to
Data(The database) Store
Software Update
Hardware Retrieve
Users Organize
31
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Database Management
System
• A DBMS is a data storage and retrieval
system which permits data to be stored non-
redundantly while making it appear to the
user as if the data is well-integrated.
Collection of programs that
allows users to create a new database and
33
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Database Management System
Application
#1
Application
#2
DBMS Database
containing
centralized
shared data
34
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Advantages of Database Approach
• Program-Data Independence
– Metadata stored in DBMS, so applications don’t need to
worry about data formats
– Data queries/updates managed by DBMS so programs
don’t need to process data access routines
– Results in: increased application development and
maintenance productivity
• Minimal Data Redundancy
– Leads to increased data integrity/consistency
35
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Advantages of Database Approach
• Improved Data Sharing
– Different users get different views of the data
• Enforcement of Standards
– All data access is done in the same way
• Improved Data Quality
– Constraints, data validation rules
• Better Data Accessibility/ Responsiveness
– Use of standard data query language (SQL)
• Security, Backup/Recovery, Concurrency
– Disaster recovery is easier
36
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Disadvantages of DBMSs
Complexity
Size
Cost of DBMS
Additional hardware costs
Cost of conversion
Performance
Higher impact of a failure
38
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Figure 1-10
Components of
the database
environment
39
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Components of the
Database Environment
• CASE Tools – computer-aided software engineering
• Repository – centralized storehouse of metadata
• Database Management System (DBMS) – software for
managing the database
• Database – storehouse of the data
• Application Programs – software using the data
• User Interface – text and graphical displays to users
• Data Administrators – personnel responsible for
maintaining the database
• System Developers – personnel responsible for
designing databases and software
• End Users – people who use the applications and
databases
40
Database Systems (Spring 2011) - Naveed Anwer Butt @UOG
Components of DBMS Environment