1 Introduction To Databases
1 Introduction To Databases
1 Introduction To Databases
File-based system
A collection of application programs that perform services for
the end-users such as production of reports. Each program
defines and manages its own data.
Early attempt to computerized the manual filing
system
Student System (file-based)
REGISTRAR
FILE Student
ENROLLMENT
Subjects
EAF Faculty
ACCOUNTING
FILE Student
PAYMENT OF
FEES Fees
OR
Student
DEPARTMENT
FILE Subjects
PROCESSING
OF GRADES Faculty
CC Grades
Traditional File-Based Systems
File
Data entry handling
and routines Sales
reports and file Database
definitions
File
Data entry handling Contracts
and routines
reports and file Database
definitions
Traditional File-Based Systems
Sales Files
PropertyForRent(propertyNo, street, city, postcode, type,
rooms, rent, ownerNo)
PrivateOwner(ownerNo, fName, lName, address, telNo)
Data dependence
Program-data dependence
Branch Staff
branchNo 1..* staffNo
1..1 0..1
0..100
1..* PropertyForRent Client
propertyNo 0..* 0..* clientNo
1..* 1..1
0..1
PrivateOwner 0..* Lease 0..*
ownerNo leaseNo
The Database Management System
Data entry
and reports
DBMS
Database
Data entry
and reports
Components of a DBMS Environment
Hardware
May range from a single PC, mainframe to a network of
computers.
Software
Comprises of the DBMS software itself, application programs
and operating system.
Data
This serves as a bridge between machine and human
components. It contains operational data and meta-data. The
structure of a database is called schema.
Components of the DBMS Environment
Procedures
The instructions and rules that govern the design and use of
the database. These may consist of instructions on how to:
Log on to DBMS
Use a particular DBMS or application program
Start DBMS
Backup copies of the database
People
Sino sila????
Roles in the Database Environment
Database Designers
Logical Database Designer
Concerned with identifying data(entities and attributes)
Physical Database Designer
Decides how the logical database design is to be physically
realized.
Application Developers
Creates application programs that provide the required
functionality for the end-users
End-Users
Naïve users
Sophisticated users
Advantages of DBMS
Complexity
Size
Cost of DBMS
Additional hardware costs
Cost of conversion
Performance
Higher impact of failure