lec01 introduction to databases

Upload: rifatmmu

Post on 31-May-2018

248 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 Lec01 Introduction to Databases

    1/24

    Chapter 1

    Introduction to Databases

    Transparencies

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    2/24

    Chapter 1 - Objectives

    x Some common uses of database systems.x Characteristics of file-based systems.x Problems with file-based approach.x Meaning of the term database.x Meaning of the term Database Management

    System (DBMS).

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    3/24

    Chapter 1 - Objectives

    x Typical functions of a DBMS.x Major components of the DBMS environment.x Personnel involved in the DBMS environment.x History of the development of DBMSs.x Advantages and disadvantages of DBMSs.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    4/24

  • 8/14/2019 Lec01 Introduction to Databases

    5/24

  • 8/14/2019 Lec01 Introduction to Databases

    6/24

    File-Based Processing

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    7/24

  • 8/14/2019 Lec01 Introduction to Databases

    8/24

    Limitations of File-Based Approach

    x Data dependence File structure is defined in the program code.

    x Incompatible file formats Programs are written in different languages, and so

    cannot easily access each others files.

    x

    Fixed Queries/Proliferation of applicationprograms Programs are written to satisfy particular

    functions. Any new requirement needs a new program.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    9/24

    Database Approach

    x Arose because: Definition of data was embedded in application

    programs, rather than being stored separately andindependently.

    No control over access and manipulation of databeyond that imposed by application programs.

    x Result: the database and Database Management System

    (DBMS).

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    10/24

    Database

    x Shared collection of logically related data (anda description of this data), designed to meet theinformation needs of an organization.

    x System catalog (metadata) provides descriptionof data to enable programdata independence.

    x Logically related data comprises entities,attributes, and relationships of anorganizations information.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    11/24

    Database Management System (DBMS)

    x A software system that enables users to define,create, maintain, and control access to thedatabase.

    x (Database) application program: a computerprogram that interacts with database by

    issuing an appropriate request (SQLstatement) to the DBMS.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    12/24

    Database Management System (DBMS)

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    13/24

    Database Approach

    x Data definition language (DDL). Permits specification of data types, structures and

    any data constraints.

    All specifications are stored in the database.

    x Data manipulation language (DML).

    General enquiry facility (query language) of thedata.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    14/24

    Database Approach

    x Controlled access to database mayinclude: a security system an integrity system a concurrency control system a recovery control system a user-accessible catalog.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    15/24

    Views

    x Allows each user to have his or her own view of the database.

    x A view is essentially some subset of thedatabase.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    16/24

  • 8/14/2019 Lec01 Introduction to Databases

    17/24

    Components of DBMS Environment

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    18/24

    Components of DBMS Environment

    x Hardware Can range from a PC to a network of

    computers.

    x Software DBMS, operating system, network software (if

    necessary) and also the application programs.x Data

    Used by the organization and a descriptionof this data called the schema.

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    19/24

    Components of DBMS Environment

    x Procedures Instructions and rules that should be applied to

    the design and use of the database and DBMS.x People

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    20/24

    Roles in the Database Environment

    x Data Administrator (DA )x Database Administrator (DBA)x

    Database Designers (Logical and Physical)x Application Programmersx End Users (naive and sophisticated)

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    21/24

    History of Database Systems

    x First-generation Hierarchical and Network

    x Second generation Relational

    x Third generation Object-Relational Object-Oriented

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    22/24

    Advantages of DBMSs

    x Control of data redundancyx Data consistencyx More information from the same amount of

    datax Sharing of datax Improved data integrityx Improved securityx Enforcement of standardsx Economy of scale

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    23/24

    Advantages of DBMSs

    x Balance conflicting requirementsx Improved data accessibility and responsivenessx Increased productivityx Improved maintenance through data

    independencex Increased concurrencyx Improved backup and recovery services

    Pearson Education Limited 1995, 2005

  • 8/14/2019 Lec01 Introduction to Databases

    24/24

    Disadvantages of DBMSs

    x Complexityx Sizex Cost of DBMSx Additional hardware costsx Cost of conversionx Performancex Higher impact of a failure

    Pearson Education Limited 1995, 2005