Docsity

Introduction to databases, Lecture notes of Computer Science

Toggle sidebar
bg1
1/23/2015
1
CSI362 Database Concepts
Lecture 1: Introduction to Database
Management Systems
Ref: Ramakrishnan and Gehrke 2003, Beynon-Davies 2004
In this lecture...
•History of Data Management
•File-Based Systems
•Databases and DBMS vs File Systems
•Why Study Databases
•Data Model
•Structure of a DBMS
•Components of DBMS environment
•Roles in the Database Environment
1/23/2015 2 University of Botswana - CSI262 lecture Notes 2014/2015
History of Data Management
Manual
Record
Managers
Punched-Card
Record
Managers
Programmed
Record
Managers
On-Line
Network
Data
Managers
4000BC 1900 1980 1995 1955 1965 1999
Multi-
Media
Databases
Web-
Based
Database
Systems
Relational
Data
Management
University of Botswana - CSI262 lecture Notes 2014/2015 1/23/2015 3
File-Based Systems
•Collection of application programs that
perform services for the end users (e.g.
reports).
•Each program defines and manages its own
data.
1/23/2015 4 University of Botswana - CSI262 lecture Notes 2014/2015
File-Based System Disadvantages
•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.
•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.
•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.
1/23/2015 5 University of Botswana - CSI262 lecture Notes 2014/2015
Database
1/23/2015 6
• Some Definitions:
- A very large, integrated collection of data (Ramakhrishnan
and Gehrke 2003)
- Computerised record-keeping system (Date 2003)
- Facts about the items of interest
- Shared collection of logically related data (and a
description of this data), designed to meet the
information needs of an organization (Pearson Edu 2005)
• System catalog (metadata) provides description of data to
enable program–data independence.
• Models real-world enterprise.
- Entities (e.g., students, courses)
- Their attributes (e.g. Students have names, address, etc.)
-Relationships (e.g., John is taking CSI362)
- Logically related data comprises entities, attributes, and
relationships of an organization’s information.
University of Botswana - CSI262 lecture Notes 2014/2015
pf3
pf4

Partial preview of the text

Download Introduction to databases and more Lecture notes Computer Science in PDF only on Docsity!

CSI362 Database Concepts

Lecture 1: Introduction to Database

Management Systems

Ref: Ramakrishnan and Gehrke 2003, Beynon-Davies 2004

In this lecture...

  • History of Data Management
  • File-Based Systems
  • Databases and DBMS vs File Systems
  • Why Study Databases
  • Data Model
  • Structure of a DBMS
  • Components of DBMS environment
  • Roles in the Database Environment 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 2

History of Data Management

Manual Record Managers Punched Record-Card Managers Programmed Record Managers On Network-Line Data Managers 4000BC 1900 1955 1965 1980 1995 1999 Multi Media- Databases Web Based- Relational Data^ Database Systems Management 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 3

File-Based Systems

  • Collection of application programs that perform services for the end users (e.g. reports).
  • Each program defines and manages its own data. 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 4

File-Based System Disadvantages

  • 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.
  • 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.
  • 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. 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 5

Database

1/23/2015 6

  • Some Definitions:
    • A very large, integrated collection of data (Ramakhrishnan and Gehrke 2003)
    • Computerised record-keeping system (Date 2003)
    • Facts about the items of interest
    • Shared collection of logically related data (and a description of this data), designed to meet the information needs of an organization (Pearson Edu 2005 )
  • System catalog (metadata) provides description of data to enable program–data independence.
  • Models real-world enterprise.
    • Entities (e.g., students, courses)
    • Their attributes (e.g. Students have names, address, etc.)
    • Relationships (e.g., John is taking CSI362)
  • Logically related data comprises entities , attributes , and relationships of an organization’s information. University of Botswana - CSI262 lecture Notes 2014/

What is a DBMS?

  • A Database Management System (DBMS) is a software package designed to store and manage databases.
  • 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. 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 7

DBMS

  • Provide independence of the data from the applications and users
  • 1/23/2015 Example DBMS University of Botswana – ACCESS, MySQL - CSI262 lecture Notes 2014/2015, Oracle, DB2, SQL Server 8

Advantages of DBMS over File System?

  • Data independence and efficient access.
  • Reduced application development time.
  • Data integrity and security.
  • Uniform data administration.
  • Concurrent access, recovery from crashes. 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 9
    • Complexity
    • Size
    • Cost of DBMS
    • Additional hardware costs
    • Cost of conversion
    • Performance
    • Higher impact of a failure 1/23/2015 10

Disadvantages of DBMSs

University of Botswana - CSI262 lecture Notes 2014/

History of Database Systems

1/23/2015 11

First-generation

- Hierarchical and Network

Second generation

- Relational

Third generation

- Object-Relational

- Object-Oriented

University of Botswana - CSI262 lecture Notes 2014/

Why Study Databases

  • Shift from computation to information
  • Datasets increasing in diversity and volume.
    • Digital libraries, interactive video, etc
  • DBMS encompasses most of CS
    • OS, languages, theory, AI, multimedia, logic 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 12

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.
  • Procedures
    • Instructions and rules that should be applied to the design and use of the database and DBMS.
  • People 1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 19

Roles in the Database Environment

• Data Administrator (DA)

• Database Administrator (DBA)

• Database Designers (Logical and Physical)

• Application Programmers

• End Users (naive and sophisticated)

1/23/2015 University of Botswana - CSI262 lecture Notes 2014/2015 20