- Transaction processing system
A Transaction Processing System To be considered a transaction processing system the computer must pass the ACID test.
From a technical perspective, a Transaction Processing System (or Transaction Processing Monitor) monitors transaction programs, a special kind of programs. The essence of a transaction program is that it manages data that must be left in a consistent state. E.g. if an electronic payment is made, the amount must be either both withdrawn from one account and added to the other, or none at all. In case of a failure preventing transaction completion, the partially executed transaction must be 'rolled back' by the TPS. While this type of integrity must be provided also for batch transaction processing, it is particularly important for online processing: if e.g. an airline seat reservation system is accessed by multiple operators, after an empty seat inquiry, the seat reservation data must be locked until the reservation is made, otherwise another user may get the impression a seat is still free while it is actually being booked at the time. Without proper transaction monitoring, double bookings may occur. Other transaction monitor functions include
deadlockdetection and resolution (deadlocks may be inevitable in certain cases of cross-dependence on data), and transaction logging (in 'journals') for 'forward recovery' in case of massive failures.
Transaction Processing is not limited to application programs. The 'journaled file system' provided with IBMs AIX Unix operating system employs similar techniques to maintain file system integrity, including a journal.
Types of Transaction Processing Systems
Contrasted with batch processing
Batch processingis not transaction processing. Batch processing involves processing several transactions at the same time, and the results of each transaction are not immediately available when the transaction is being entered.ref|HSCit has a time delay
Real-time and batch processing
There are a number of differences between real-time and batch processing. These are outlined below:
Each transaction in real-time processing is unique. It is not part of a group of transactions, even though those transactions are processed in the same manner. Transactions in real-time processing are stand-alone both in the entry to the system and also in the handling of output.
Real-time processing requires the master file to be available more often for updating and reference than batch processing. The database is not accessible all of the time for batch processing.
Real-time processing has fewer errors than batch processing, as transaction data is validated and entered immediately. With batch processing, the data is organised and stored before the master file is updated. Errors can occur during these steps.
Infrequent errors may occur in real-time processing; however, they are often tolerated. It is not practical to shut down the system for infrequent errors.
More computer operators are required in real-time processing, as the operations are not centralised. It is more difficult to maintain a real-time processing system than a batch processing system.
Features of Transaction Processing Systems
Fast performance with a rapid response time is critical. Businesses cannot afford to have customers waiting for a TPS to respond, the turnaround time from the input of the transaction to the production for the output must be a few seconds or less.
Many organizations rely heavily on their TPS; a breakdown will disrupt operations or even stop the business. For a TPS to be effective its failure rate must be very low. If a TPS does fail, then quick and accurate recovery must be possible. This makes well–designed
backupand recovery procedures essential.
A TPS wants every transaction to be processed in the same way regardless of the user, the customer or the time for day. If a TPS were flexible, there would be too many opportunities for non-standard operations, for example, a commercial
airlineneeds to consistently accept airline reservations from a range of travel agents, accepting different transactions data from different travel agents would be a problem.
The processing in a TPS must support an organization's operations. For example if an organization allocates roles and responsibilities to particular employees, then the TPS should enforce and maintain this requirement.
ACID Test Properties: First Definition
A transaction’s changes to the state are atomic: either all happen or none happen. These changes include database changes, messages, and actions on transducers.ref|Gray&ReuterTPOverview
Atomicity ensures that all of the steps involved in a transaction are completed successfully as a group. This means that if one step fails then no other steps after the failed step will be completed.
A transaction is a correct transformation of the state. The actions taken as a group do not violate any of the integrity constraints associated with the state. This requires that the transaction be a correct program!ref label|Gray&Reuter TP Overview|2|a
Even though transactions execute concurrently, it appears to each transaction T, that others executed either before T or after T, but not both.ref label|Gray&ReuterTPOverview|2|b
Once a transaction completes successfully (commits), its changes to the state survive failures.ref label|Gray&ReuterTPOverview|2|c
Ensures that two users cannot change the same data at the same time. That is, one user cannot change a piece of data before another user has finished with it. For example, if an airliine ticket agent starts to reserve the last seat on a flight, then another agent cannot tell another passenger that a seat is available.
toring and Retrieving
Storing and retrieving information from a TPS must be efficient and effective. The data are stored in warehouses or other databases, the system must be well designed for its backup and recovery procedures.
Databases and files
The storage and retrieval of data must be accurate as it is used many times throughout the day. A
databaseis a collection of data neatly organized, which stores the accounting and operational records in the database. Databases are always protective of their delicate data, so they usually have a restricted view of certain data. Databases are designed using hierarchical, network or relational structures; each structure is effective in its own sense.
* Hierarchical structure: organizes data in a series of levels, hence why it is called hierarchal. Its top to bottom like structure consists of nodes and branches; each child node has branches and is only linked to one higher level parent node.
* Network structure: Similar to hierarchical, network structures also organizes data using nodes and branches. But, unlike hierarchical, each child node can be linked to multiple, higher parent nodes.
* Relational structure: Unlike network and hierarchical, a relational database organizes its data in a series of related tables. This gives flexibility as relationships between the tables are built.
The following features are included in real time transaction processing systems:
* Good Data Placement: The database should be designed to access patterns of data from many simultaneous users.
* Short transactions: Short transactions enables quick processing. This avoids concurrency and paces the systems.
* Real-time backup:
Backupshould be scheduled between low times of activity to prevent lag of the server.
normalization: This lowers redundant information to increase the speed and improve concurrency, this also improves backups.
* Archiving of historical data: Uncommonly used data are moved into other databases or backed up tables. This keeps tables small and also improves backup times.
* Good hardware configuration:
Hardwaremust be able to handle many users and provide quick response times.
In a TPS, there are 5 different types of files, the TPS uses the files to store and organize its transaction data:
* Master file: Contains information about an organization’s business situation. Most transactions and databases are stored in the master file.
* Transaction file: It is the collection of transaction records. It helps to update the master file and also serves as audit trails and transaction history.
* Report file: Contains data that has been formatted for presentation to a user.
* Work file: temporary files in the system used during the processing.
* Program file: Contains the instructions for the processing of data.
A data warehouse is a
databasethat collects information from different sources. When it's gathered in real-time transactions it can be used for analysis efficiently if it's stored in a data warehouse. It provides data that are "consolidated", "subject-orientated", "historical" and "read-only":
* Consolidated: Data are organised with consistent naming conventions, measurements, attributes and semantics. It allows data from a data warehouse from across the organization to be effectively used in a consistent manner.
* Subject-orientated: Large amounts of data are stored across an organization, some data could be irrelevant for reports and makes querying the data difficult. It organizes only key business information from operational sources so that it's available for analysis.
* Historical: Real-time TPS represent the current value at any time, an example could be stock levels. If past data are kept, querying the database could return a different response. It stores series of snapshots for an organisation's operational data generated over a period of time.
* Read-only: Once data are moved into a data warehouse, it becomes read-only, unless it was incorrect. Since it represents a snapshot of a certain time, it must never be updated. Only operations which occur in a data warehouse are loading and querying data.
Since business organizations have become very dependent on TPSs, a breakdown in their TPS may stop the business' regular routines and thus stopping its operation for a certain amount of time. In order to prevent data loss and minimize disruptions when a TPS breaks down a well-designed
backupand recovery procedure is put into use. The recovery process can rebuild the system when it goes down.
A TPS may fail for many reasons. These reasons could include a system failure, human errors,
hardwarefailure, incorrect or invalid data, computer viruses, softwareapplication errors or natural disasters. As it's not possible to prevent all TPS failures, a TPS must be able to cope with failures. The TPS must be able to detect and correct errors when they occur. A TPS will go through a recovery of the databaseto cope when the system fails, it involves the backup, journal, checkpoint, and recovery manager:
* Journal: A journal maintains an audit trail of transactions and database changes. Transaction logs and Database change logs are used, a transaction log records all the essential data for each transactions, including data values, time of transaction and terminal number. A database change log contains before and after copies of records that have been modified by transactions.
* Checkpoint: A checkpoint record contains necessary information to restart the system. These should be taken frequently, such as several times an hour. It is possible to resume processing from the most-recent checkpoint when a failure occurs with only a few minutes of processing work that needs to be repeated.
* Recovery Manager: A recovery manager is a program which restores the database to a correct condition which can restart the transaction processing.
Depending on how the system failed, there can be two different recovery procedures used. Generally, the procedures involves restoring data that has been collected from a backup device and then running the transaction processing again. Two types of recovery are "backward recovery" and "forward recovery":
* Backward recovery: used to
undounwanted changes to the database. It reverses the changes made by transactions which have been aborted. It involves the logic of reprocessing each transaction, which is very time-consuming.
* Forward recovery: it starts with a
backupcopy of the database. The transaction will then reprocess according to the transaction journal that occurred between the time the backup was made and the present time. It's much faster and more accurate.
Types of Back-up Procedures
There are two main types of Back-up Procedures: Grandfather-father-son and Partial backups:
This procedure refers to at least three generations of
backupmaster files. thus, the most recent backup is the son, the oldest backup is the grandfather. It's commonly used for a "batch transaction processing system" with a magnetic tape. If the system fails during a batch run, the master file is recreated by using the son backup and then restarting the batch. However if the son backup fails, is corrupted or destroyed, then the next generation up backup (father) is required. Likewise, if that fails, then the next generation up backup (grandfather) is required. Of course the older the generation, the more the data may be out of date. Organizations can have up to twenty generations of backup.^^
This only occurs when parts of the master file are backed up. The master file is usually backed up to
magnetic tapeat regular times, this could be daily, weekly or monthly. Completed transactions since the last backup are stored separately and are called journals, or journal files. The master file can be recreated from the journal files on the backup tape if the system is to fail.
Updating in a Batch
This is used when transactions are recorded on paper (such as bills and invoices) or when it's being stored on a
magnetic tape. Transactions will be collected and updated as a batch at when it's convenient or economical to process them. Historically, this was the most common method as the information technologydid not exist to allow real-time processing.
The two stages in batch processing are:
* Collecting and storage of the transaction data into a transaction file - this involves sorting the data into sequential order.
* Processing the data by updating the master file - which can be difficult, this may involve data additions, updates and deletions that may require to happen in a certain order. If an error occurs, then the entire batch fails.
Updating in batch requires
sequential access- since it uses a magnetic tapethis is the only way to access data. A batch will start at the beginning of the tape, then reading it from the order it was stored; it's very time-consuming to locate specific transactions.
information technologyused includes a secondary storagemedium which can store large quantities of data inexpensively (thus the common choice of a magnetic tape). The softwareused to collect data does not have to be online - it doesn't even need a user interface.
Updating in Real-Time
This is the immediate processing of data. It provides instant confirmation of a transaction. This involves a large amount of users who are simultaneously performing transactions to change data. Because of advances in technology (such as the increase in the speed of
data transmissionand larger bandwidth), real-time updating is now possible.
Steps in a real-time update involve the sending of a transaction data to an online database in a master file. The person providing information is usually able to help with error correction and receives confirmation of the transaction completion.
Updating in real-time uses
direct accessof data. This occurs when data are accessed without accessing previous data items. The storage device stores data in a particular location based on a mathematical procedure. This will then be calculated to find an approximate location of the data. If data are not found at this location, it will search through successive locations until it's found.
information technologyused could be a secondary storagemedium that can store large amounts of data and provide quick access (thus the common choice of a magnetic disk). It requires a user-friendly interface as it's important for rapid response time.
Reversation Systems Reversation systems are used for any type of buisness where a service or a product is set aside for a customer to use for a future time.
#note label|HSC|1|a [http://hsc.csu.edu.au/ipt/trans_systems/4-1/what_is_tps.htm NSW HSC Online]
#note label|Gray&ReuterTPOverview|2|anote label|Gray&ReuterTPOverview|2|bnote label|Gray&ReuterTPOverview|2|c [http://188.8.131.52/search?q=cache:fK7dQdEJB7AJ:research.microsoft.com/~gray/WICS_99_TP/01_WhirlwindTour.ppt+%22ACID+Properties:+First+Definition%22&hl=en&gl=ca&ct=clnk&cd=1 WICS TP Chapter 1]
Online transaction processing
Customer Integrated System
Wikimedia Foundation. 2010.
См. также в других словарях:
Transaction processing — For other uses, see Transaction (disambiguation). In computer science, transaction processing is information processing that is divided into individual, indivisible operations, called transactions. Each transaction must succeed or fail as a… … Wikipedia
transaction processing — ➔ processing * * * transaction processing UK US noun [U] ► IT the use of a computer system to organize transactions (= actions that change information) in a database ► COMMERCE the system used by a company to deal with its sales: »The Service… … Financial and business terms
Transaction Processing over XML — (TPoX) is a computing benchmark for XML database systems. As a benchmark, TPoX is used for the performance testing of database management systems that are capable of storing, searching and retrieving XML data. The goal of TPoX is to allow… … Wikipedia
Transaction Processing Facility — (TPF) ist ein Echtzeitbetriebssystem für die IBM Großrechner der System/360 und der System z Familien. TPF wurde aus dem Airline Control Program (ACP) von IBM und mehreren nordamerikanischen und europäischen Fluggesellschaften entwickelt. 1979… … Deutsch Wikipedia
Transaction Processing Facility — Infobox OS name = z/TPF caption = developer = IBM source model = Closed source (Source code is available to licenced users with restrictions) kernel type = Real time supported platforms = ? ui = ? family = z/TPF released = latest release version … Wikipedia
Transaction Processing Management System — This article refers to the computer software. Please see TPMS for other uses TPMS or Transaction Processing Management System is online transaction processing superstructure software from ICL (now Fujitsu Services) that runs on their VME… … Wikipedia
transaction processing — A processing method in which transactions are executed immediately when they are received by the system, rather than at some later time as in batch processing systems. Airline reservation databases and automatic teller machines are examples of … Dictionary of networking
Transaction Processing Performance Council — Das Transaction Processing Performance Council, kurz TPC, ist ein 1988 gegründetes Non Profit Konsortium aus verschiedenen in der IT Branche tätigen Unternehmen, das mithilfe standardisierter Benchmarks Angaben über die Leistungsfähigkeit von… … Deutsch Wikipedia
Transaction processing facility — Pour les articles homonymes, voir TPF. Transaction processing facility (TPF Dispositif de traitement de transactions) est un système d exploitation développé par IBM pour sa famille de serveurs mainframes S/360 et S/390. TPF est une évolution d… … Wikipédia en Français
Online transaction processing — Online transaction processing, or OLTP, refers to a class of systems that facilitate and manage transaction oriented applications, typically for data entry and retrieval transaction processing. The term is somewhat ambiguous; some understand a… … Wikipedia