Docsity

Databasemagament System - Inroduction Part 2, Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download Databasemagament System - Inroduction Part 2 and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

1

Database Database

Management System Management System

2

“ “ We are pouring inWe are pouring in

data data but starving inbut starving in

Knowledge Knowledge ””

Jiawei Han Jiawei Han

Our Approach…. Our Approach….

 (^) Conceptual understanding & then Implementation...Conceptual understanding & then Implementation...

 (^) Case Study & Modeling discussions

 Through Class Assignments, Group presentationsThrough Class Assignments, Group presentations

 (^) Practical on SQL, PL/SQL on Oracle

 (^) Database Designing: Concepts & Tests.

 (^) Recent Trends in DBMS

 (^) Reference Material:Reference Material:

 (^) Database system concepts by Abraham Silberschatz ;Database system concepts by Abraham Silberschatz ; Henry F. Korth ; S. Sudarshan (Mc Graw Hill) Henry F. Korth ; S. Sudarshan (Mc Graw Hill)

 (^) Fundamentals of Database Systems by Elmasri, Ramez;Fundamentals of Database Systems by Elmasri, Ramez; Navathe, Shamkant B. Navathe, Shamkant B.

 (^) Book on SQL / Oracle : Complete ReferenceBook on SQL / Oracle : Complete Reference

4

Data, Data, Information & KnowledgeInformation & Knowledge

 (^) Computer processing requires data,data, which is a collection of rawcollection of raw

facts facts, figures and symbols, such as numbers, words, images, video and sound, given to the computer during the input phase.

 (^) Computer processes the data to create InformationInformation which is

data that is organized, meaningful, and useful.

 (^) During the output Phase, the information that has been created

is put into some form, such as a printed report.

 (^) A DBMS processes the data & provide information.

 (^) Knowledge is not simply the information presented, but is

information furtherfurther processedprocessed withwith intelligentintelligent mechanismmechanism incorporating experience, domain knowledge and specialized techniques.

 (^) To generate (business) insight / strategy based on the

Knowledge acquired from IT based systems. KDD ( KnowledgeKnowledge Discovery in Database) is an significant concept related to data mining and business intelligence.

7

Database Management System (DBMS) Database Management System (DBMS)

 Data Base Collection of interrelated data

 DBMS is designed to manage large bodies of data, contains

information about a particular enterprise.

 DBMSDBMS Set of programs to access the data.

 DBMS provides an environment that is both convenient and

efficient to use.

 Database Applications:Database Applications:

 Banking: all transactions
 Airlines: reservations, schedules (first database in a geographical

distributed)

 Universities: registration, grades
 Sales: customers, products, purchases
 Manufacturing: production, inventory, orders, supply chain
 Human resources: employee records, salaries, tax deductions

 Databases touch all aspects of our lives.

8

Database Management system Database Management system

 Purpose of Database Systems: Developing Information

system

 View of Data

 Data Models

Data Definition Language

 (^) Data Manipulation Language

 Transaction Management

 Storage Management

 Database Administrator

 Database Users

 Overall System Structure

10

Information systems Information systems

 (^) Did we ever bother to see how this computerization of

railways reservation system would have first conceived, designed, developed and implemented.

 (^) Database designing is important step for developing such

a system ,

 (^) Same is true for developing a business information

system for a big corporate house like Hindustan Lever , Godrej, Reliance group of companies etc.

 (^) Database system has evolved a “systematic mechanism

for this aspect of developing information system and the very initial step is called “Modeling ”

Purpose of Database Systems Purpose of Database Systems

In the early days, database applications were built directly

on top of file systems with a program. language

 (^) Transaction Management is typical example which

highlights the significance of a DBMS.

 (^) In case of transferring funds from one bank A/C to othertransferring funds from one bank A/C to other

if System failure occurs!

 (^) This failure may occur at any stage & the system

failures (e.g., power failures, operating system crashes) will result not only as a transaction failure but may be in serious inconsistencies in database.

 (^) Money withdrawn from one Account ( andwithdrawn from one Account ( and network fails)network fails)

so not received in the Other A/C. !so

 (^) Also in concurrent transactions how to ensure the

consistency of the database.

 (^) And many other problems….

Purpose of Database Systems (Cont.) Purpose of Database Systems (Cont.)

 (^) Drawbacks of using file systems (cont.)

 Atomicity of updates

 (^) Failures may leave database in an inconsistent state with partial updates carried out  (^) Example: Transfer of funds from one account to another should either complete or not happen at all

 Concurrent access by multiple users

 (^) Concurrent accessed needed for performance  (^) Uncontrolled concurrent accesses can lead to inconsistencies

  • (^) Example: Two people reading a balance and updating it at the same time
 Security problems

 (^) Hard to provide user access to some, but not all, data

 (^) Database Management systems offer solutions to all the above problems

Developing an Information System Developing an Information System

 Developing the System:

 (^) Architecture of the Database

User Categories of Database

Software Tools for DBMS implementation

 Database Design : Requires understanding the given domain

Logical Design

 (^) Data Modeling: Types of ModelingData Modeling: Types of Modeling

Physical design

 Constructing the Model of given scenario:

Banking system.

Car Insurance Company database

14

Database Application Architectures Database Application Architectures

(web browser) (web browser)

Old Old ModernModern

17

Database Users Database Users

 (^) Users are differentiated by the way they expect to

interact with the system

 (^) Application programmers – interact with system through

DML calls

 (^) Sophisticated users –give requests in a database query

language

 (^) Specialized users – write specialized database

applications that do not fit into the traditional data processing framework

 (^) Naive users – invoke one of the permanent application

programs that have been written previously

 (^) E.g. people accessing database over the web, bank tellers, clerical staff

19

Data Base Management System Data Base Management System

Ordinary Users interact Ordinary Users interact with DBMS via Menu in FrontEnd with DBMS via Menu in FrontEnd Application like Application like VisualVisual BasicBasic..

Whereas Whereas Sophisticated UsersSophisticated Users & & Database administratorDatabase administrator

interacts with DBMS interacts with DBMS via via SQLSQL interface or directlyinterface or directly with with (^) Oracle / MS SQL Server / IBM DB2Oracle / MS SQL Server / IBM DB

Users Users

Front-endFront-end Database Database Application Application

DBMSDBMS

DatabaseDatabase

20

DBMS Project Team DBMS Project Team

D a t a S p e c i a l i s t s

    • M o d e l e r

    • A r c h i t e c t

D e v e l o p e r s

F R O N T E N D ( V B , V C + + , J A V A )

D B A s

B A C K E N D ( O r a c l e , S Q L - S e r v e r , D B - 2 )

P r o j e c t L e a d e r