Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

©Silberschatz, Korth and Sudarshan4.1Database System Concepts Lecture-1 Database system,CSE-313, P.B. Dr. M. A. Kashem Associate. Professor. CSE, DUET,
Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
Database Theory Why use database? Data is a valuable corporate resource which needs adequate accuracy, consistency and security controls. The centralized.
Introduction to Databases
Database Management System (DBMS)
Transaction Processing IS698 Min Song. 2 What is a Transaction?  When an event in the real world changes the state of the enterprise, a transaction is.
Ch1: File Systems and Databases Hachim Haddouti
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Introduction to Databases Transparencies
Chapter 1 INTRODUCTION TO DATABASE.
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
DATABASE M ANAGEMENT S YSTEMS Lecture 2. NEED OF DATABASE APPROACH  File Processing System was very Defective  Many Problems were Present  These Problems.
Transaction. A transaction is an event which occurs on the database. Generally a transaction reads a value from the database or writes a value to the.
Chapter 1 Introduction to Databases
Introduction to Databases
Introduction to Databases Transparencies 1. ©Pearson Education 2009 Objectives Common uses of database systems. Meaning of the term database. Meaning.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Chapter 1 1 © Prentice Hall, 2002 Database Design Dr. Bijoy Bordoloi Introduction to Database Processing.
Chapter 1 Database Systems. Good decisions require good information derived from raw facts Data is managed most efficiently when stored in a database.
DBS201: Introduction to Database Design
Introduction to Databases
Database Design - Lecture 1
Sistem Basis Data (DATABASE) Siauw Yohanes Darmawan
Transaction Processing System
Chapter 1 Introduction to Databases Pearson Education ©
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Introduction: Databases and Database Users
Chapter 1 In-lab Quiz Next week
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
- Ahmad Al-Ghoul Data design. 2 learning Objectives Explain data design concepts and data structures Explain data design concepts and data structures.
CS370 Spring 2007 CS 370 Database Systems Lecture 1 Overview of Database Systems.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
Text Book Database System Concepts- Silberschatz, Korth, Sudarshan, Fifth Edition, McGraw Hill.
DATABASE MANAGEMENT SYSTEM ARCHITECTURE
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.
1 TOPIC 6 DATABASE 6.1 Introduction to Database 6.2 Basic Concept of Database 6.3 Database Object DATABASE.
I MPLEMENTING FILES. Contiguous Allocation:  The simplest allocation scheme is to store each file as a contiguous run of disk blocks (a 50-KB file would.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
Chapter 1 © 2013 Pearson Education, Inc. Publishing as Prentice Hall Chapter 1: The Database Environment and Development Process Modern Database Management.
Introduction to Databases Dr. Osama AL Rababah. Objectives In this capture you will learn: Some common uses of database systems. The characteristics of.
Control of data redundancy Data consistency More information from the same amount of data Sharing of data Improved data integrity Improved security Enforcement.
Difference between DBMS and File System
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Lecture on Database Management System
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
SYSTEMS IMPLEMENTATION TECHNIQUES TRANSACTION PROCESSING DATABASE RECOVERY DATABASE SECURITY CONCURRENCY CONTROL.
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases Transparencies
Introduction To DBMS.
Chapter 1: Introduction
File Systems Vs Database Systems
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases
The Advantages of Database
Database Management Systems
Introduction to Database Management System
Introduction to Databases
Database System Architecture
Introduction to Databases
Introduction to Databases Transparencies
DBMS Module III DBMS
Terms: Data: Database: Database Management System: INTRODUCTION
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Presentation transcript:

Advantage of File-oriented system: it provides useful historical information about how data are managed earlier. File-oriented systems create many problems. Knowledge of these problems can help to prevent problems of managing database. Characteristics of file-oriented systems provide understanding complexities in designing a database. it provides useful knowledge for converting a file system to a database system.

Disadvantage of File-oriented System: 1.Data Redundancy: It is possible that the same information may be duplicated in different files. This leads to data redundancy. Data redundancy results in memory wastage. For example, consider that some customers have both kinds of accounts- saving and current. In this case, data about customers – name, address, , contact number – will be duplicated in both files, file for saving accounts and file for current accounts. This leads to requirements of higher storage space. In other words, same information will be stored in two different locations(files). And it wastes memory.

2. Data Inconsistency: Due to data redundancy, it is possible that data may not be in consistent state. For example, consider that an address of some customer changes. And, that customer has both kinds of accounts. Now it is possible that this changed address is updated in only one file, leaving address in other file as it is. As a result of this, same customer will have two different addresses in two different files, making data inconsistent.

3. Difficulty in Accessing Data: Accessing data is not convenient and efficient in file processing system. For example, suppose there is a program to find information about all customers. But, what if there is a need to find out all customers for some particular city. In this case, there are two choices here: One, find out all customers using available program and then extract the needed customers manually. Second, develop new program to get required information. Both options are not satisfactory. For each and every different kind of data access, separate programs are required. This is neither convenient nor efficient.

4. Limited Data Sharing: Data are scattered in various files. Also, different files may have different formats. And these files may be stored in different folders(dictionaries) may be of different computers of different departments. So, due to this data isolation, it is difficult to share data among different applications.

5. Integrity Problems: Data integrity means that the data contained in the database is both correct and consistent. For this, purpose, the data stored in database must satisfy certain types of constraints(rules). For example, a balance for any account must not be less than zero. Such constraints are enforced in the system by adding appropriate code in application programs. But, when new constraints are added, such as balance should not be less than Rs. 5000, application programs need to be changed. But it is not an easy task to change programs whenever required.

6. Atomicity Problems: Any operations on database must be atomic. This means, it must happen in its entirely or not at all. For example, a fund transfer from one account to another must happen in its entirely. But, computer systems are vulnerable to failure, such as system crash, virus attack. If a system failure occurs during the execution of fund transfer operation, it may possible that amount to be transferred, say Rs. 500, is debited from one account, but is not credited to another account. This leaves database in inconsistent state. But, it is difficult to ensure atomicity in a file processing system.

7. Concurrent Access Anomalies: Multiple users are allowed to access data simultaneously (concurrently). This is for sake of better performance and faster response. Consider an operation to debit (withdrawal) an account. The program reads the old balance, calculates the new balance, and writes new balance back to database. Suppose an account has a balance of Rs Now, a concurrent withdrawal of Rs and Rs may leave the balance the balance Rs or Rs depending upon their completion time rather than the correct value of Rs Here, concurrent data access should be allowed under some supervision. But, due to lack of co- ordination among different application programs, this is not possible in file processing system.

8. Security Problems: Database should be accessible to users in a limited way. Each user should be allowed to access data concerning his application only. For example, a customer can check balance only for his/her own account. He/She should not have access to information about other accounts. But, in file processing system, application programs are added in an ad hoc manner by different programmers. So, it is difficult to enforce such kind of security constraints.

Advantage of DBMS: 1.Minimal Data Redundancy: Data to centralized, it is possible to avoid unnecessary duplication of information. For example, all the information about bank customer can be kept centralized. Both accounts – Saving as well as Current – can share this information. This prevents unnecessary duplication of customer information who has both type of accounts. This leads to reduced data redundancy. Reduced data redundancy prevents memory wastage. Also, it eliminates extra processing time to get required data in a large database. Less processing time improves the performance of the system.

2. Improved Data Consistency: Data inconsistency occurs to data redundancy. For example, consider that customer information is maintained separately for saving accounts and current accounts. Now if the address of some customer changes which has both kinds of accounts, it is possible that his/her address is updated for one account, leaving the other one as it is. This leads to supply of wrong information and makes database inconsistent. With reduced data redundancy, such type of data inconsistency can be eliminated. This results in improved data consistency.

3. Efficient Data Access: DBMS utilizes a variety of techniques to retrieve data. Required data can be retrieved by providing appropriate query to the DBMS. For example, information about all customers or from some particular city can be retrieved easily by providing appropriate query statements. Thus, data can be accessed in convenient and efficient manner.

4. Improved Data Sharing: As database is maintained centrally, all authorized users and application programs can share this database easily.

5. Improved Data Integrity: Data integrity means that the data contained in the database is both correct and consistent. For this purpose, the data stored in database must satisfy certain types of constraints. For example, balance in an account should not be a negative value. DBMS software provides different ways to implement such type of constraints. Also, it ensures that the data stored in database follows such constraints on its own. Application programs need not to worry about this. This improves the data integrity in a database.

6. Guaranteed Atomicity: Any operation on database must be atomic. This means, it must happen in its entirely or not at all. For example, a fund transfer from one account to another must happen in its entirely. It is the responsibility of the DBMS software to ensure such kind of atomicity. If any operation fails due to some problem, such as system crash, then effects of the partially executed operation can be undone. Thus, in database systems, atomicity can be guaranteed.

7. Improved Concurrent Access: Multiple users are allowed to access data simultaneously (concurrently). This is for the sake of better performance and faster response. As database is maintained centrally, data can be shared easily among multiple users. Also, concurrent access to such data can be allowed under some supervision. This results in better performance of the system and faster response.

8. Improved Security: Database should be accessible to users in a limited way. Each user should be allowed to access data concerning hid application only. For example, a customer can check balance only for his/her own account. He/She should not have access to information about other accounts. DBMS software provides way to control the access to data for different users according to their requirements. Also, it is the responsi

Disadvantages of DBMS: DBMS provides a number of advantages over other database systems, such as file-oriented systems, as described in previous solution. In spite of this, DBMS contains some drawbacks. 1.High Cost: - High initial cost is required to implement database and application programs. - It incurs high initial cost behind DBMS software. Also, hardware need to be upgraded according to requirements of the DBMS software. - Conversion from older file-oriented system to database system is also costly in terms of money as well as time.

2. Specialized Manpower: -Database system requires specialized, skilled manpower to design & develop database and to provide database administration services. -Also, due to rapid changes in database technology, this manpower needs to be trained and retrained on regular basis. 3. Security Risks: -Database is kept centrally and can be used by multiple users remotely at the same time. - This requires to authorize access to data among users to prevent misuse of the confidential and important data.

4. Increased Complexity: -It is necessary to understand the requirements of the organization and different kinds of users to design and implement efficient database. -With increase in requirements and functionalities, complexity of the database increases. 5. Need of Explicit Backup and Recovery: -As entire database is maintained centrally, it is must to provide efficient backup and recovery facilities. Else, any kind of damage to this database can affect the operations of the entire system. Considering all these drawbacks, it becomes quite essential to decide whether to use database system or to use file-oriented system. It is desirable not to use database systems if – database is simple & well-defined, need not to change frequently and concurrent access among multiple users is not required.