Sunteți pe pagina 1din 34

DATABASE SYSTEMS 6th Edition

By Thomas Connolly & Carolyn Begg


Objectives

 Database Systems
 Uses of Database Systems
 File Based Systems
 Problems with File Based Systems
 Database vs DBMS
 Components of DBMS
 Advantages & Disadvantages of DBMS
What is Data?

Data
 “A collection of raw facts and figures”.

 “Data consists of facts, text, graphics, images, sound and video.”


Figure 1-1a Data in Context

4
Database Systems – Madiha Rehman @KFUEIT
Information

 Information:
 Data processed to be useful in decision making.
 Information is, processed data that is correlated and meaningful.

Database Systems – Madiha Rehman @KFUEIT

5
Figure 1-1b Summarized data

Database Systems – Madiha Rehman @KFUEIT

6
Data are….. Information is….
Data Vs Information
1.Stored facts 1. Presented facts
2.Inactive (They exist) 2.Active (It enables doing)
3.Technology –based 3.Business Based
4.Gathered from various 4.Transformed from data
sources

5.Refers to the values 5. Refers the meaning of the


actually stored in. values as understood by
some users

7
DATABASE

 A database is an organized collection of logically


related data.

 A database is a computerized record keeping system.

 “A database is a collection of inter-related records with


minimum of data redundancy.”

 Collection of related data items that are being stored for


record-keeping & analysis
 Could be stored on cards ,file cabinet, computer, …

8
Uses of Database
 Purchases from the supermarket
 Purchases using your credit card
 Booking a vacation with a travel agent
 Using the Local Library
 Taking out insurance
 Renting a DVD
 Using the Internet
 Studying at College
A collection of related files.

“A collection of records” about a particular set of people,


objects, entities and so on.

A collection of related fields associated with a single person,


object, entity and so on. (A Record is one complete set of
fields.)
A collection of bytes representing a single attribute. A
Field is a single piece of information.

A collection of bits representing a single character.

A binary digit.

10
Predecessor: File Based Approach
 A file based system is a collection of application programs that perform
services for the users wishing to access information.
 Each program within a file based system defines and manages its own data.
Because of this, there are limits as to how that data can be used or
transported.

 File based systems were developed as better alternatives to paper based


filing systems. By having files stored on computers, the data could be
accessed more efficiently. It was common practice for larger companies to
have each of its departments looking after its own data.
File Based Systems

 Consider Dream Home example for file based systems

 Sales Department
 responsible for selling and renting of properties
 Contract Department
 responsible for handling lease agreements
Sales Department
 PropertyForRent
(propertyNo, street, city, postcode, type, rooms, rent,
ownerNo)

 Client
(clientNo, fName, lName, telNo, preftype, maxRent)

 PrivateOwner
(ownerNo, fName, lName, address, telNo)
Property for Rent

propertyNo street city postcode type rooms rent ownerNo


PA14 … Aberdeen … House 6 650 CO46
PL94 … London … Flat 4 400 CO87
PG4 … Glasgow … Flat 3 350 CO40
PG36 … Glasgow … Flat 3 375 CO93
PG21 … Glasgow … House 5 600 CO87
PG16 … Glasgow … Flat 4 450 CO93

Private Owner

ownerNo fName lName address telNo


CO46 Joe Keogh … 01224-861212
CO87 Carol Farrel … 0141-357-7419
CO40 … … … …
CO93 … … … …
Client

clientNo fName lName telNo prefType maxRent


CR76 John Kay 0207-774-5632 Flat 425
CR56 Aline Stewart 0141-848-1825 Flat 350
CR74 Mike Ritchie 01475-392178 House 750
CR62 Mary Tregear 01224-196720 Flat 600
Contract Department

 Lease
(leaseNo, propertyNo, clientNo, rent , paymentMethod,
deposit, paid, rentStart, rentFinish, duration)

 PropertyForRent
(propertyNo, street, city, postcode, type, rooms, rent)

 Client
(clientNo, fName, lName, telNo, preftype, maxRent)
Property for Rent

propertyNo street city postcode type rooms rent

PA14 … Aberdeen … House 6 650

PL94 … London … Flat 4 400

PG4 … Glasgow … Flat 3 350

PG36 … Glasgow … Flat 3 375

PG21 … Glasgow … House 5 600

PG16 … Glasgow … Flat 4 450

Lease

leaseNo propertyNo clientNo rent --- rentStart rentFinish duration


10024 PA14 CR62 650 1-Jun-05 31-May-06 12
… … … … … … … …
Client

clientNo fName lName telNo


CR76 John Kay 0207-774-5632
CR56 Aline Stewart 0141-848-1825
CR74 Mike Ritchie 01475-392178
CR62 Mary Tregear 01224-196720
File Based Processing
Limitations of File Based Approach
 Separation and isolation of data
 Each program maintains its own set of data.
 Users of one program may be unaware of potentially useful data held by other
programs.
 For example, if we want to produce a list of all houses that match the
requirements of the clients.

 Duplication of data
 Decentralized approach taken by each department.
 Same data is held by different programs.
 Wasted space and potentially different values and/or different formats for the
same item.
Limitations of File Based Approach contd..

 Data dependence
 File structure is defined in the program code.
 Incompatible file formats
 Programs are written in different languages, and so cannot easily
access each other’s files.

 Fixed Queries/Proliferation of application programs


 Programs are written to satisfy particular functions.
 Any new requirement needs a new program.
Limitations of File Based Approach contd..

 Limited Data Sharing


 No centralized control of data

 Lengthy Development Time


 Programmers must design their own file formats

 Excessive Program Maintenance


 80% of information systems budget
Solution : Database Approach

 A shared collection of logically related data and its description, designed to


meet the information needs of an organization.

 Database is defined as a self-describing collection of integrated records.


 The description of the data is known as the system catalog (or data
dictionary or metadata—the “data about data”).
 It is the self-describing nature of a database that provides program–data
independence.
Database Management System (DBMS)

 A software system that enables users to define, create, maintain, and


control access to the database.
 (Database) application program: a computer program that interacts with
database by issuing an appropriate request (SQL statement) to the DBMS.
DBMS
DBMS
Database Management System provides the following facilities:

I. Data definition language (DDL).


 Permits specification of data types, structures and any data constraints.
 All specifications are stored in the database.

II. Data manipulation language (DML).


 General enquiry facility (query language) of the data.
I. Controlled access to database
I. A security system
I. Which prevents unauthorized users accessing the database

II. An integrity system


I. Which maintains the consistency of stored data

III. A concurrency control system


I. Which allows shared access of the database

IV. A recovery control system


I. Which restores the database to a previous consistent state in case of hardware or
software failure

V. A user-accessible catalog
I. Which contains description of the data in the database
Components of DBMS
Components of DBMS
 Hardware
 Can range from a PC to a network of computers.
 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
Roles in Database Environment
 Data Administrator (DA)
 Database planning
 Development and maintenance of standards, policies and procedures
 Database Administrator (DBA)
 Physical realization of the database
 Physical database design and implementation
 Security and integrity control
 Maintenance of the operational system
 Ensuring satisfactory performance of the applications for users
 Database Designers (Logical and Physical)
 Application Programmers
 End Users (naive and sophisticated)
Advantages of DBMS
 Control of data redundancy
 Data consistency
 More information from the same amount of data
 Sharing of data
 Improved data integrity (constraints)
 Improved security (authentication, rights)
 Enforcement of standards (data formats, naming conventions,
documentation etc.)
Advantages of DBMS contd…

 Economy of scale (economical cost)


 Balance conflicting requirements
 Improved data accessibility and responsiveness (ad hoc queries)
 Increased productivity (developer)
 Improved maintenance through data independence
 Increased concurrency
 Improved backup and recovery services
Disadvantages of DBMS

 Complexity
 Size (disk space for DBMS)
 Cost of DBMS
 Additional hardware costs
 Cost of conversion
 Performance
 Higher impact of a failure
Summary
 Introduction to DB and DBMS
 File-based systems and their limitations
 Database approach
 Components of the DBMS environment
 Roles in the DB environment
 Advantages/Disadvantages of DBMSs

S-ar putea să vă placă și