dbms1 database management system (dbms) introductory concepts week-1

20
DBMS 1 Database Management System (DBMS) Introductory Concepts Week-1

Upload: philippa-collins

Post on 22-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 1

Database Management System (DBMS)

Introductory Concepts

Week-1

Page 2: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 2

Database Management System

DATA & INFORMATION FILE-BASED SYSTEMS DATABASE DATABASE MANAGEMENT SYSTEMS (DBMS) DB LANGUAGES DB USERS DB SCHEMAS DBMS FACILTIES DATA DICTONARY HISTORY – DATABASE MODELS

Topics Overview

Page 3: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 3

What are Data? Data are raw facts or figures.

What is Information ? Information is processed data which gives meaning to the user.

Data and Information

Information is produced by processing data. Information is used to give the meaning of data. Good, relevant, and timely information is the key to good decision making. Good decision making is the key to organizational success.

Page 4: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 4

What is a File Base System ?

It is the storage area in a computer systemwhere user stores programs and data permanently.

User programs and data are stored in individual files in the file system.

A file is a collection of data or program instructions.

Page 5: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 5

Examples of Files a file named “students" might contain information about the different students in the college.

a file named “teachers" might contain information about the different teachers working in the college.

a file named "Aircraft" might contain information about the different types of aircraft used by a particular airline company.

Page 6: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 6

LIMITATIONS OF FILE-BASE SYSTEM

REDUNDANCY ( DUPLICATION ) The use of individual data files lead to situations in

which an organization maintains many copies of the same basic information.

INCONSISTENCY (NOT CORRECT) SEPARATION AND ISOLATION NO SHARING OF DATA PROGRAM & DATA DEPENDENCE

Page 7: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 7

DATABASE

Definition

A DATABASE IS A COLLECTION OF SELF-DESCRIBING,

INTEGRATED AND ORGANISED DATA.

(It is a collection of related files)

Examples of Manual System: DICTIONARY (English Words - Meaning) NEWSPAPER BOOK INDEX

Page 8: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 8

DATABASE MANAGEMENT SYSTEM (DBMS)

Definition

A DBMS is a set of programs that allow users to create the database and also allow to access, modify, print, add and delete the data from a database.

Different DBMS Software are :ORACLEACCESSSQL SERVERDB2

Page 9: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 9

Examples of Database Applications: Student Registration System Computerized Library Systems Stock/Inventory Management Systems Flight Reservation Systems Automated teller machines Hotel Management System Hospital Management System

Page 10: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 10

ADVANTAGES OF DATABASE MANAGEMENT SYSTEMS

CONTROL REDUNDANCY CONSISTENCY INTEGRITY SECURITY DATA SHARING EASY MAINTENANCE MORE INFORMATION BACKUP & RECOVERY DATA STANDARD

Page 11: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 11

Database vs. File Systems

Page 12: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 12

USERS/ROLES IN DATABASE ENVIRONMENT

DATABASE DESIGNER designing logical & physical database

APPLICATION PROGRAMMER writing programs to create the database using DBMS software

DATA ADMINISTRATOR & DATABASE ADMINISTRATOR

doing database administration works

END-USER users of the system

Page 13: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 13

Duties or Responsibilities of Database Administrator

Makes policy and strategic decisions. E.g. Purpose of the database, which data processing is done by the DBMS?

Defining Security & Integrity Rules E.g. Create user-ids and passwords Defines Backup procedures   E.g. When to take backup and what data is to be backed-up?

Monitoring performance and responding to changing requirements.

E.g. Is the query fast enough? Does the report satisfy the mangers?

Defines the conceptual schema E.g. Design the schema based on users’ views

Defines the internal schema E.g. How should the schema be implemented – Relational DBMS?

Page 14: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 14

LIMITATIONS OF DBMS

COMPLEXITY SIZE COST

• SOFTWARE• HARDWARE• CONVERSION

PERFORMANCE VULNERABILITY

Page 15: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 15

Database Languages

A special database language called (SQL) Structured Query Language is used to create the database, query the database, process the data and maintain the data base.

SQL includes three types of languages:

DATA DEFINITION LANGUAGE (DDL)

DATA MANIPULATION LANGUAGE (DML)• Procedural DML• Non-procedural DML

DATA CONTROL LANGUAGE (DCL)

Also another language called Fourth-Generation Language used for creating Forms, reports, graphics, & applications.

Page 16: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 16

Three-Level of Database (in ANSI-SPARC Architecture )

External User's view

Conceptual Organization view Constraints, semantic, security, &

integrity Internal

Physical presentation Storage, security, & encryption

Page 17: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 17

Database Schemas

The over all design of the database is called database schema.

The user’s view of database is called subschema or external schema.

The process of designing the database using the models based on user’s view is called conceptual schema.

The physical implementation of database is called internal schema.

Page 18: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 18

DATABASE MANAGEMENT SYSTEM (DBMS) FACILITIES

SECURITY SYSTEM INTEGRITY SYSTEM BACKUP & RECOVERY SYSTEM QUERY LANGUAGES CATALOG MANAGEMENT APPLICATION GENERATOR

Page 19: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 19

SYSTEM CATALOG

Data DictionaryIt is a data about data. It contains complete information about the database such as whatare the tables, data items, constraints, grants,users, etc.

Common Eg : File Manager in windows

Page 20: DBMS1 Database Management System (DBMS) Introductory Concepts Week-1

DBMS 20

HISTORY OF DBMS - Database Models

• FIRST GENERATION– HIERARCHICAL MODEL

• INFORMATION MANAGEMENT SYSTEM (IMS)

– NETWORK MODEL

• CONFERENCE ON DATA SYSTEM LANGUAGES (CODASYL)

• DATA BASE TASK GROUP (DBTG)

• SECOND GENERATION– RELATIONAL MODEL

• DB2, ORACLE

• THIRD GENERATION– OBJECT-RELATIONAL DATA MODEL

– OBJECTED-ORIENTED DATA MODEL