On-Line Transaction Processing

Slides:



Advertisements
Similar presentations
Database Architectures and the Web
Advertisements

Crash Recovery John Ortiz. Lecture 22Crash Recovery2 Review: The ACID properties  Atomicity: All actions in the transaction happen, or none happens 
1 Chapter 3. Synchronization. STEMPusan National University STEM-PNU 2 Synchronization in Distributed Systems Synchronization in a single machine Same.
COS 461 Fall 1997 Transaction Processing u normal systems lose their state when they crash u many applications need better behavior u today’s topic: how.
Database Concepts Lec. 5. What Is a Database? Data are unprocessed raw facts that include text, number, images, audio, and video. Information is processed.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
Overview of Databases and Transaction Processing Chapter 1.
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.
Chapter 8 : Transaction Management. u Function and importance of transactions. u Properties of transactions. u Concurrency Control – Meaning of serializability.
The Architecture of Transaction Processing Systems
1 Recap Database: –collection of data central to some enterprise that is managed by a Database Management System –reflection of the current state of the.
Transaction Management WXES 2103 Database. Content What is transaction Transaction properties Transaction management with SQL Transaction log DBMS Transaction.
Databases and Database Management System. 2 Goals comprehensive introduction to –the design of databases –database transaction processing –the use of.
1 Introduction Introduction to database systems Database Management Systems (DBMS) Type of Databases Database Design Database Design Considerations.
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.
TRANSACTION PROCESSING SYSTEM Liew Woei Song Muhammad Hofiz Achoson.
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Managing Multi-User Databases AIMS 3710 R. Nakatsu.
Introduction. 
Transaction Processing System  Business Transactions are certain events that occur routinely in a business firm.  A transaction is a set of activities.
Chapter 1 Introduction to Databases Pearson Education ©
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
02/23/2005Yan Huang - CSCI5330 Database Implementation – Transaction Transaction I.
Distributed Computing Systems CSCI 4780/6780. Distributed System A distributed system is: A collection of independent computers that appears to its users.
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
Computer Science Lecture 13, page 1 CS677: Distributed OS Last Class: Canonical Problems Election algorithms –Bully algorithm –Ring algorithm Distributed.
Transactions. Transaction: Informal Definition A transaction is a piece of code that accesses a shared database such that each transaction accesses shared.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Transactions.
10 1 Chapter 10 - A Transaction Management Database Systems: Design, Implementation, and Management, Rob and Coronel.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 16 – Intro. to Transactions.
18 September 2008CIS 340 # 1 Last Covered (almost)(almost) Variety of middleware mechanisms Gain? Enable n-tier architectures while not necessarily using.
Introduction to Databases
Chapter 1 Database and Database Users
Introduction to DBMS Purpose of Database Systems View of Data
TRANSACTION PROCESSING SYSTEM (TPS)
Transaction processing systems
Transactions.
Managing Multi-User Databases
Database Architectures and the Web
Unit 1: INTRODUCTION Database system, Characteristics Database Users
Chapter 1: Introduction
TRANSACTION PROCESSING
Database Management System
Introduction to Databases
Database Architectures and the Web
ACID PROPERTIES.
CS122B: Projects in Databases and Web Applications Winter 2018
Ch 21: Transaction Processing
Overview of Databases and Transaction Processing
Database Processing: David M. Kroenke’s Chapter Nine: Part Two
Database System Architecture
Outline Introduction Background Distributed DBMS Architecture
Introduction to Database Management Systems
Transaction Processing Concepts
OPERATING SYSTEM OVERVIEW
Introduction of Week 13 Return assignment 11-1 and 3-1-5
Introduction to Databases
Lecture 20: Intro to Transactions & Logging II
Database and Database Management System (DBMS)
Chapter 1: Introduction
CPSC-608 Database Systems
Database Processing: David M. Kroenke’s Chapter Nine: Part Two
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 1: Introduction
Introduction to Databases
Concurrency Control.
CS122B: Projects in Databases and Web Applications Winter 2019
CS122B: Projects in Databases and Web Applications Spring 2018
Presentation transcript:

On-Line Transaction Processing

On-Line Transaction Processing On-Line Processing Immediate processing as the events occur Show the current state of the business Transaction Unit of computations having ACID properties ACID properties Atomicity Consistency Isolation Durability

TP (transaction processing) Systems TP systems typically involve Operating systems Database management systems Data communications Programming languages Application development TP systems A set of software modules that ease and automate application programming, execution, and administration for online TP applications Best TP systems require the least amount of code to be written for application development ! Transaction processing is a prerequisite for mastering the complexity of distributed, heterogeneous system (J.Gray)

Transaction Processing Services ( in addition to, but incooperation with a DB system ) Manage Heterogeneity Presentation Service Control Communication Context Management Terminal Management Program Management Load Balancing Start / Restart

User’s / Programmer’s Views of a TP System (1/2) Each transaction is an independent unit of work that executes once and produces permanent result Transaction : the execution of a program that Gets a request from a terminal Performs the request by accessing a database and executing application programs Returns a response to the terminal

User’s / Programmer’s Views of a TP System (2/2) A simple TP application consists of A form and menu definitions Input data validation Mapping of request types into application program names Application programs to execute requests User Shared data Transaction Application Program File Manager ( or DBMS ) Read,Write Read … Start-trans Commit-trans Abort-trans Write User

Implementer’s (system’s) View of a TP System (1/2) A collection of various modules and resources On-line : user waits for response (seconds, not days) The bleeding edge 100,000 terminals 1,000 disks 3,000 transactions per second

Implementer’s (system’s) View of a TP System (2/2) TP SUB SYSTEM User Application Program Start_trans, Commit_trans, Abort_trans … User Transaction Manager Shared data Access Method Undo, Redo Recovery Manager Read_log Write_log Log Scheduler (Lock Manager) File Manager ( or DBMS ) Write_log Commit Manager

OLTP Applications Communications Travel Finance Manufacturing Setting up and billing for telephone calls, electronic mail, etc Travel Reservations and billing for airlines, cars, hotels, etc Finance Banking, stock trading, ATM, POS (point of sale) Manufacturing Order entry, job and inventory planning and scheduling, accounting Processing Control Control of factories, warehouses, plants, etc

Characteristics of OLTP Applications Large number of simple and pre-defined transacrions Predictable input Huge terminal users concurrently Fast response Large shared databases

Terminal-User Requirements High Performance Measured in transactions per second 90% of transactions get 2 second response time ! High Availability Can always run transactions (no downtime) Atomicity A virtual sequential transaction processor Persistence Never loses results of transactions

OLTP Monitor Coordinates the flow of requests between terminals and application programs that perform transactions Helps transaction application development Administration and management of a TP system Why TP Monitor ? Performance Ease of use

General Features of a TP Monitor Transaction Execution Scheduling Load balancing Failure isolation and recovery System Administration Authentication and authorization Status monitoring Performance tuning Application Development Forms editor / compiler Client / Server development tools