34
© 2009 Pearson Education, Inc. Publishing as © 2009 Pearson Education, Inc. Publishing as Prentice Hall Prentice Hall 1 Chapter 1: Chapter 1: The Database The Database Environment Environment Modern Database Management Modern Database Management 9 9 th th Edition Edition Jeffrey A. Hoffer, Mary B. Prescott, Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi Heikki Topi

© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Embed Size (px)

Citation preview

Page 1: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

© 2009 Pearson Education, Inc.  Publishing as © 2009 Pearson Education, Inc.  Publishing as Prentice HallPrentice Hall 11

Chapter 1:Chapter 1:The Database The Database EnvironmentEnvironment

Modern Database Modern Database ManagementManagement

99thth Edition EditionJeffrey A. Hoffer, Mary B. Prescott, Jeffrey A. Hoffer, Mary B. Prescott,

Heikki TopiHeikki Topi

Page 2: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 22

ObjectivesObjectives Definition of termsDefinition of terms Explain growth and importance of databasesExplain growth and importance of databases Name limitations of conventional file Name limitations of conventional file

processingprocessing Identify five categories of databasesIdentify five categories of databases Explain advantages of databasesExplain advantages of databases Identify costs and risks of databasesIdentify costs and risks of databases List components of database environmentList components of database environment Describe evolution of database systemsDescribe evolution of database systems

Page 3: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

33

DefinitionsDefinitions DatabaseDatabase: organized collection of logically : organized collection of logically

related datarelated data DataData: stored representations of meaningful : stored representations of meaningful

objects and eventsobjects and events StructuredStructured: numbers, text, dates: numbers, text, dates UnstructuredUnstructured: images, video, documents: images, video, documents

InformationInformation: data processed to increase : data processed to increase knowledge in the person using the dataknowledge in the person using the data

MetadataMetadata: data that describes the properties : data that describes the properties and context of user dataand context of user data

Page 4: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 44

Figure 1-1a Data in context

Context helps users understand data

Page 5: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 55

Graphical displays turn data into useful information that managers can use for decision making and

interpretation

Figure 1-1b Summarized data

Page 6: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 66

Descriptions of the properties or characteristics of the data, including data types, field sizes, allowable values, and

data context

Page 7: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall

File-Based Systems (FBS)File-Based Systems (FBS)

77

FBS is a collection of application programs that perform tasks where each program defines and manages its own data.

DataEntry

Filehandling

File DefUser 1

Application Program 1 File1

DataEntry

Filehandling

File DefUser 2

Application Program 2 File 2

Page 8: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 88

Disadvantages of Disadvantages of File-Based Systems File-Based Systems (FBS)(FBS)

Program-Data DependenceProgram-Data Dependence All programs maintain metadata for each file they useAll programs maintain metadata for each file they use

Duplication of DataDuplication of Data Different systems/programs have separate copies of the Different systems/programs have separate copies of the

same datasame data

Limited Data SharingLimited Data Sharing No centralized control of dataNo centralized control of data

Lengthy Development TimesLengthy Development Times Programmers must design their own file formatsProgrammers must design their own file formats

Excessive Program MaintenanceExcessive Program Maintenance 80% of information systems budget80% of information systems budget

Page 9: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 99

Problems with Data Problems with Data DependencyDependency

Each application programmer must Each application programmer must maintain his/her own datamaintain his/her own data

Each application program needs to Each application program needs to include code for the metadata of each include code for the metadata of each filefile

Each application program must have its Each application program must have its own processing routines for reading, own processing routines for reading, inserting, updating, and deleting datainserting, updating, and deleting data

Lack of coordination and central controlLack of coordination and central control Non-standard file formatsNon-standard file formats

Page 10: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall1010

Duplicate Data

Page 11: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1111

Problems with Data Problems with Data RedundancyRedundancy

Waste of space to have duplicate dataWaste of space to have duplicate data Causes more maintenance headachesCauses more maintenance headaches The biggest problem: The biggest problem:

Data changes in one file could cause Data changes in one file could cause inconsistenciesinconsistencies

Compromises in Compromises in data integritydata integrity

Page 12: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1212

SOLUTION: SOLUTION: The DATABASE ApproachThe DATABASE Approach

Central repository of shared dataCentral repository of shared data Data is managed by a controlling Data is managed by a controlling

agentagent Stored in a standardized, Stored in a standardized,

convenient formconvenient form

Requires a Database Management System (DBMS)

Page 13: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1313

Database Management Database Management SystemSystem

DBMS manages data resources like an operating system manages hardware resources

A software system that is used to create, maintain, and provide controlled access to user databases

Order Filing System

Invoicing System

Payroll System

DBMSCentral database

Contains employee,order, inventory,

pricing, and customer data

Page 14: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1414

Advantages of the Database Advantages of the Database ApproachApproach

Program-data independenceProgram-data independence Planned data redundancyPlanned data redundancy Improved data consistencyImproved data consistency Improved data sharingImproved data sharing Increased application development Increased application development

productivityproductivity Enforcement of standardsEnforcement of standards Improved data qualityImproved data quality Improved data accessibility and Improved data accessibility and

responsivenessresponsiveness Reduced program maintenanceReduced program maintenance Improved decision supportImproved decision support

Page 15: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1515

Costs and Risks of the Database Costs and Risks of the Database ApproachApproach

New, specialized personnelNew, specialized personnel Installation and management cost Installation and management cost

and complexityand complexity Conversion costsConversion costs Need for explicit backup and Need for explicit backup and

recoveryrecovery Organizational conflictOrganizational conflict

Page 16: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1616

Elements of the Database Elements of the Database ApproachApproach

Data models Data models Graphical system capturing nature and relationship of dataGraphical system capturing nature and relationship of data Enterprise Data Model–high-level entities and relationships Enterprise Data Model–high-level entities and relationships

for the organizationfor the organization Project Data Model–more detailed view, matching data Project Data Model–more detailed view, matching data

structure in database or data warehouse structure in database or data warehouse Relational DatabasesRelational Databases

Database technology involving tables (relations) Database technology involving tables (relations) representing entities and primary/foreign keys representing entities and primary/foreign keys representing relationshipsrepresenting relationships

Use of Internet TechnologyUse of Internet Technology Networks and telecommunications, distributed databases, Networks and telecommunications, distributed databases,

client-server, and 3-tier architecturesclient-server, and 3-tier architectures Database ApplicationsDatabase Applications

Application programs used to perform database activities Application programs used to perform database activities (create, read, update, and delete) for database users(create, read, update, and delete) for database users

Page 17: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1717

Segment of an enterprise data model

Segment of a project-level data model

Figure 1-2 Comparison of enterprise and project level data models

Page 18: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1818

One customer may place many orders, but each order is placed by a single customer

One-to-many relationship

Page 19: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 1919

One order has many order lines; each order line is associated with a single order

One-to-many relationship

Page 20: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2020

One product can be in many order lines, each order line refers to a single product

One-to-many relationship

Page 21: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2121

Therefore, one order involves many products and one product is involved in many orders

Many-to-many relationship

Page 22: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2222

Page 23: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2323

Figure 1-5 Components of the Database Environment

Page 24: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2424

Components of the Components of the Database EnvironmentDatabase Environment

CASE ToolsCASE Tools––computer-aided software engineeringcomputer-aided software engineering RepositoryRepository––centralized storehouse of metadatacentralized storehouse of metadata Database Management System (DBMS) Database Management System (DBMS) ––

software for managing the databasesoftware for managing the database DatabaseDatabase––storehouse of the datastorehouse of the data Application ProgramsApplication Programs––software using the datasoftware using the data User InterfaceUser Interface––text and graphical displays to text and graphical displays to

usersusers Data/Database AdministratorsData/Database Administrators––personnel personnel

responsible for maintaining the databaseresponsible for maintaining the database System DevelopersSystem Developers––personnel responsible for personnel responsible for

designing databases and softwaredesigning databases and software End UsersEnd Users––people who use the applications and people who use the applications and

databasesdatabases

Page 25: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2525

The Range of Database The Range of Database ApplicationsApplications

Personal databasesPersonal databases Workgroup databasesWorkgroup databases Departmental/divisional databasesDepartmental/divisional databases Enterprise databaseEnterprise database

Enterprise resource planning (ERP) Enterprise resource planning (ERP) systemssystems

Data warehousing implementationsData warehousing implementations

Page 26: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2626

Table 1-6 Summary of Database Applications

Page 27: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2727

Page 28: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2828

Figure 1-7 Workgroup database with wireless local area network

Page 29: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 2929

Enterprise Database Enterprise Database ApplicationsApplications

Enterprise Resource Planning (ERP)Enterprise Resource Planning (ERP) Integrate all enterprise functions Integrate all enterprise functions

(manufacturing, finance, sales, marketing, (manufacturing, finance, sales, marketing, inventory, accounting, human resources)inventory, accounting, human resources)

Data WarehouseData Warehouse Integrated decision support system derived Integrated decision support system derived

from various operational databasesfrom various operational databases

Page 30: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 3030

Figure 1-8 An enterprise data warehouse

Page 31: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 3131

Web-Enabled DatabasesWeb-Enabled Databases

Web applications requiring databasesWeb applications requiring databases Customer relationship management Customer relationship management

(CRM)(CRM) Business-to-consumer (B2C)Business-to-consumer (B2C) Electronic data interchange (EDI)Electronic data interchange (EDI) Private intranetsPrivate intranets XML-defined Web servicesXML-defined Web services

Page 32: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 3232

Web-Enabled Databases Web-Enabled Databases (cont.)(cont.)

Issues to considerIssues to consider Which technologies to use?Which technologies to use? Security/privacy protectionSecurity/privacy protection Managing huge volumes of data from Managing huge volumes of data from

Internet transactionsInternet transactions Maintaining data qualityMaintaining data quality

Page 33: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 3333

Figure 1-9 Evolution of database technologies

Page 34: © 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 1: The Database Environment Modern Database Management 9 th Edition Jeffrey A. Hoffer,

Chapter 1 © 2009 Pearson Education, Inc.  Publishing as Prentice Hall© 2009 Pearson Education, Inc.  Publishing as Prentice Hall 3434

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic,

mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America.

Copyright © 2009 Pearson Education, Inc.  Publishing as Prentice Copyright © 2009 Pearson Education, Inc.  Publishing as Prentice HallHall