SlideShare a Scribd company logo
CSC271 Database Systems
Lecture # 1
Chapter 1 - Objectives
 Some common uses of database systems
 Characteristics of file-based systems
 Problems with file-based approach
 Meaning of the term database (DB)
 Meaning of the term Database
Management System (DBMS)
Chapter 1 - Objectives
 Typical functions of a DBMS.
 Major components of the DBMS
environment.
 Personnel involved in the DBMS
environment.
 History of the development of DBMSs.
 Advantages and disadvantages of DBMSs.
Examples of Database
Applications
 Purchases from the supermarket
 Purchases using your credit card
 Booking a holiday at the travel agents
 Using the local library
 Taking out insurance
 Renting a video
 Using the Internet
 Studying at university
File-Based Systems
 Early attempt to Computerize the manual
filing system
 Collection of application programs that
perform services for the end users (e.g.
reports).
 Each program defines and manages its
own data.
Manual Filing Systems
 Works well
while number of items to be stored is small
For only storage or retrieval functionality of
large number of items
File-Based Systems
 Consider DreamHome 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)
ownerNo fName lName address telNo
CO46 Joe Keogh … 01224-861212
CO87 Carol Farrel … 0141-357-7419
CO40 … … … …
CO93 … … … …
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
PrivateOwner
PropertyForRent
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
Client
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)
Lease
leaseNo propertyNo clientNo rent --- rentStart rentFinish duration
10024 PA14 CR62 650 1-Jun-05 31-May-06 12
… … … … … … … …
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
PropertyForRent
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
Client
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..
 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.
Database Approach
 Arose because:
 Definition of data was embedded in application programs,
rather than being stored separately and independently.
 No control over access and manipulation of data beyond
that imposed by application programs.
 Result:
 the database and Database Management System (DBMS).
Database
 Shared collection of logically related data,
and a description of this data, designed to
meet the information needs of an
organization.
 System catalog (metadata) provides
description of data to enable program-
data independence.
 Logically related data comprises entities,
attributes, and relationships of an
organization’s information.
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.
Database Management
System (DBMS)..
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.
Database Approach..
 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
 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
Summary
 Introduction to DB and DBMS
 File-based systems and their limitations
 Database approach
Components of DBMS
Environment
Components of DBMS
Environment..
 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.
Components of DBMS
Environment..
 Procedures
 Instructions and rules that should be applied to the
design and use of the database and DBMS.
 People
Roles in the 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)
History of Database
Systems
 Roots of the DBMS
Apollo moon-landing project, 1960s
NAA (North American Aviation), prime
contractor for the project
Developed a software GUAM (Generalized
Update Access Method), hierarchical
In mid – 1960s IBM joined NAA, result was
IMS(Information Management System)
History of Database
Systems..
 IDS ( Integrated Data Store)
By General Electric, network, mid-1960
 CODASYL ( Conference on Data Systems
Languages)
 DBTG (Data Base Task Group)
History of Database
Systems..
 DBTG proposal in 1971, components
The network schema: the logical
organization of the entire database as seen
by the DBA – which includes a definition of
the database name, the type of each record,
and the components of each record type.
The subschema: the part of the database as
seen by the user or application program;
A data management language to define the
data characteristics and the data structure,
and to manipulate the data.
History of Database
Systems..
 DBTG specified three languages
A schema Data Definition Language (DDL),
which enables the DBA to define the schema.
A subschema DDL, which allows the
application programs to define the parts of
the database they require.
A Data Manipulation Language (DML), to
manipulate the data.
History of Database
Systems..
 E. F. Codd, 1970
IBM Research Laboratory
Relational model
System R project by IBM’S San Jose
Research Laboratory California
Result of this project
 Development of SQL
 Commercial relational DBMS products e.g. DB2,
SQL/DS from IBM, Oracle from Oracle Corp.
DBMS Generations
 First-generation
 Hierarchical and Network
 Second generation
 Relational
 Third generation
 Object-Relational
 Object-Oriented
Advantages of DBMSs
 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 DBMSs..
 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
Advantages of DBMSs..
 Improved backup and recovery services
Disadvantages of DBMSs
 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
 History of DBMS
 Advantages/Disadvantages of DBMSs

More Related Content

What's hot (20)

PDF
Advanced Database System
sushmita rathour
 
PPT
Elmasri Navathe DBMS Unit-1 ppt
AbhinavPandey274499
 
PPTX
INTEGRATIVE PROGRAMMING ch1.pptx
StephenStanleyAndres1
 
PDF
Chapter 1 - Introduction to System Integration and Architecture.pdf
Khairul Anwar Sedek
 
PDF
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
PPT
Data dictionary
Surbhi Panhalkar
 
PPT
Database Chapter 1
shahadat hossain
 
PPTX
DBMS and its Models
AhmadShah Sultani
 
PPT
REQUIREMENT ENGINEERING
Saqib Raza
 
PPTX
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Gyanmanjari Institute Of Technology
 
PPTX
Database Administration
Bilal Arshad
 
PPTX
Fragmentation and types of fragmentation in Distributed Database
Abhilasha Lahigude
 
PPT
System Analysis and Design
Dr. C.V. Suresh Babu
 
PPTX
Design Concept software engineering
Darshit Metaliya
 
PPTX
ACID Property in DBMS
Techtud Network
 
PPTX
Distributed file system
Anamika Singh
 
PDF
Case study-the next gen pos
Vignesh Saravanan
 
PPT
Uml class-diagram
ASHOK KUMAR PALAKI
 
PPT
14. Query Optimization in DBMS
koolkampus
 
PPT
Database administration and security
Dhani Ahmad
 
Advanced Database System
sushmita rathour
 
Elmasri Navathe DBMS Unit-1 ppt
AbhinavPandey274499
 
INTEGRATIVE PROGRAMMING ch1.pptx
StephenStanleyAndres1
 
Chapter 1 - Introduction to System Integration and Architecture.pdf
Khairul Anwar Sedek
 
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Data dictionary
Surbhi Panhalkar
 
Database Chapter 1
shahadat hossain
 
DBMS and its Models
AhmadShah Sultani
 
REQUIREMENT ENGINEERING
Saqib Raza
 
Distributed DBMS - Unit 3 - Distributed DBMS Architecture
Gyanmanjari Institute Of Technology
 
Database Administration
Bilal Arshad
 
Fragmentation and types of fragmentation in Distributed Database
Abhilasha Lahigude
 
System Analysis and Design
Dr. C.V. Suresh Babu
 
Design Concept software engineering
Darshit Metaliya
 
ACID Property in DBMS
Techtud Network
 
Distributed file system
Anamika Singh
 
Case study-the next gen pos
Vignesh Saravanan
 
Uml class-diagram
ASHOK KUMAR PALAKI
 
14. Query Optimization in DBMS
koolkampus
 
Database administration and security
Dhani Ahmad
 

Viewers also liked (20)

PPTX
Database systems - Chapter 2
shahab3
 
PPTX
Database systems - Chapter 2 (Remaining)
shahab3
 
PPT
A N S I S P A R C Architecture
Sabeeh Ahmed
 
PPTX
Introduction databases and MYSQL
Naeem Junejo
 
PDF
Quarterly report (Q4) 2007
Tele2
 
PDF
A (short) introduction to Databases
Nicola Bernardini
 
PPTX
Introduction to databases
Aashima Wadhwa
 
PDF
Sem1 2014 15 course-outline info 1102
IIUM
 
PPT
D I T211 Chapter 1
askme
 
PPT
Sixth sense technolgy
Anvesh Ranga
 
PDF
Introduction to Databases
Ram Kedem
 
PPT
Chapter 1
aziah nor
 
PPT
Kendall sad8e ch04
N/A
 
PPT
Introduction to databases
Carol Ansel
 
PPT
Kendall sad8e ch01
N/A
 
PPT
Chapter01 introduction
Ngeam Soly
 
PDF
Introduction to SQL
Ram Kedem
 
PPT
Chapter 2 database environment
>. <
 
PDF
Database Systems - Introduction (Chapter 1)
Vidyasagar Mundroy
 
PPT
Database an introduction
Anwarul Islam, PhD
 
Database systems - Chapter 2
shahab3
 
Database systems - Chapter 2 (Remaining)
shahab3
 
A N S I S P A R C Architecture
Sabeeh Ahmed
 
Introduction databases and MYSQL
Naeem Junejo
 
Quarterly report (Q4) 2007
Tele2
 
A (short) introduction to Databases
Nicola Bernardini
 
Introduction to databases
Aashima Wadhwa
 
Sem1 2014 15 course-outline info 1102
IIUM
 
D I T211 Chapter 1
askme
 
Sixth sense technolgy
Anvesh Ranga
 
Introduction to Databases
Ram Kedem
 
Chapter 1
aziah nor
 
Kendall sad8e ch04
N/A
 
Introduction to databases
Carol Ansel
 
Kendall sad8e ch01
N/A
 
Chapter01 introduction
Ngeam Soly
 
Introduction to SQL
Ram Kedem
 
Chapter 2 database environment
>. <
 
Database Systems - Introduction (Chapter 1)
Vidyasagar Mundroy
 
Database an introduction
Anwarul Islam, PhD
 
Ad

Similar to Database systems - Chapter 1 (20)

PPTX
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
salutiontechnology
 
PPTX
database management system intro to database management
MuhammadAzeem196424
 
PPTX
introduction to database management system
MuhammadAzeem196424
 
PPTX
COMP303-Lecture-01_1539277777777777.pptx
AqeelaTahir3
 
PPTX
Lecture 1 database system notes full.pptx
salutiontechnology
 
PPTX
Lecture 1.pptx
ArslanButt52
 
PPTX
Database Management Systems Lecture # 01
UsmanJaved520550
 
PPTX
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
PPTX
Database Systems Lec 1.pptx
NishaTariq1
 
PPTX
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
PPTX
[Lec#4]databases and database management systems.pptx
NoorNoora5
 
PPTX
Unit 1_1680588168525885258552585525855.pptx
dgfs55437
 
PPT
Mca ii-dbms- u-i-introductory concepts of dbms
Rai University
 
PPTX
Introduction DBMS.pptx
ShivareddyGangam
 
PDF
Database system
Oduro Boakye
 
PDF
DBMS_UNIT_1.pdf
Koteswari Kasireddy
 
PPT
Lecture-1.ppt
ChSheraz3
 
PPTX
Module 1_Overview of Database Management System
prajwalr3501
 
PPT
Bsc cs ii-dbms- u-i-database systems
Rai University
 
PPTX
Introduction to Database and database users.pptx
HajarMeseehYaseen
 
databasesystemsconollyslide1-151102101031-lva1-app6892.pptx
salutiontechnology
 
database management system intro to database management
MuhammadAzeem196424
 
introduction to database management system
MuhammadAzeem196424
 
COMP303-Lecture-01_1539277777777777.pptx
AqeelaTahir3
 
Lecture 1 database system notes full.pptx
salutiontechnology
 
Lecture 1.pptx
ArslanButt52
 
Database Management Systems Lecture # 01
UsmanJaved520550
 
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
Database Systems Lec 1.pptx
NishaTariq1
 
Chapter-1 Introduction to Database Management Systems
Kunal Anand
 
[Lec#4]databases and database management systems.pptx
NoorNoora5
 
Unit 1_1680588168525885258552585525855.pptx
dgfs55437
 
Mca ii-dbms- u-i-introductory concepts of dbms
Rai University
 
Introduction DBMS.pptx
ShivareddyGangam
 
Database system
Oduro Boakye
 
DBMS_UNIT_1.pdf
Koteswari Kasireddy
 
Lecture-1.ppt
ChSheraz3
 
Module 1_Overview of Database Management System
prajwalr3501
 
Bsc cs ii-dbms- u-i-database systems
Rai University
 
Introduction to Database and database users.pptx
HajarMeseehYaseen
 
Ad

Recently uploaded (20)

PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
GRADE-3-PPT-EVE-2025-ENG-Q1-LESSON-1.pptx
EveOdrapngimapNarido
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Geographical Diversity of India 100 Mcq.pdf/ 7th class new ncert /Social/Samy...
Sandeep Swamy
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 

Database systems - Chapter 1

  • 2. Chapter 1 - Objectives  Some common uses of database systems  Characteristics of file-based systems  Problems with file-based approach  Meaning of the term database (DB)  Meaning of the term Database Management System (DBMS)
  • 3. Chapter 1 - Objectives  Typical functions of a DBMS.  Major components of the DBMS environment.  Personnel involved in the DBMS environment.  History of the development of DBMSs.  Advantages and disadvantages of DBMSs.
  • 4. Examples of Database Applications  Purchases from the supermarket  Purchases using your credit card  Booking a holiday at the travel agents  Using the local library  Taking out insurance  Renting a video  Using the Internet  Studying at university
  • 5. File-Based Systems  Early attempt to Computerize the manual filing system  Collection of application programs that perform services for the end users (e.g. reports).  Each program defines and manages its own data.
  • 6. Manual Filing Systems  Works well while number of items to be stored is small For only storage or retrieval functionality of large number of items
  • 7. File-Based Systems  Consider DreamHome example for file- based systems Sales Department : responsible for selling and renting of properties Contract Department: responsible for handling lease agreements
  • 8. Sales Department  PropertyForRent (propertyNo, street, city, postcode, type, rooms, rent, ownerNo)  Client (clientNo, fName, lName, telNo, preftype, maxRent)  PrivateOwner (ownerNo, fName, lName, address, telNo)
  • 9. ownerNo fName lName address telNo CO46 Joe Keogh … 01224-861212 CO87 Carol Farrel … 0141-357-7419 CO40 … … … … CO93 … … … … 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 PrivateOwner PropertyForRent
  • 10. 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 Client
  • 11. 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)
  • 12. Lease leaseNo propertyNo clientNo rent --- rentStart rentFinish duration 10024 PA14 CR62 650 1-Jun-05 31-May-06 12 … … … … … … … … 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 PropertyForRent
  • 13. 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 Client
  • 15. 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.
  • 16. Limitations of File-Based Approach..  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.
  • 17. Database Approach  Arose because:  Definition of data was embedded in application programs, rather than being stored separately and independently.  No control over access and manipulation of data beyond that imposed by application programs.  Result:  the database and Database Management System (DBMS).
  • 18. Database  Shared collection of logically related data, and a description of this data, designed to meet the information needs of an organization.  System catalog (metadata) provides description of data to enable program- data independence.  Logically related data comprises entities, attributes, and relationships of an organization’s information.
  • 19. 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.
  • 21. 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.
  • 22. Database Approach..  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
  • 23. Views  Allows each user to have his or her own view of the database.  A view is essentially some subset of the database.
  • 24. 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
  • 25. Summary  Introduction to DB and DBMS  File-based systems and their limitations  Database approach
  • 27. Components of DBMS Environment..  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.
  • 28. Components of DBMS Environment..  Procedures  Instructions and rules that should be applied to the design and use of the database and DBMS.  People
  • 29. Roles in the 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)
  • 30. History of Database Systems  Roots of the DBMS Apollo moon-landing project, 1960s NAA (North American Aviation), prime contractor for the project Developed a software GUAM (Generalized Update Access Method), hierarchical In mid – 1960s IBM joined NAA, result was IMS(Information Management System)
  • 31. History of Database Systems..  IDS ( Integrated Data Store) By General Electric, network, mid-1960  CODASYL ( Conference on Data Systems Languages)  DBTG (Data Base Task Group)
  • 32. History of Database Systems..  DBTG proposal in 1971, components The network schema: the logical organization of the entire database as seen by the DBA – which includes a definition of the database name, the type of each record, and the components of each record type. The subschema: the part of the database as seen by the user or application program; A data management language to define the data characteristics and the data structure, and to manipulate the data.
  • 33. History of Database Systems..  DBTG specified three languages A schema Data Definition Language (DDL), which enables the DBA to define the schema. A subschema DDL, which allows the application programs to define the parts of the database they require. A Data Manipulation Language (DML), to manipulate the data.
  • 34. History of Database Systems..  E. F. Codd, 1970 IBM Research Laboratory Relational model System R project by IBM’S San Jose Research Laboratory California Result of this project  Development of SQL  Commercial relational DBMS products e.g. DB2, SQL/DS from IBM, Oracle from Oracle Corp.
  • 35. DBMS Generations  First-generation  Hierarchical and Network  Second generation  Relational  Third generation  Object-Relational  Object-Oriented
  • 36. Advantages of DBMSs  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.)
  • 37. Advantages of DBMSs..  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
  • 38. Advantages of DBMSs..  Improved backup and recovery services
  • 39. Disadvantages of DBMSs  Complexity  Size (disk space for DBMS)  Cost of DBMS  Additional hardware costs  Cost of conversion  Performance  Higher impact of a failure
  • 40. Summary  Introduction to DB and DBMS  File-based systems and their limitations  Database approach  Components of the DBMS environment  Roles in the DB environment  History of DBMS  Advantages/Disadvantages of DBMSs