Chapter 1 - Objectives
Chapter 1 - Objectives
Chapter 1 - Objectives
File-based System
Collection of application programs that perform services for the
end users (e.g. reports).
Each program defines and manages its own data.
File
A file is simply a collection of records, which contains logically related
data.
File-Based Systems
Consider Dream Home example for file based systems
o Sales Department: responsible for selling and renting of properties
o Contract Department: responsible for handling lease agreements
Limitations of the File-based Approach
Duplication of data
Same data is held by different programs.
Wasted space and potentially different values and/or different
formats for the same item.
Data dependence
File structure is defined in the program code.
Database Approach
Data definition language (DDL).
– Permits specification of data types, structures and any data constraints.
– All specifications are stored in the database.
Data manipulation language (DML).
– General enquiry facility (query language) of the data.
Controlled access to database may include:
A security system
– Which prevents unauthorized users accessing the database
An integrity system
– Which maintains the consistency of stored data
A concurrency control system
– Which allows shared access of the database
A recovery control system
– Which restores the database to a previous consistent state in case of
hardware or software failure
A user-accessible catalog
– Which contains description of the data in the database Views
View
Allows each user to have his or her own view of the database.
A view is essentially some subset of the database.
Views – Benefits
Reduce complexity
Provide a level of security
Provide a mechanism to customize the appearance of the database
Present a consistent, unchanging picture of the structure of the database,
even if the underlying database is changed
Components of DBMS Environment
Hardware
Software
DBMS, operating system, network software (if necessary) and also the
application programs.
Data
Used by the organization and a description of this data called the schema.
Procedures
Instructions and rules that should be applied to the design and use of the
database and DBMS.
People
Advantages of DBMSs
Control of data redundancy
Data consistency
More information from the same amount of data
Sharing of data
Improved data integrity
Improved security
Enforcement of standards
Economy of scale
Balance conflicting requirements
Improved data accessibility and responsiveness
Increased productivity
Improved maintenance through data independence
Increased concurrency
Improved backup and recovery services