chapter 1 introduction to databases thomas connolly, carolyn begg, database system, a practical...

13
Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th Edition, Addison Wesley Pg 3 ~ 26

Upload: charles-cain

Post on 04-Jan-2016

848 views

Category:

Documents


71 download

TRANSCRIPT

Page 1: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Chapter 1

Introduction to Databases

Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and

Management, 4th Edition, Addison Wesley

Pg 3 ~ 26

Page 2: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Learning Outcomes

• Introduction

• Traditional File-based Systems

• Database Approach

• Roles in the Database Environment

• Advantages & Disadvantages of DBMS

Page 3: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Examples of Database Application

• Purchases from the supermarket

• Purchases using credit card

• Booking a holiday at the travel

• Using the local library

• Taking out insurance

• Using the Internet

• Studying at university

Page 4: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

File-based Definition

• Collection of application program that perform services for the end users (e.g reports)

• Program defines and manages it’s own data

Page 5: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

File-based Processing

Page 6: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Limitations of File-based

• Separation and isolation

• Duplication

• Program & data dependence

• Fixed queries

• Proliferation of application programs

Page 7: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Database

• Definition– A collection of self-describing and integrated

data files

• System catalog– Meta data– Data dictionary– Overhead data

• Data abstraction

Page 8: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Database Approach

• Data definition language (DDL)• Data manipulation language (DML)• Structured query language (SQL)• Security system• Integrity system• Concurrency control system• Backup & recovery system• View mechanism

Page 9: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Database Management System (DBMS)

Page 10: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

DBMS Environment• Hardware

– Client-server architecture• Software

– dbms, os, network, application• Data

– Schema, subschema, table, attribute• People

– Data administrator & database administrator– Database designer: logical & physical– Application programmer– End-user: naive & sophisticated

• Procedure– Start, stop, log on, log off, back up, recovery

Page 11: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Roles in the Database Environment

• Data Administrator (DA)– Management of data resources

– Ensure database development support corporate objectives

• Database Administrator (DBA)– Physical realization of database

– More technically oriented

• Database Designers – Logical

• Identifying data

– Physical• Realization of logical database

• Application Programmers– Implement application program for user

• End Users (Naïve and Sophisticated)

Page 12: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Advantages of DBMS

• Control redundancy

• Consistency

• Integrity

• Security

• Concurrency control

• Backup & recovery

• Data standard

• More information

• Data sharing & conflict control

• Productivity & accessibility

• Economy of scale

• Maintenance

Page 13: Chapter 1 Introduction to Databases Thomas Connolly, Carolyn Begg, Database System, A Practical Approach to Design Implementation and Management, 4 th

Limitations of DBMS

• Complexity• Size• Cost

– Software– Hardware– Conversion

• Performance• Vulnerability