Functions of a Database - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

Functions of a Database

Description:

Discuss the following nine functions, or services, that should be ... Access to DOS, Windows, Linus, and other operating system services from within the DBMS. ... – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 22
Provided by: tinaas4
Category:

less

Transcript and Presenter's Notes

Title: Functions of a Database


1
Chapter 7
  • Functions of a Database
  • Management System

Database Management
2
Objectives
  • Discuss the following nine functions, or
    services, that should be provided by a DBMS, and
    the manner in which these services are typically
    provided
  • data storage, retrieval, and update
  • a user-accessible catalog
  • shared update support
  • backup and recovery services

3
Objectives
  • security services
  • integrity services
  • data independence support
  • replication support and
  • utility services.

4
Data, Storage, Retrieval, and Update
  • Provides users with the ability to store,
    retrieve, and update the data that are in the
    database.
  • Defines the fundamental capability of a DBMS.

5
Catalog
  • Contains descriptions of database components and
    are accessible to users.
  • Provides crucial information for those who are in
    charge of a database, or for those who write
    programs to access the database.

6
Shared Update
  • Ensures accuracy when several users are updating
    the database at the same time.

7
Figure 7.1 Ryan Updates the Database
8
Figure 7.2 Elena Updates the Database
9
Figure 7.3 Inconsistent Data
10
Avoiding the Problem
  • Prohibit shared update.
  • Use batch processing
  • Lock other users from accessing records that are
    being updated by another.

11
Figure 7.4 Using a Locking Scheme
12
Figure 7.4 Using a Locking Scheme
13
Avoiding the Problem
  • Two-Phase Locking
  • Locks are held until all the required updates
    have been completed.
  • Deadlock
  • Occurs when two users hold more than one lock at
    a time.
  • Locking on PC-Based DBMSs
  • Usually much more limited than locking facilities
    provided by mainframe DBMSs.

14
Avoiding the Problem
  • Timestamping
  • The DBMS assigns to each database update the
    unique time when the update started, called a
    timestamp.
  • Avoids the need to lock rows and eliminates the
    processing time needed to apply and release
    locks also detects and resolves deadlocks.

15
Backup and Recovery
  • Provides a mechanism for recovering the database
    in the event that the database is damaged in any
    way.
  • The process of returning the database to a
    correct state is called recovery.
  • Periodically making a copy of the database is
    called backup.

16
Security
  • The protection of the database against
    unauthorized access.
  • Passwords
  • Encryption
  • Views

17
Integrity
  • Integrity constraints, or conditions, fall into
    four categories
  • Data type
  • Legal values
  • Format
  • Key constraints

18
Figure 7.5 Integrity Constraints in a DBMS
19
Data Independence
  • Facilities that allow programs to be independent
    of the structure of the database.
  • Addition of a field
  • Changing the length of a field
  • Creating a new index
  • Adding or changing a relationship

20
Figure 7.6Replication
  • A way to manage copies of the same data at
    multiple locations.

21
Utilities
  • Assist in the general maintenance of the
    database.
  • Permit changes to be made in the database
    structure.
  • Permit the addition of new indexes and the
    deletion of ones no longer needed.
  • Access to DOS, Windows, Linus, and other
    operating system services from within the DBMS.
Write a Comment
User Comments (0)
About PowerShow.com