module 1.ppt

21
June 19, 2022 module I - taufik ([email protected]) 1 Reference : Elmasri Chapter 1 Reference : Elmasri Chapter 1

Upload: superr-optimistt

Post on 10-May-2017

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: module 1.ppt

May 3, 2023module I - taufik

([email protected]) 1

Reference : Elmasri Chapter 1Reference : Elmasri Chapter 1

Page 2: module 1.ppt

Module 1 - MotivationFundamentals of Database Systems The design and implementation of the database

component is a most significant aspect of Information system development

Success of the Information system depends on the design of the database !

May 3, 2023module I - taufik

([email protected]) 2

I think our smaller sized cans of drink I think our smaller sized cans of drink are selling faster than the larger are selling faster than the larger

ones. Can you give me aones. Can you give me abreakdown?breakdown?

Sorry but we can only obtain Sorry but we can only obtain reports showing total cans sold reports showing total cans sold

to each storeto each store.

Page 3: module 1.ppt

Module 1 - ContentsFundamentals of Database Systems Introduces the concept of a database Introduces the concept of a database

management system Describes the functions of a database

management system

May 3, 2023module I - taufik

([email protected]) 3

Page 4: module 1.ppt

What is a Database?A collection of related facts

May 3, 2023module I - taufik

([email protected]) 4

Filing CabinetFiling Cabinet Hard disk full of dataHard disk full of data

DiaryDiary

Library

Page 5: module 1.ppt

What is a DBMS? DBMS - DataBase Management System A software system for defining, constructing

and manipulating databases for various applications

DBMS may be general purpose (business applications) or special purpose (biological databases, geographic information, ...)

May 3, 2023module I - taufik

([email protected]) 5

Page 6: module 1.ppt

The DBMS facilitates ... Defining a database – Specifying the types, structures, and constraints for the data Constructing a database – Storing the data on a storage medium Manipulating a database – Querying and updating the database

May 3, 2023module I - taufik

([email protected]) 6

Page 7: module 1.ppt

What is a Database System?

May 3, 2023module I - taufik

([email protected]) 7

ApplicationApplication Programs/Queries

Software to Process Queries/Programs

Software to AccessStored Data

DATABASE SYSTEMDATABASE SYSTEM

DBMS SOFTWARE

Users/Programmers

Stored Database Definition

(Meta-Data)Stored

Database

DBMSDBMS++

DatabaseDatabase==

Database SystemDatabase System

Page 8: module 1.ppt

Database System Components The Stored Database

– A collection of related facts The DBMS – The software that defines, constructs and manipulatesa database The Applications – The programs (in specific languages) that manipulate the database The Users – People who use the database system, through the DBMS interface or through application programs

May 3, 2023module I - taufik

([email protected]) 8

Page 9: module 1.ppt

Users of the Database System

Database Administrators Database Designers and Application

Programmers End Users – Casual End Users – Parametric End Users – Sophisticated End Users

May 3, 2023module I - taufik

([email protected]) 9

Page 10: module 1.ppt

Why use a Database System?

The database approach provides a central store of data and meta-data, and thus – Is not internal to an application program, as in traditional file processing environments – Provides shared access for multiple users – Relieves the application programmer from various tedious book keeping tasks – Provides the facility to change the data without affecting the applications

May 3, 2023module I - taufik

([email protected]) 10

Page 11: module 1.ppt

The DBMS Software

May 3, 2023module I - taufik

([email protected]) 11

DBA Staff

DDLStatements

PRIVILEGED COMMANDS

DDLCompiler

Stored DataManager

InteractiveQuery

DMLStatements

Precompiler

ApplicationPrograms

RuntimeDatabaseProcessor

QueryCompiler

CannedTransactions

HostLanguageCompiler

Concurrency ControlBackup/ Recovery/Subsystems

DMLCompiler

SystemCatalog

Stored Database

Casual Users

Application ProgrammersParametric

Users

o

o

o

o

o

Execution

Execution

Execution

Page 12: module 1.ppt

Typical Functions of

the DBMS Controlling redundancy Restricting unauthorized access Providing multi-user interfaces Representing complex relationships Enforcing integrity constraints Providing backup and recovery

May 3, 2023module I - taufik

([email protected]) 12

Page 13: module 1.ppt

Controlling redundancy Users of traditional file

processing systems, each had a “copy” of relevant data, causing

– Duplication of effort – Wastage of storage space – Inconsistent data However, redundancy

sometimes enhances performance - DBMS provides an environment where redundancy can be controlled

May 3, 2023module I - taufik

([email protected]) 13

Stud-No Name Degree Subject Grade 90 Smith BA CS182 7 87 Brown BA CS182 7 98 James BSc CS181 6 90 Smith BIT CS181 6

Stud-No Name Degree Finance-Type 90 Smith BIT Self 87 Brown BA UQ Scholar 98 Harrison BSc Self

Page 14: module 1.ppt

Restricting unauthorized access

Different user groups may have different access privileges (Create/Alter, Update, and Retrieve), which are controlled through DBMS security sub-system, through the use of Accounts & Passwords

Casual users may not have access to confidential data, e.g medical records, salary packages, police reports

Parametric users may be given update access, but are generally not allowed to change the structure of data

Database administrators (DBAs) generally have highest privileges, create user accounts and enforce restrictions

May 3, 2023module I - taufik

([email protected]) 14

Page 15: module 1.ppt

Providing multi-user interfaces

Query Languages for Casual End Users Programming Language Interfaces for

Application Programmers Forms and Commands for Parametric Users - Graphical User Interfaces (GUI) - Interface for Web Enabling - Natural Language Interfaces

May 3, 2023module I - taufik

([email protected]) 15

Page 16: module 1.ppt

Complex relationshipsDBMS has ability to represent complex

relationships among the data

May 3, 2023module I - taufik

([email protected]) 16

Stud-No Name Degree Subject GradeStud-No Name Degree Subject Grade 90 Smith 90 Smith BA CS182 7BA CS182 7 87 Brown 87 Brown BA CS182 7BA CS182 7 98 James 98 James BSc CS181 6BSc CS181 6 90 Smith 90 Smith BIT CS181 6BIT CS181 6

Sub-Code Title Sub-Code Title Credit Department Credit Department CS181 CS181 Software Eng Software Eng 12 12 CSEECSEE CS182 Intro to Info Sys CS182 Intro to Info Sys 12 12 CSEECSEE CO362 Business Info Sys 10 CO362 Business Info Sys 10 CommerceCommerce

James is doing BScJames is doing BSc

CS181 is the code forCS181 is the code forSoftware EngineeringSoftware Engineering

CO362 is offered by theCO362 is offered by theCommerce DepartmentCommerce Department

Page 17: module 1.ppt

Enforcing integrity constraints

The DBMS has the capability to define and enforce integrity constraints which are restrictions placed on the data, based on the semantics or meaning of the data

– Every Subject must have a unique Code– A student cannot have 2 different grades for the same

subject– A student cannot enroll in more than four 12-credit

subjects in a semester– Student No must be a 9 digit integer

DBMS cannot check spelling or typing errors, for example, if 5 was entered as the grade of a student getting 7 - DBMS will not identify the error!

May 3, 2023module I - taufik

([email protected]) 17

Page 18: module 1.ppt

Providing backup and recovery

DBMS provides facility to recover from hardware and software failures through its backup and recovery sub-system

An update program is executing Computer System fails in the

middle of the update DBMS restores the database to a

state prior to the update and restarts the update program

May 3, 2023module I - taufik

([email protected]) 18

Deposit $200 into ATMDeposit $200 into ATM

system fails

Deposit not recorded inDeposit not recorded inyour a/cyour a/c

Page 19: module 1.ppt

Module 1 - Review

Key definitions: Database DBMS (Many Functions) Database System = DBMS + Database

May 3, 2023module I - taufik

([email protected]) 19

Page 20: module 1.ppt

Recommended Readings

Elmasri & Navathe

Chapter 1

May 3, 2023module I - taufik

([email protected]) 20

Page 21: module 1.ppt

Next ...

Module 2

Relational Model

May 3, 2023module I - taufik

([email protected]) 21