Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13.

Slides:



Advertisements
Similar presentations
Functions of Database Management Systems Data storage retrieval and update facilities A user-accessible catalogue or data dictionary Support for shared.
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Monday, 08 June 2015Dr. Mohamed Osman1 What is Database Administration A high level function (technical Function) that is responsible for ► physical DB.
ETEC 100 Information Technology
1 7 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 7 DBMS Functions.
Database Integrity, Security and Recovery Database integrity Database integrity Database security Database security Database recovery Database recovery.
Transaction Management and Concurrency Control
1 Introduction to Database Management Systems Lila Rao Graham.
Database Management: Getting Data Together Chapter 14.
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
Introduction to Databases Transparencies
DBMS Functions Data, Storage, Retrieval, and Update
Chapter 1 INTRODUCTION TO DATABASE.
Chapter 8 Security Transparencies © Pearson Education Limited 1995, 2005.
Concepts of Database Management Seventh Edition
BUSINESS DRIVEN TECHNOLOGY
Functions of a Database Management System. Functions of a DBMS C.J. Date n Indexing n Views n Security n Integrity n Concurrency n Backup/Recovery n Design.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
DATABASE SECURITY By Oscar Suciadi CS 157B Prof. Sin-Min Lee.
Introduction to Databases and Database Languages
Chapter 3 Data Models.
© 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 CHAPTER 11: DATA AND DATABASE ADMINISTRATION Modern Database Management 11 th Edition Jeffrey.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Concepts of Database Management Sixth Edition
The University of Akron Dept of Business Technology Computer Information Systems DBMS Functions 2440: 180 Database Concepts Instructor: Enoch E. Damson.
Concepts of Database Management, Fifth Edition
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Introduction: Databases and Database Users
Introduction to Database Systems
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Chapter 11 CS Introduction to Database Systems.
Storing Organizational Information - Databases
Copyright © Curt Hill Database Function What should every database do?
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Module 2: Database Environment
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
1 Chapter 1 Introduction to Databases Transparencies.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Why do we need a database?
TM 13-1 Copyright © 1999 Addison Wesley Longman, Inc. Data and Database Administration.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Introduction to Databases Dr. Osama AL Rababah. Objectives In this capture you will learn: Some common uses of database systems. The characteristics of.
1 Chapter 2 Database Environment Pearson Education © 2009.
Difference between DBMS and File System
Chapter 3: Relational Databases
Lecture On Introduction (DBMS) By- Jesmin Akhter Assistant Professor, IIT, Jahangirnagar University.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
SYSTEMS IMPLEMENTATION TECHNIQUES TRANSACTION PROCESSING DATABASE RECOVERY DATABASE SECURITY CONCURRENCY CONTROL.
Copyright © 2016 Pearson Education, Inc. CHAPTER 12: DATA AND DATABASE ADMINISTRATION Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman,
TM 13-1 Copyright © 1999 Addison Wesley Longman, Inc. Data and Database Administration.
What is Database Administration ?
Introduction To DBMS.
Database Management.
Functions of a Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Database solutions Database environment Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology rooms: 3.21 C,
Introduction of Week 13 Return assignment 11-1 and 3-1-5
DATABASE SECURITY For CSCL (BIM).
Database (DB) and Database Management System (DBMS)
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13

Database Management System Database: A collection of related data. It should support –Definition –Construction –Manipulation Database Management System: A collection of programs that enable the users to create and maintain a database.

Features of DBMS 1.Data storage, retrieval, and update: The ability to store, retrieve, and update the data that are in the database. 2.User-accessible catalog: where descriptions of database components are stored and are accessible to the users 3.Shared update support: A mechanism to ensure accuracy when several users are updating the database at the same time 4.Backup and Recovery Services: Mechanisms for recovering the database in the event that a database is damaged somehow. 5.Security Services: Mechanisms to ensure that certain rules are followed with regard to data in the database and any changes that are made in the data

Features of DBMS 5.Integrity services: Mechanisms to ensure that certain rules are followed with regard to data in the database and any changes that are made in the data. 6.Data Independence: Facilities to support the independence of programs from the structure of the database. 7.Replication support: A facility to manage copies of the same data at multiple locations. 8.Utility Services: DBMS provided services that assist in the general maintenance of the database.

Shared Updates Multiple users are making updates to the database at the same time. Problem: –Multiple people updating the database simultaneously can override each other Example: –Agents T1 & T2 simultaneously read the seats reserved on Flight 890 i.e. 80 –T1 cancels 5 seats updating the seats reserved on Flight 890 to 75 –T2 reserves 4 additional seats on the flight and updates the seats reserved on Flight 890 to 84. –If T1 updates the database before T2. T2 will override T1’s change and make reservations to 84 rather than getting the correct value of 79. –Similarly if T2 updates before T1 the seats reserved will be 75

Shared Updates: Solution Batch Processing –Allow multiple users to retrieve data simultaneously –Updates are added to a batch file which does the appropriate processing –Does not work for real time situations Locking –Restrict access to the record being updated by a user till the transaction is complete.

Two Phase Lock Required when multiple records are updated as a result of a user action (e.g. filling form etc.) All the records accessed are locked progressively till the required updates are completed –Growing Phase: More and more locks are added without releasing locks –After all locks are placed the database is updated –Shrinking Phase: All locks are removed and no new ones are added

Deadlock When two transactions require a common set of records. Both of them are in growing phase and each locks some of the records None of the records are released and they wait for each other to release the locked records They will wait forever!!!

Breaking Deadlock Facilities Programs can lock entire tables or an individual row Programs can release any or all of the locks they currently hold Programs can inquire whether a given row or table is locked Rules If more than one row is required then the entire table must be locked Limit the amount of wait for a lock to be released beyond which a transaction is aborted A well designed transaction should lock all the rows and tables before starting the transaction Users should release locks as soon as possible to improve the efficiency of the database

Security Protection against unauthorized access: either intentional or accidental. Three main features for protection –Passwords: Allows only authorized users to access the database. Access privileges can be provided based on access needs –Encryption: Encodes data to non-decipherable. Data decoded on demand to prevent hackers from accessing data –Views: Different snapshot of the data ensures that users only get access to data they need

Integrity Integrity Constraints are the conditions that data must satisfy during initial input & updates. There are four categories of constraints –Data Type –Legal Values –Format –Key Constraints Entity Integrity Constraints (Primary Key) –Enforces the uniqueness of the primary key Referential Integrity Constraints (Foreign Key) –Value of foreign key must match the value of primary key for some row in another table

Integrity: Solutions Ignore constraint –Undesirable as it can lead to inconsistent data Let user enforce the constraint –Undesirable since user mistakes can be disastrous Let programmer build the logic of constraints in the programs –Makes programs complex: harder to write, harder to maintain, and expensive Place burden on the DBMS. –Preferred way: Cost of DBMS development amortized over large user base, hence economical

Replication Duplication of data at multiple physical locations Each replica of the data can be changed independently Periodically the replicas update their data to the master database – this process is called synchronization

Disaster Planning: Backup & Recovery Database can be damaged in a number of ways –Power outage, disk crashes, floods, user errors Periodic backups limit the loss due to sudden failures Data can be recovered from the latest backup and the changes since the backup need to be done in either of two ways –Manually –From a catalog (if exists) recording all updates to the database since the last backup.

Catalog/Data Dictionary Contains information describing the database –Schema for the database –Characteristic for each field –Possible values for each field –Description of the data –Relationships –Description of the programs Data Dictionary is same as catalog but may contain wider set of information than catalog