Top Banner
1 1 Chapter 1 Introduction to Database Management Database Management
42

Chapter 1 ® Introduction to Database Management

Nov 12, 2014

Download

Documents

Databaseguys

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 1 ® Introduction to Database Management

1

1

Chapter 1

Introduction to Database Management

Database Management

Page 2: Chapter 1 ® Introduction to Database Management

2

1

Objectives

Provide a general introduction to the field of database management

Introduce basic terminology Describe the advantages and

disadvantages of database processing Provide a brief history of database

management Describe the hierarchical and network

database models

Page 3: Chapter 1 ® Introduction to Database Management

3

1

Introduction

Chapter uses the example of Henry, the owner of four bookstores

Current file system is difficult and costly to use

Interested in different categories of data, called entities, including books, authors, publishers, and branches, and the relationships between these entities

Page 4: Chapter 1 ® Introduction to Database Management

4

1

Henry’s Basic Data

File - an organized collection of data about a single entity

Record - pertains to a specific person, place, thing, or event

Fields - contain certain facts about that specific person, place, thing, or event

Page 5: Chapter 1 ® Introduction to Database Management

5

1

Figure 1.1Branch File

Page 6: Chapter 1 ® Introduction to Database Management

6

1

Figure 1.2Publisher and Author Files

Page 7: Chapter 1 ® Introduction to Database Management

7

1

Figure 1.3Book File

Page 8: Chapter 1 ® Introduction to Database Management

8

1

Figure 1.4Book-Author and Book-Branch Files

Page 9: Chapter 1 ® Introduction to Database Management

9

1

Using a Database Management System (DBMS)

A DBMS is a program or collection of programs whose function is to manage a database on behalf of the people who use it.

Database design is the determination of the structure of the database.

Page 10: Chapter 1 ® Introduction to Database Management

10

1

Figure 1.5Branch Form

Page 11: Chapter 1 ® Introduction to Database Management

11

1

Figure 1.6Book Form

Page 12: Chapter 1 ® Introduction to Database Management

12

1

Figure 1.7Book Report

Page 13: Chapter 1 ® Introduction to Database Management

13

1

Figure 1.8Main Switchboard

Page 14: Chapter 1 ® Introduction to Database Management

14

1

Figure 1.9Maintain Data Switchboard

Page 15: Chapter 1 ® Introduction to Database Management

15

1

Entities, Attributes, and Relationships

Entity – a person, place, thing, or event Attribute – a property of an entity

For the entity “Person,” attributes could include eye color and height

Relationship – an association between entities Publishers are related to the books they

publish, and a book is related to its publisher

Page 16: Chapter 1 ® Introduction to Database Management

16

1

Figure 1.10Entities and Attributes

Page 17: Chapter 1 ® Introduction to Database Management

17

1

Figure 1.11One-to-Many Relationship

Page 18: Chapter 1 ® Introduction to Database Management

18

1

Files and Databases

Data file – stores information on a single entity and the attributes of that entity

Database – a structure that can store information about multiple types of entities, the attributes of these entities, and the relationships among the entities

Page 19: Chapter 1 ® Introduction to Database Management

19

1

Database Management System (DBMS)

DBMS programs manipulate databases either for the user, or a program the user is executing

Mainframe DBMSs have been used since the 1960s

Since the mid-1980s, DBMSs on PCs possess many of the features of their mainframe counterparts

Page 20: Chapter 1 ® Introduction to Database Management

20

1

Figure 1.12Using Database Management Systems

Page 21: Chapter 1 ® Introduction to Database Management

21

1

Database Processing

Database processing – the data to be processed are stored in a database and the data in the database are being manipulated by the DBMS

Nondatabase approach Duplication of data Extremely difficult to fulfill requirements

that involve data from more than one system

Page 22: Chapter 1 ® Introduction to Database Management

22

1

Figure 1.13Nondatabase Approach

Page 23: Chapter 1 ® Introduction to Database Management

23

1

Database Processing

Database approach Common database managed by a DBMS Each entity appears only once in the

system, reducing the duplication of data With all data being in a single database, it

is possible to list all information concerning the entities

Page 24: Chapter 1 ® Introduction to Database Management

24

1

Figure 1.14Database Approach

Page 25: Chapter 1 ® Introduction to Database Management

25

1

Figure 1.15Advantages of Database Processing

Page 26: Chapter 1 ® Introduction to Database Management

26

1

Advantages ofDatabase Processing

Getting more information from the same amount of data When all the data for various systems are

stored in a single database, the information becomes available, as well as the process of retrieving the information can be quick and easy

Page 27: Chapter 1 ® Introduction to Database Management

27

1

Advantages ofDatabase Processing

Sharing of data Several users can have access to the

same piece of data Balancing conflicting requirements

A person or group, often called Database Administration/Administrator (DBA) can structure the database in such a way that it benefits the entire organization, not just a single group

Page 28: Chapter 1 ® Introduction to Database Management

28

1

Advantages ofDatabase Processing

Controlling redundancy Not only saves space, but makes the

updating process easier Consistency

Consistency is a direct result of redundancy, so by reducing redundancy, there is much less potential for this sort of inconsistency with the database approach

Page 29: Chapter 1 ® Introduction to Database Management

29

1

Advantages ofDatabase Processing

Integrity An integrity constraint is a rule that must

be followed by data in the database Example: Not allowing a person’s age to be

lower than zero

Security The prevention of access to the database

by unauthorized users

Page 30: Chapter 1 ® Introduction to Database Management

30

1

Advantages ofDatabase Processing

Increasing productivity A good DBMS comes with many features

that allow users to gain access to data without having to do any programming at all

Data independence A property that allows the structure of a

database to be changed without the programs that access the database having to change

Page 31: Chapter 1 ® Introduction to Database Management

31

1

Figure 1.16Disadvantages of Database Processing

Page 32: Chapter 1 ® Introduction to Database Management

32

1

Disadvantages ofDatabase Processing

DBMS size DBMSs are large programs that occupy a

large amount of disk space as well as internal memory

DBMS complexity The complexity and breadth of the

functions provided by a DBMS make it a complex product to use

Page 33: Chapter 1 ® Introduction to Database Management

33

1

Disadvantages ofDatabase Processing

Greater impact of a failure A failure on the part of any one user that

damages the database in some way may affect all the other users on the system

More difficult recovery If the database is being updated by a large

number of users, all updates must be redone since the time of its restoration

Page 34: Chapter 1 ® Introduction to Database Management

34

1

History ofDatabase Management

IBM developed the Generalized Update Access Method (GUAM) in 1964 for North American Rockwell, the prime contractor for the APOLLO project

GUAM was made available for the general public under the name Data Language/I (DL/I) in 1966

Page 35: Chapter 1 ® Introduction to Database Management

35

1

History ofDatabase Management

DL/I became the data management component for the Information Management System (IMS), which was the dominant DBMS for many years

In the mid-1960s, General Electric developed Integrated Data Store (I-D-S)

Page 36: Chapter 1 ® Introduction to Database Management

36

1

History ofDatabase Management

The COnference on DAta SYstems Languages (CODASYL) tackled the problem of providing standards for DBMSs in the late 1960s

In 1971, the CODASYL standards were presented to the American National Standards Institute (ANSI)

Page 37: Chapter 1 ® Introduction to Database Management

37

1

History ofDatabase Management

Throughout the 1970s, the relational model was the subject of intense research

The 1980s is when the first commercial relational DBMSs appeared

The 1980s saw the development of object-oriented database management systems (OODBMSs)

Page 38: Chapter 1 ® Introduction to Database Management

38

1

Hierarchical and Network Databases

Four types of data models Network Hierarchical Relational Object-oriented

Page 39: Chapter 1 ® Introduction to Database Management

39

1

Network Model

Perceived by the user as a collection of record types and relationships between these record types

I-D-S and other CODASYL systems are examples of DBMSs that conform to the network data model

Page 40: Chapter 1 ® Introduction to Database Management

40

1

Figure 1.17Network Database Structure

Page 41: Chapter 1 ® Introduction to Database Management

41

1

Hierarchical Model

Perceived by the user as a collection of hierarchies, or trees

More restrictive structure than a network model

GUAM, DL/I, and IMS are examples of DBMSs that conform to the hierarchical model

Page 42: Chapter 1 ® Introduction to Database Management

42

1

Figure 1.18Hierarchical Database Structure