Subject Name : Database Management System
Subject Code: BCA-501 N
Subject Topic: Data Models
Dr. Mamta Tiwari
Assistant Professor
Department Of Computer Application
UIET,CSJM University, Kanpur
Database Management System
Introduction to DBMS
What is DBMS
• A database-management system (DBMS) is a
collection of interrelated data and a set of
programs to access those data.
• The collection of data, usually referred to as
the database.
• DBMS provides an environment that is both
convenient and efficient to use
Data base Applications
• Banking
• Airlines
• Sales
• Universities
• Human resources
Purpose of Database system
Before database management systems (DBMSs) came along, organizations
usually stored information in files processing systems.
Disadvantages of File processing system
1. Data redundancy and inconsistency same information may be
duplicated in several places (files). For example, the address and
telephone number of a particular customer may appear in a file that
consists of savings-account records and in a file that consists of checking-
account records.
2. Difficulty in accessing data
3. Data Isolation Because data are scattered in various files, and files may
be in different formats, writing new application programs to retrieve the
appropriate data is difficult.
4. Integrity problem integrity constraints (e.g. account balance > 0)
become part of program code
Hard to add new constraints or change existing ones
5. Atomicity updates A computer system, like any other
mechanical or electrical device, is subject to failure. In many applications,
it is crucial that, if a failure occurs, the data be restored to the consistent
state that existed prior to the failure.
6. Concurrent-access anomalies Concurrent accessed needed for
faster response, In file processing system , interaction of concurrent
updates may result in inconsistent data
7. Security problems. Not every user of the
database system should be able to access all
the data.
Database systems offer solutions to all the
above problems
Characteristics of Database Management
system
• A database management system stores data in such a way that it becomes easier
to retrieve, manipulate, and produce information.
• Characteristics
• Real world entity
• Relation-based table
• Isolation of data and application
• Less redundancy
• Consistency
• Query Language
• ACID Properties : Atomicity ,Consistency, Isolation and Durability
• Multiple View
• Multiuser and Concurrent Access
• Security
Advantages of DBMS
Controls database redundancy because it stores all the data in
one single database file and that recorded data is placed in
database.
Data Sharing
Easily Maintenance easily maintainable due to centralized nature
of the database system.
Reduce Time it reduce development time and maintenance time
Backup It provides backup and recovery sub system
Multiple User interface It provides different types of user
interfaces like graphical user interfaces , application program
interfaces.
Disadvantages of DBMS
Cost of Hardware and Software: It requires a high speed of data
processor and large memory size to run DBMS software.
• Size: It occupies a large space of disks and large memory to run them
efficiently.
• Complexity: Database system creates additional complexity and
requirements.
• Higher impact of failure: Failure is highly impacted the database
because in most of the organization, all the data stored in a single
database and if the database is damaged due to electric failure or
database corruption then the data may be lost forever.
Types of Database User
• Single User:
Support only one user at a time
• Desktop:
Single – user database running on a personal
computer
• Multi-user :
Supports multiple users at the same time
Workgroup:
Multiuser database that supports a small
group of users or a single department
Enterprise:
Multi-user database that supports a large
group of users or an entire organization
Databases are classified by location:
• Centralized:
Supports data located at a single site
• Distributed:
Supports data distributed across several
sites
Databases can be classified by use:
Transactional :
Supports a company day-to-day operations
Data warehouse:
Stores data used to generate information
required for decision making
Often used to store historical data
Structure is based on multidimensional Data
Model
Problems with file system
Every task requires extensive programming in a
third generation language(3GL)
Queries are not possible
Writing program to produce new reports takes
time
Modern databases use fourth-generation
language(4GL)
Allow users to specify what must be done
without specify how it is to be done
Programming is Time-consuming, high-level
activity
Making changes in existing file structure is
difficult
Data structure changes require modifications in
whole program
Security features hard to program
Thanking you

Database-Management-System - Topic Data Models

  • 1.
    Subject Name :Database Management System Subject Code: BCA-501 N Subject Topic: Data Models Dr. Mamta Tiwari Assistant Professor Department Of Computer Application UIET,CSJM University, Kanpur
  • 2.
  • 3.
    What is DBMS •A database-management system (DBMS) is a collection of interrelated data and a set of programs to access those data. • The collection of data, usually referred to as the database. • DBMS provides an environment that is both convenient and efficient to use
  • 4.
    Data base Applications •Banking • Airlines • Sales • Universities • Human resources
  • 5.
    Purpose of Databasesystem Before database management systems (DBMSs) came along, organizations usually stored information in files processing systems. Disadvantages of File processing system 1. Data redundancy and inconsistency same information may be duplicated in several places (files). For example, the address and telephone number of a particular customer may appear in a file that consists of savings-account records and in a file that consists of checking- account records. 2. Difficulty in accessing data 3. Data Isolation Because data are scattered in various files, and files may be in different formats, writing new application programs to retrieve the appropriate data is difficult.
  • 6.
    4. Integrity problemintegrity constraints (e.g. account balance > 0) become part of program code Hard to add new constraints or change existing ones 5. Atomicity updates A computer system, like any other mechanical or electrical device, is subject to failure. In many applications, it is crucial that, if a failure occurs, the data be restored to the consistent state that existed prior to the failure. 6. Concurrent-access anomalies Concurrent accessed needed for faster response, In file processing system , interaction of concurrent updates may result in inconsistent data
  • 7.
    7. Security problems.Not every user of the database system should be able to access all the data. Database systems offer solutions to all the above problems
  • 8.
    Characteristics of DatabaseManagement system • A database management system stores data in such a way that it becomes easier to retrieve, manipulate, and produce information. • Characteristics • Real world entity • Relation-based table • Isolation of data and application • Less redundancy • Consistency • Query Language • ACID Properties : Atomicity ,Consistency, Isolation and Durability • Multiple View • Multiuser and Concurrent Access • Security
  • 9.
    Advantages of DBMS Controlsdatabase redundancy because it stores all the data in one single database file and that recorded data is placed in database. Data Sharing Easily Maintenance easily maintainable due to centralized nature of the database system. Reduce Time it reduce development time and maintenance time Backup It provides backup and recovery sub system Multiple User interface It provides different types of user interfaces like graphical user interfaces , application program interfaces.
  • 10.
    Disadvantages of DBMS Costof Hardware and Software: It requires a high speed of data processor and large memory size to run DBMS software. • Size: It occupies a large space of disks and large memory to run them efficiently. • Complexity: Database system creates additional complexity and requirements. • Higher impact of failure: Failure is highly impacted the database because in most of the organization, all the data stored in a single database and if the database is damaged due to electric failure or database corruption then the data may be lost forever.
  • 11.
    Types of DatabaseUser • Single User: Support only one user at a time • Desktop: Single – user database running on a personal computer • Multi-user : Supports multiple users at the same time
  • 12.
    Workgroup: Multiuser database thatsupports a small group of users or a single department Enterprise: Multi-user database that supports a large group of users or an entire organization
  • 13.
    Databases are classifiedby location: • Centralized: Supports data located at a single site • Distributed: Supports data distributed across several sites
  • 14.
    Databases can beclassified by use: Transactional : Supports a company day-to-day operations Data warehouse: Stores data used to generate information required for decision making Often used to store historical data Structure is based on multidimensional Data Model
  • 15.
    Problems with filesystem Every task requires extensive programming in a third generation language(3GL) Queries are not possible Writing program to produce new reports takes time Modern databases use fourth-generation language(4GL) Allow users to specify what must be done without specify how it is to be done
  • 16.
    Programming is Time-consuming,high-level activity Making changes in existing file structure is difficult Data structure changes require modifications in whole program Security features hard to program
  • 17.