introduction to database management. 1-2 outline database characteristics dbms features ...

26
Introduction to Database Management

Upload: gregory-lindsey

Post on 30-Dec-2015

231 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

Introduction to Database Management

Page 2: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-2

Outline Database characteristics DBMS features Architectures Organizational roles

Page 3: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-3

Initial Vocabulary Data: raw facts about things and events Information: transformed data that has

value for decision making Essential to organize data for retrieval and

maintenance

Page 4: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-4

Database Characteristics Persistent : stable storage

Shared : multiple users and uses

Interrelated : data stored as entities and relationships

Page 5: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-5

University Database

University Database

Registration

GradeRecording

FacultyAssignment

CourseScheduling

Entities: students, faculty, courses, offerings, enrollmentsRelationships: faculty teach offerings, students enroll in offerings, offerings made of courses, ...

Page 6: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-6

Water Utility Database

Billing

MeterReading

PaymentProcessing

Service Start/Stop

Entities :customers, meters, bills,payments, meter readingsRelationships :bills sent to customers,customers make payments,customers use meters, ...

Page 7: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-7

Database Management System (DBMS) Collection of components that support

data acquisition, dissemination, storage, maintenance, retrieval, and formatting

Enterprise DBMSs Desktop DBMSs Embedded DBMSs Major part of information technology

infrastructure

Page 8: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-8

Database Definition Define database structure before using a

database Tables and relationships SQL CREATE TABLE statement Graphical tools

Page 9: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-9

University Database

Relationships

Tabless

Page 10: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-10

University Database (ERD)

StdSSNStdClassStdMajorStdGPA

StudentOfferNoOffLocationOffTime

Offering

EnrGrade

Enrollment

Registers

Accepts

CourseNoCrsDescCrsUnits

Course

FacSSNFacSalaryFacRankFacHireDate

Faculty

Has

Teaches

Supervises

Page 11: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-11

Nonprocedural Access Query: request for data to answer a

question Indicate what parts of database to retrieve

not the procedural details Improve productivity and improve

accessibility SQL SELECT statement and graphical

tools

Page 12: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-12

Graphical Tool for Nonprocedural Access

Page 13: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-13

Application Development Form: formatted document for data entry

and display Report: formatted document for display Use nonprocedural access to specify data

requirements of forms and reports

Page 14: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-14

Sample Data Entry Form

Page 15: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-15

Sample Report

Page 16: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-16

Procedural Language Interface Combine procedural language with

nonprocedural access Why

Batch processing Customization and automation Performance improvement

Page 17: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-17

Transaction Processing Transaction: unit of work that should be

reliably processed Control simultaneous users Recover from failures

Page 18: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-18

Database Technology EvolutionEra Generation Orientation Major Features

1960s 1st Generation File File structures and proprietary program interfaces

1970s 2nd Generation Network Navigation

Networks and hierarchies of related records, standard program interfaces

1980s 3rd Generation Relational Non-procedural languages, optimization, transaction processing

1990s 4th Generation Object Multi-media, active, distributed processing, XML enabled

Page 19: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-19

DBMS Marketplace

Enterprise DBMS Oracle: dominates in Unix; strong in Windows SQL Server: strong in Windows DB2: strong in mainframe environment Significant open source DBMSs: MySQL,

Firebird, PostgreSQL Desktop DBMS

Access: dominates FoxPro, Paradox, Approach, FileMaker Pro

Page 20: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-20

Data Independence Software maintenance is a large part

(50%) of information system budgets Reduce impact of changes by separating

database description from applications Change database definition with minimal

effect on applications that use the database

Page 21: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-21

Three Schema Architecture

View 1 View 2 View n

ConceptualSchema

InternalSchema

ExternalLevel

ConceptualLevel

InternalLevel

External toConceptualMappings

Conceptualto InternalMappings

Page 22: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-22

Differences among Levels External

Forms Reports

Conceptual Tables

Internal Files needed to store the tables Extra files to improve performance

Page 23: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-23

Client-Server Architecture

Database

Database

a) Client, server, anddatabase on thesame computer

b) Mulitple clients and 1 serveron different computers

c) Multiple servers and databases on different computers

Client

Server

Client Server

Client Server Server

DatabaseDatabase

Client

Client

Client

Client

Client

Page 24: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-24

Organizational Roles

Indirec t Param etr ic Pow er

F unctiona l User

T echnica l Non T echnica l

D BA A na lys t/Program m er M anagem ent

Inform ation S ys tem s

Spec ia l iza tion

Page 25: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-25

Database Specialists Database administrator (DBA)

More technical DBMS specific skills

Data administrator Less technical Planning role

Page 26: Introduction to Database Management. 1-2 Outline  Database characteristics  DBMS features  Architectures  Organizational roles

1-26

Summary Databases and database technology vital

to modern organizations Database technology supports daily

operations and decision making Nonprocedural access is a crucial feature Many opportunities to work with databases