0% found this document useful (0 votes)
80 views

Course 1 Module 02 Lesson 5

This document provides an overview of transaction processing in databases. It defines a transaction as a collection of database operations that are reliably processed as a single unit of work without losing data. It gives examples of airline and ATM transactions to illustrate how transactions ensure consistent updates despite multiple users or failures. The key aspects of transaction processing are reliable and efficient handling of transactions through concurrency control and recovery managers to provide transparent services to application developers.

Uploaded by

Rohit Adhikari
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Course 1 Module 02 Lesson 5

This document provides an overview of transaction processing in databases. It defines a transaction as a collection of database operations that are reliably processed as a single unit of work without losing data. It gives examples of airline and ATM transactions to illustrate how transactions ensure consistent updates despite multiple users or failures. The key aspects of transaction processing are reliable and efficient handling of transactions through concurrency control and recovery managers to provide transparent services to application developers.

Uploaded by

Rohit Adhikari
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Information Systems Program

Module 2
Introduction to Databases and DBMSs

Lesson 5: Transaction Processing Overview


Lesson Objectives
Provide an example of a transaction that you use
Briefly explain key characteristics of database
transactions
Explain the word transparency for transaction
processing services

Information Systems Program


Transaction Definition
Supports daily operations of an organization
Collection of database operations
Reliably and efficiently processed as one unit of
work
No lost data
Interference among multiple users
Failures

Information Systems Program


Airline Transaction Example
START TRANSACTION
Display greeting
Get reservation preferences from user
SELECT departure and return flight records
If reservation is acceptable then
UPDATE seats remaining of departure flight record
UPDATE seats remaining of return flight record
INSERT reservation record
Print ticket if requested
End If
On Error: ROLLBACK
COMMIT

Information Systems Program


ATM Transaction Example

START TRANSACTION
Display greeting
Get account number, pin, type, and amount
SELECT account number, type, and balance
If balance is sufficient then
UPDATE account by posting debit
UPDATE account by posting debit
INSERT history record
Display message and dispense cash
Print receipt if requested
End If
On Error: ROLLBACK
COMMIT
5

Information Systems Program


Transaction Processing
Reliable and efficient processing of transactions
Control simultaneous users
Recover from failures
Internal features for enterprise DBMSs
Concurrency control manager
Recovery manager
Transparent services for application developers

Information Systems Program


Summary
Supports daily operations
Evolution over 50 years
Key technology behind growth of electronic
commerce

Information Systems Program

You might also like