Sie sind auf Seite 1von 12

DBMS

UMA SANKAR KAVURI

Contents

What is DBMS ? History of DBMS ? Need of DBMS Over File System What Does a DBMS do ? Terminology Conclusion

A Brief History ?

Database Management System (DBMS)

It is a S/W package to manage (store/access) the collection of interrelated data. Database Applications:

Banking: all transactions Airlines: reservations, schedules Universities: registration, grades Sales: customers, products, purchases Manufacturing: production, inventory, orders, supply chain Human resources: employee records, salaries, tax deductions

Need Of DBMS Over File System


In the early days, database applications were built on top of file systems Drawbacks of using file systems to store data:

Data redundancy and inconsistency

Multiple file formats, duplication of information in different files


Need to write a new program to carry out each new task

Difficulty in accessing data

Data isolation multiple files and formats Integrity problems

Integrity constraints (e.g. account balance > 0) become part of program code Hard to add new constraints or change existing ones

Need Of DBMS Over File System

Drawbacks of using file systems (cont.)

Atomicity of updates

Failures may leave database in an inconsistent state with partial updates carried out E.g. transfer of funds from one account to another should either complete or not happen at all Concurrent accessed needed for performance Uncontrolled concurrent accesses can lead to inconsistencies

Concurrent access by multiple users


E.g. two people reading a balance and updating it at the same time

Security problems

Database systems offer solutions to all the above problems

What does a DBMS do ..?


Allow Concurency Control Security Maintain Data Integrity Provide Data Backup and Recovery Control Redundancy Allow Data Indepedence Provide Non-Procedural Query Language Perform automatic Query Optimization

Terminology

Integrity : Rules and Regulations of Data

Balance > 0 Marks < 100

Atomicity : Action has to either complete or not happen at all

Transfer of funds from one a/c to a/c should either complete or not happen at all

Schema : The logical structure of the database Instance : The actual content (like record) of the database at a particular point of time

Terminology (cont ..)

Data Independence : Ability to modify a schema with out changing another schema Physical DI:

Ability to modify physical schema with out changing logical schema Ability to modify logical schema with out changing external schema

Logical DI:

Metadata : Data about Data

Levels of Abstraction

Physical level: describes how a record (e.g., customer) is stored. Logical level: describes data stored in database, and the relationships among the data. type customer = record name : string; street : string; city : integer; end; View level: application programs hide details of data types. Views can also hide information (e.g., salary) for security purposes.

View of Data An architecture for a database system

Summary

Das könnte Ihnen auch gefallen