• No results found

Transaction Processing

N/A
N/A
Protected

Academic year: 2021

Share "Transaction Processing"

Copied!
25
0
0

Loading.... (view fulltext now)

Full text

(1)

Transaction Processing

Thomas Leich, Gunter Saake University of Magdeburg

Institute of Technical and Business Information Systems

(2)

Overview

1 Motivation

2 Transaction models

3 Transaction management

4 Advanced transaction models

5 Recovery and back-up

6 Distributed transactions

7 Replication

(3)

Required basic knowledge

Databases I:

Basic principles of database systems Tables, attributes, keys

(4)

Organization

Lecturer: Prof. Dr. Thomas Leich

Information (Timings, Room) & Slide copies can be found at

http://www.dbse.ovgu.de/Lehre/Lehrveranstaltungen/Transaction+Processing.html Lecture: Tuesday weekly Room: Online

Exercise:

I Exercise conductor: Gabriel Campero Durand I Exercise (voluntary):

F Zoom and video, Monday 07:00–09:00 (Begins: see Website)

Examination:

I Writen or oral exam (If less than 35 participants) I Requirement: Registration for exercise

For feedback and questions:

I Mail to Gabriel Campero Durand

(5)

Underlying Textbook I

Saake, G.; Sattler, K.; Heuer, A.:

Datenbanken:

Implementierungstechniken.

Edition 3, mitp, 2011 644 Pages, 39,95 e Chapters 8, 9, 10

(6)

Underlying Textbook II

Rahm, E.; Saake, G.; Sattler, K.

Verteiltes und Paralleles Datenmanagement.

Von verteilen Datenbanken zu Big Data und Cloud

Edition 1, Springer, 2015 379 Pages

Chapters 11–15

Available as download!

(7)

Literature

For Database Implementation

Härder, T.; Rahm, E.: Datenbanksysteme — Konzepte und Techniken der Implementierung. Springer, 2001

Garcia-Molina, H.; Ullman, J.; Widom, J.: Database System Implementation. Addison-Wesley, 1999.

Silberschatz, A.; Korth, H. F.; Sudarshan, S.: Database System Concepts. Wiley & Sons, 2001.

For Transaction Processing:

Sippu, S.; Soisalon-Soininen, E.: Transaction Processing —

Management of the Logical Database and its Underlying Physical Structure. Springer, 2014

Weikum, G.; Vossen, G.: Transactional Information Systems — Theory, Algorithms, and the Practice of Concurrency Control and Recovery . Morgan Kaufmann, 2001

Gray, J.; Reuter, A.: Transaction Processing — Concepts and Techniques . Elsevier, 1992

(8)

Introduction

1. Introduction

1 Roles of Transactions

2 Transactions in the Architecture of a DBMS

(9)

Introduction

1. Introduction

1 Roles of Transactions

(10)

Introduction Transactions in the Architecture of a DBMS

Background

(11)

Introduction Transactions in the Architecture of a DBMS

(12)

Introduction Transactions in the Architecture of a DBMS

Tenth-floore test

Can I grab a random machine and throw it out the tenth-floor window without adversely impacting users for more than 10 minutes? If the answer to this was "yes", then we knew we were doing things right.

(13)

Introduction Transactions in the Architecture of a DBMS

(14)

Introduction Transactions in the Architecture of a DBMS

Example

(15)

Introduction Transactions in the Architecture of a DBMS

(16)

Introduction Transactions in the Architecture of a DBMS

Example

(17)

Introduction Transactions in the Architecture of a DBMS

(18)

Introduction Transactions in the Architecture of a DBMS

Example

(19)

Introduction Transactions in the Architecture of a DBMS

(20)

Introduction Transactions in the Architecture of a DBMS

Example

(21)

Introduction Transactions in the Architecture of a DBMS

Nine capabilities of a DBMS by Codd

1 Integration 2 Operations 3 Catalog 4 Views 5 Consistency Control 6 Data Protection 7 Transactions 8 Synchronization 9 Recovery

(22)

Introduction Transactions in the Architecture of a DBMS

Transaction properties

A transaction is a sequence of operations (actions), which transfers a database from a consistent state into another eventually changed

consistent state, applying the ACID properties.

Aspects:

I Semantic integrity: Correct (consistent) database state after the

end of transactions

I run-time integrity: Avoid errors caused by simultaneous access of

several users to the same data

(23)

Introduction Transactions in the Architecture of a DBMS

ACID Properties

Atomicity:

Transactions are either completed, or not performed at all.

Consistency:

If the database is in a consistent state before a transaction starts, the database is also consistent after the transaction has ended.

Isolation:

A user who is working on the database should not notice any other user working on it.

Durability:

The result of a transaction must be permanently stored within the database, after the transaction is completed.

(24)

Introduction Transactions in the Architecture of a DBMS

Architecture of DBMS

Interface (DI) Device Interface (FI) File Interface (SBI) System Buffer Interface (IRI) Internal Record Interface (ROI) Record−Oriented Interface (SOI) Set−Oriented

Sorting, Concurrency Control

Data Dictionary, Currency Pointer,

Page Replace Strategy

System Buffer Management with Translation, Acces Path Selection, Access Control, Integrity Control

Record Manager, Access Path Management, Lock Management, Log/Recovery

External Storage Management

Access System

Storage System

Buffer Management

Operating System Data System

(25)

Introduction Transactions in the Architecture of a DBMS

Storage hierarchy

Magnetic Tapes Optical Disk Disk Memory Main Memory Tertiary Storage Secondary Storage Primary Storage Cache

References

Related documents

Purch Order Req (57) Driver must enter a Purchase Order number Purchase Max (49) Driver needs to call dispatch to have more money put on card Totals Incorrect (5) Wrong or

Given that the transaction processing is deterministic to the to- tal transaction ordering and that data are migrated alongside dis- tributed transactions, a transaction

Here, we present a case in which superficial temporal artery-to-middle cerebral artery anastomosis was performed in a patient with cerebral autosomal-dominant arteriopathy

Animal cell culture: The large-scale growth of mammalian cells for the production of protein products.. Mammalian cells are generally fragile, and fermentors designed for the growth

Future improvements in mortality and life expectancy can pose serious problems for funded pension plans and annuity providers. Pension plans and annuity providers promise to

On a bivariate level, firm performance was positively related to manufacturing and human resources fit, behavior and attitude, team activities , interaction facilitation, training

The ACC/AHA Guideline on the Treatment of Blood Cholesterol to Reduce Atherosclerotic Cardiovascular Risk in Adults is now stressing the importance of starting statins with at least

Her work appeared in the Journal of Business Research, Marketing Theory, Consumption, Markets & Culture, Journal of Public Policy and Marketing, Journal