Вы находитесь на странице: 1из 34

Prof. James P.

Buckley
jbuckley1@udayton.edu

CPS 430/542 Dr. James P. Buckley

1/18/2016

CPS 430/542 Dr. James P. Buckley

1/18/2016

collection of related data (known


facts that can be recorded and that
have implicit meaning)

CPS 430/542 Dr. James P. Buckley

1/18/2016

Shift

from computation to information

Datasets
DBMS

increasing in diversity and volume.

encompasses most of CS

CPS 430/542 Dr. James P. Buckley

1/18/2016

CPS 430/542 Dr. James P. Buckley

1/18/2016

Provide

a place to store a unified collection of


information about an organization or activity

Support

a logical structure of the data

Provide

data independence

CPS 430/542 Dr. James P. Buckley

1/18/2016

Allow

development of multiple concurrent


applications

Provide
Allow

data security and integrity

efficient data access

CPS 430/542 Dr. James P. Buckley

1/18/2016

Supermarket
Credit

card

Travel

agent

CPS 430/542 Dr. James P. Buckley

1/18/2016

very large, integrated collection of


data.

Models

real-world enterprise.

Database Management System


(DBMS) is a software package
designed to store and manage
databases.
CPS 430/542 Dr. James P. Buckley

1/18/2016

Define

a database

Usually accomplished via a Data Definition

Language (DDL)

CPS 430/542 Dr. James P. Buckley

1/18/2016

10

Construct

a database

Manipulate

a database

Data Manipulation Language (DML)

CPS 430/542 Dr. James P. Buckley

1/18/2016

11

Provides controlled access to the database


Security system
Integrity system
Concurrency control
Recovery control

CPS 430/542 Dr. James P. Buckley

1/18/2016

12

Data

independence

Efficient

access.

Reduced

time.

Data

application development

integrity and security.

CPS 430/542 Dr. James P. Buckley

1/18/2016

13

Uniform

data administration.

Concurrent
Recovery

access

from crashes.

CPS 430/542 Dr. James P. Buckley

1/18/2016

14

CPS 430/542 Dr. James P. Buckley

1/18/2016

15

Each

application has its own file format

Poor

data independence

Redundant
Difficult

data storage

to access data

CPS 430/542 Dr. James P. Buckley

1/18/2016

16

Data

isolation

Concurrent

access anomalies

Security

& integrity problems (logical &


physical)

CPS 430/542 Dr. James P. Buckley

1/18/2016

17

Is self-contained
Program-Data
Data

Independence

abstraction

CPS 430/542 Dr. James P. Buckley

1/18/2016

18

Hides

storage details

Multiple

views of data

CPS 430/542 Dr. James P. Buckley

1/18/2016

19

CPS 430/542 Dr. James P. Buckley

1/18/2016

20

Backbone

of many businesses

Imagine

amazon.com without database


technology!

CPS 430/542 Dr. James P. Buckley

1/18/2016

21

Application
programs run
on PCs

PC

PC

PC

network

Server computer
running DBMS
...
CPS 430/542 Dr. James P. Buckley

disks
1/18/2016

22

Level 1: view (provided to


user by application
program)

view1

viewN

Conceptual
level

Level 2: conceptual (schema,


e.g. ER or relational)

Physical
level

Level 3: physical (how data


is stored)

CPS 430/542 Dr. James P. Buckley

...

1/18/2016

23

Object-based logical models

ER model

CPS 430/542 Dr. James P. Buckley

1/18/2016

24

number

addr

Store

city

number

Stocks

name

category

Product
qoh

CPS 430/542 Dr. James P. Buckley

1/18/2016

25

Relational

is the dominant technology used


for new applications today.

CPS 430/542 Dr. James P. Buckley

1/18/2016

26

Network

(CODASYL)

Hierarchical

(IMS)

CPS 430/542 Dr. James P. Buckley

1/18/2016

27

Widely

used in legacy systems

No

one in their right mind would develop


a new database using one of these today

CPS 430/542 Dr. James P. Buckley

1/18/2016

28

However, people

will be enhancing
existing databases and applications
based on these well into the next decade

Old

databases never die

CPS 430/542 Dr. James P. Buckley

1/18/2016

29

Store

num

name

addr

122

Gainesville

141

Lake City

num

name

category

1000 NW 13th

100

soap

toiletries

101 N. Addison Dr.

200

toaster

housewares

Stocks

Product

store_num

prod_num

qoh

122

100

1000

122

200

27

141

100

313

CPS 430/542 Dr. James P. Buckley

1/18/2016

30

End
DB

users and DBMS vendors

application programmers

E.g. smart webmasters

CPS 430/542 Dr. James P. Buckley

1/18/2016

31

Nave users

Sophisticated
DBA
users

Application
programs

front end

back end

Query/command
processor
Database manager
File manager

Parser, query optimizer,


DDL compiler etc.
Concurrency control,
recovery,
access methods,
file structures

Data,
catalogs

CPS 430/542 Dr. James P. Buckley

1/18/2016

32

DBMS

used to maintain, query large datasets.

Benefits

include recovery from system crashes,


concurrent access, quick application
development, data integrity and security.

Levels

of abstraction give data independence.

CPS 430/542 Dr. James P. Buckley

1/18/2016

33

DBMS typically has a layered


architecture.

DBAs

hold responsible jobs and are


well-paid!

DBMS

R&D is one of the


broadest, most exciting areas in CS.

CPS 430/542 Dr. James P. Buckley

1/18/2016

34