introduction to database systems motivation

15
Introduction to Database Systems Motivation Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website: http://www.informatika.unsyiah.ac.id Email: [email protected] d

Upload: amena-wright

Post on 31-Dec-2015

19 views

Category:

Documents


3 download

DESCRIPTION

Introduction to Database Systems Motivation. Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website: http://www.informatika.unsyiah.ac.id Email: [email protected]. Databases Are Everywhere. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introduction to Database Systems Motivation

Introduction to Database SystemsMotivation

Irvanizam Zamanhuri, M.Sc

Computer Science Study Program

Syiah Kuala University

Website: http://www.informatika.unsyiah.ac.id

Email: [email protected]

Page 2: Introduction to Database Systems Motivation

Databases Are Everywhere Database = a large (?) collection of related data

Classically, models a real-world organisation (e.g., enterprise, university) Entities (e.g., students, courses) Relationships (e.g., “Sergio is taking IDS in 2006/07”)

Changes in the organisation = changes in the database

Examples: corporate records banking airline reservations

Page 3: Introduction to Database Systems Motivation

Scientific Databases (Examples) Biology:

e.g., DNA sequences of genes, amino-acid sequences of proteins, genes expressed in tissues (up to several Gigabytes)

Astronomy: e.g., location and spectra of astronomic objects (up to several Terabytes)

Physics: e.g., sensor measurements in particle physics experiments (up to several Petabytes)

Page 4: Introduction to Database Systems Motivation

DB Tendencies Data are recorded by sensors

DBs grow in size DBs become more widespread

Computers are becoming more powerful DB Management Systems

can run on laptops (and soon on phones and chip cards?)

Multimedia data arise everywhere Requirements for larger storage New query operations

Page 5: Introduction to Database Systems Motivation

Operations with Databases Design

Define structure and types of data

Construction Create data structures of DB, populate DB with data

Manipulation of Data Insert, delete, update Query: “Which department pays the highest salary?” Create reports:

“List monthly salaries of employees, organised by department, with average salary and total sum of salaries for each dept”

Page 6: Introduction to Database Systems Motivation

An Ideal DB Implementation Should Support: Structure

data types data behaviour

Persistence store data on secondary

storage

Retrieval a declarative query

language a procedural database

programming language

Performance retrieve and store data

quickly

Data Integrity Sharing

concurrency

Reliability and resilience

Large data volumes

Page 7: Introduction to Database Systems Motivation

Database Management System (DBMS)

A DBMS is a software package designed to store and manage databases

A DBMS provides generic functionality (see previous slide) that otherwise would have to be implemented over and over again

Reduced application development time

Several brands, e.g., DB2 (IBM), SQL Server, Access (Microsoft), Oracle Xi

(Oracle), MySQL, PostgreSQL (open source)

Page 8: Introduction to Database Systems Motivation

DBMS Actors

“on the scences”

“behind the scenes”

Database Management SystemDatabase Management System

Tool Developers

Operators and MaintenancePersonnel

End Users• sophisticated

• casual• ‘parametric’ or

‘canned’ transactions

DatabaseDesigners

DatabaseAdministrator

(DBA)

ApplicationProgrammers

DatabaseDatabase

DBMS developers

Page 9: Introduction to Database Systems Motivation

File System: A Physical Interface

Student Admin

Scheduler

Payroll

Timetable

Year Lists

Cheques

StudentData

Lecturer Data

CourseData

Page 10: Introduction to Database Systems Motivation

Sharing data:Replication Redundancy

Student Data

Course Data

Lecturer Data

Student Admin

Payroll

Teaching Schedule

Lab Timetable

Tutorials

Scheduler

Page 11: Introduction to Database Systems Motivation

Sharing Data and Operations

Course Data

Lecturer Data

Student Admin

Scheduler

Payroll

Schedule

Lab Timetable

Tutorials

Student Data

Teaching

Page 12: Introduction to Database Systems Motivation

UniversityDatabase Metadata

DBMS: A Logical Interface

studentcourse

lecturer

Lab Timetable

TeachingSchedule

Tutorials

Database ManagementSystem

University DatabaseData

Data Dictionary or

System Catalog ?QUERIES

Page 13: Introduction to Database Systems Motivation

File System Approach

• Uncontrolled redundancy• Inconsistent data• Inflexibility• Limited data sharing• Poor enforcement of standards• Low programmer productivity• Excessive program maintenance• Excessive data maintenance

Page 14: Introduction to Database Systems Motivation

DBMS Approach

Controlled redundancy consistency of data &

integrity constraints Integration of data

self-contained represents semantics

of application Data and operation

sharing multiple interfaces

Services & controls security & privacy controls backup & recovery enforcement of standards

Flexibility data independence data accessibility reduced program

maintenance Ease of application

development

Page 15: Introduction to Database Systems Motivation

However....

If an application is simple stringent real-time single user static,

files are the option of choice

DBMS downside: more expensive more complex general

In a file system, data is physically accessed and unintegrated

In a DBMS, data is logically accessed and integrated: query language data dictionary

Summary: