Transaction processing systems 1 Characteristics of transaction processing

  • Slides: 55
Download presentation
Transaction processing systems 1

Transaction processing systems 1

Characteristics of transaction processing systems Batch transaction processing Real-time transaction processing Data validation Historical

Characteristics of transaction processing systems Batch transaction processing Real-time transaction processing Data validation Historical significance of transaction processing systems o Manual transaction systems o o 2

Characteristics of transaction processing systems o Transaction: event generating or modifying stored data in

Characteristics of transaction processing systems o Transaction: event generating or modifying stored data in an info sys. o Batch transaction processing collects transaction data as a group/batch o processed later (time delay) o Real-time transaction processing: immediate data processing o Data Validation: used to check entry of transaction data o Historical significance of transaction processing systems: UNIVAC o Manual transaction systems: business systems that operate without the use of machines. 3

TPS Characteristics o They collect, store, modify and retrieve the transaction of an organisation.

TPS Characteristics o They collect, store, modify and retrieve the transaction of an organisation. o Directly support business operations o Must be designed in conjunction w/ the organisation’s procedures. o Main information processes: collecting and storage. 4

4 important characteristics o Rapid response (fast performance, rapid response time) o Reliability (low

4 important characteristics o Rapid response (fast performance, rapid response time) o Reliability (low failure rate, quick and accurate recovery, backup and recovery procedures) o Inflexibility (every transaction processed in same way regardless of conditions) o Controlled processing (supports an organisation’s operations) 5

Examples of batch transaction processing o Clearance of cheques o Other forms of paper

Examples of batch transaction processing o Clearance of cheques o Other forms of paper output 6

Large batch o Mainframe PC and magnetic tape o Payroll or stock info o

Large batch o Mainframe PC and magnetic tape o Payroll or stock info o Employee: hours worked, overtime earned o Payroll master file updated o Pay slips created (ALL employees) o Often run at night – less demand for info sys 7

3 disadvantages in batch processing o Processing schedule predetermined o Errors unable to be

3 disadvantages in batch processing o Processing schedule predetermined o Errors unable to be corrected during processing o Sorting transaction data – expensive and time consuming 8

2 concerns w/ real-time transaction processing o Concurrency: data cannot be changed by 2

2 concerns w/ real-time transaction processing o Concurrency: data cannot be changed by 2 users at same time o Atomicity: steps completed succesfully as a group. If any step fails, no other step should be completed. 9

Transaction processing monitor o Software (middleware) allowing running of TP programs. o Manages sequence

Transaction processing monitor o Software (middleware) allowing running of TP programs. o Manages sequence of events o Provides interface between input devices and DBMS o Provides data security, ensuring transactions don’t get lost/corrupted. 10

Differences btween real-time and batch o Real time: each transaction is unique; transactions are

Differences btween real-time and batch o Real time: each transaction is unique; transactions are stand-alone; requires master file to be available more often for updating; fewer errors – transaction data is validated and entered immediately; infrequent errors may occur – but often tolerated; not practical to shut down whole system (infrequent errors); more computer operators are required in real-time processing – operations not centralised. o Batch: each transaction part of a group; database not accesible all of the time; more errors; data is organised and stored before master file is updated – errors can occur during these steps; easier to maintain than realtime. 11

Data validation o Used to check the entry of transaction data. o Procedures ensure

Data validation o Used to check the entry of transaction data. o Procedures ensure transactions are correct and have been accurately stored in the database. o Involves transaction initiation and field checking. 12

Historical significance and manual transaction systems o Historical significance: UNIVAC 1950’s o Manual transaction

Historical significance and manual transaction systems o Historical significance: UNIVAC 1950’s o Manual transaction systems: business systems operating w/o use of machines. 13

Components of a transaction processing system q Users: take data and use it in

Components of a transaction processing system q Users: take data and use it in another info system type q Participants: conduct info processing q People (from the environment): directly enter transactions and perform validation 14

Examples of real-time transaction processing o Reservation systems: set aside service/product for future use

Examples of real-time transaction processing o Reservation systems: set aside service/product for future use o Motels o Point-of-sale (POS) terminals: sells goods/services o Library loan systems: keeps track of items borrowed from library 15

System flowchart for a POS system Customer receipt UPC/quantity Server Inventory database MIS POS

System flowchart for a POS system Customer receipt UPC/quantity Server Inventory database MIS POS system UPC/quantity UPC Price Purchase database Inventory report Product Database 16

Examples of batch transaction processing o Cheque clearance: written order asking bank to pay

Examples of batch transaction processing o Cheque clearance: written order asking bank to pay money to a person o Bill generation: an invoice for goods/services supplied to a customer. o Credit card sales transaction: takes impression of customer’s card 17

Databases and files o Database: collection of data o Types: hierarchical, network, relational o

Databases and files o Database: collection of data o Types: hierarchical, network, relational o Important features for design: good data placement, short transactions, real-time backup, high normalisation, archiving of historical data and good hardware configuration 18

File: block of data o Master file: info about business organisation o Transaction file:

File: block of data o Master file: info about business organisation o Transaction file: collection of transaction records o Report file: data formatted for presentation o Work file: temporary file in the system used during processing o Program file: instructions for processing of data 19

Data warehousing o Data warehouse: collects info from different data sources o Consolidated, subject-oriented,

Data warehousing o Data warehouse: collects info from different data sources o Consolidated, subject-oriented, historical and read-only 20

Backup procedures o Backup: another copy of data o Recovery processes include backup, journal,

Backup procedures o Backup: another copy of data o Recovery processes include backup, journal, checkpoint and recovery manager 21

2 types of recovery o Backward recovery: back out or undo unwanted changes o

2 types of recovery o Backward recovery: back out or undo unwanted changes o Forward recovery: redo changes 22

Recovery processes continued o Magnetic tape: stores large data quantities inexpensively. Uses sequential access

Recovery processes continued o Magnetic tape: stores large data quantities inexpensively. Uses sequential access o Grandfather-son: backup procedure refers to at least 3 generations of backup master files o Partial backups: parts of master file backed up 23

Updating in a batch o Originally feasible: details were stored on punch cards or

Updating in a batch o Originally feasible: details were stored on punch cards or magnetic tape o 2 stages – collecting and processing of transaction data into file & updating master file o Sequential access: data accessed in a sequence. Time consuming. o Information technology: magnetic tape 24

Updating in real time o Direct/random access: data is accessed without accessing previous data

Updating in real time o Direct/random access: data is accessed without accessing previous data items. Stores data based on an algorithm, which calculates data location. When index used, called indexed access. o Information technology: magnetic disk o Software – online and user-friendly o Rapid response time – few seconds or less 25

Other information processes o Collecting: generating transaction data o Analysing data: meet user’s information

Other information processes o Collecting: generating transaction data o Analysing data: meet user’s information needs. Output from TPS is input to other systems 26

Hardware o MICR (Magnetic ink character recognition): used by banks to read account numbers

Hardware o MICR (Magnetic ink character recognition): used by banks to read account numbers on cheques o ATM (Automatic teller machine): banking terminal performing deposits and withdrawals o Barcode readers: used in retail to collect product information 27

Forms o Document used to collect data from a person o Examples include sign-on

Forms o Document used to collect data from a person o Examples include sign-on sheet for payroll. o On-screen forms: populates fields in a database o Web forms: used to purchase items over the internet 28

Decision support systems o Assist people to make decisions by providing information, models and

Decision support systems o Assist people to make decisions by providing information, models and analysis tools o Data mining: used in DSSs to find relationships and patterns in the data 29

Management information systems o Provides information for the manager o Different types of reports

Management information systems o Provides information for the manager o Different types of reports include scheduled reports, forecasting reports, on-demand reports and exception reports 30

Key issues in designing an MIS or DSS o How a system will be

Key issues in designing an MIS or DSS o How a system will be modeled o How model of system will be handled by the computer o What data will be used o How far into the future trends will be extrapolated 31

Issues related to transaction processing systems o o o Nature of work Non-computer procedures

Issues related to transaction processing systems o o o Nature of work Non-computer procedures Bias Importance of data Control in transaction processing 32

Nature of work o Automation of jobs: the use of information technology to perform

Nature of work o Automation of jobs: the use of information technology to perform tasks once performed by people o People as participants: resulted in fewer jobs in banks. People are purchasing products by completing a web form. 33

Non-computer procedures o Organisations rely on TPS o Manual backup procedure if system crashes

Non-computer procedures o Organisations rely on TPS o Manual backup procedure if system crashes o When system up & running, user needs procedure to enter manual transactions 34

Bias o Data unfairly skewed or gives too much weight on particular result o

Bias o Data unfairly skewed or gives too much weight on particular result o Data gathered can be presented in biased way using tables and charts o Becomes ethical issue when relevant information is misrepresented 35

Importance of data o Data security: involves series of safeguards to protect data o

Importance of data o Data security: involves series of safeguards to protect data o Encryption: coding data o Decryption: changing it back o Firewalls: used on networks to verify and authenticate all incoming data 36

Importance of data continued o Accuracy: extent data is free from errors. Errors caused

Importance of data continued o Accuracy: extent data is free from errors. Errors caused by mistakes in gathering data, data entry, mismatch of data and person, or out-of-date information o Data validation: checks data entry. Checks for missing data, too high or too low data values, data values inconsistent with other data, data in wrong format. o Carried out using range checks, list checks, type checks and check digits (see Chapter 2) 37

Data integrity o Describes reliability of data. o Involves accuracy, currency and relevance of

Data integrity o Describes reliability of data. o Involves accuracy, currency and relevance of data 38

ACID test o Atomicity: all steps involved in transaction completed successfully as a group

ACID test o Atomicity: all steps involved in transaction completed successfully as a group o Consistency: transaction successfully transforms the system and database from one valid state to another o Isolation: transaction is processed concurrently with other transactions. As if only transaction executing the system o Durability: all changes transaction makes to database become permanent 39

Control in transaction processing o Starts with collecting, includes manner TPS manipulates data &

Control in transaction processing o Starts with collecting, includes manner TPS manipulates data & way errors are corrected o Some people in management positions are willing to falsify transactions to promote careers 40

Aspects of TPS relevant to “A large retail company” o o o o o

Aspects of TPS relevant to “A large retail company” o o o o o Real-time transaction processing Manual transaction systems Components of a TPS Credit card sales transactions Database and files Updating in a batch, real-time Other information processes: collecting Nature of work Non-computer procedures Bias 41

Real-time transaction processing o It is important in an organisation such as a “large

Real-time transaction processing o It is important in an organisation such as a “large retail company” for the immediate processing of data & instant confirmation of a transaction (specifically needed in a retail environment where servicing a number of customers with a limited staff under a limited amount of time is usual). The 4 important characteristics of a TPS stresses this. They are rapid response, reliability, inflexibility and controlled processing. Also, the concerns of concurrency and atomicity are important in ensuring data is not mishandled or any procedures/steps taken are completed successfully as a group or not executed at all. 42

Manual transaction systems o Manual transaction systems are imperative in the retail environment because

Manual transaction systems o Manual transaction systems are imperative in the retail environment because they were the conceptual basis for real-time TPS. They were used long before the rise in technology allowed for easier data collection and storage. Obviously, they have been around since trading and business took its early strides. In smaller stalls who still cannot afford the technology corporations use, it is necessary to use manual transaction systems to record business activities. Manual transaction systems are based on a clear set of rules followed by a person. They make it easier to transmit the data into a format suitable for recording onto an information technology e. g. a computer. Of course, computerisation of a manual T. S. brings benefits, when used by a large retail organisation. It increases the rate at which products are sold, which means more profit for the retail chain. The less time taken for a customer to purchase a product is invaluable in customer satisfaction, as there are lesser queues – therefore lesser time spent on waiting. Also manual T. S. s provides the retail chain with information in what products are on demand. The retail chain capitalises on this information on consumer habits and they can tailor their products to attract more customers, thereby meaning more profit. 43

Components of a TPS o People are obviously important in an operation of a

Components of a TPS o People are obviously important in an operation of a TPS. They are usually classified as users, participants and people in the environment. This classification allows for easier role recognition within the retail chain organisation. Users do not interact w/ the TPS but use the data provided. They provide information about the system that is useful to the large retail chain. The participants are the shop workers which do the actual work conducted in a retail chain store. They enter the data into the TPSs. And the peole from the environment are the consumers, or people who buy goods from the shop front. They become participants when they use EFTPOS terminals located within the retail store to purchase goods and ATMS within or outside of it. They become participants in the sense that they directly enter transactions and perform validations. 44

Examples of real-time transaction processing o Reservation systems basically involve setting aside a product

Examples of real-time transaction processing o Reservation systems basically involve setting aside a product or service for future purchase or use. They are common in the retail industry. Lay-by is a good example. This involves the delaying of a valued item for future purchase. A minor monetary deposit, usually a small percentage of the overall purchase price of the product is then used to secure the customer the right to purchase this product at a later time. 45

Examples of real-time transaction processing continued o POS terminals are used by retail stores

Examples of real-time transaction processing continued o POS terminals are used by retail stores to sell goods and services. In large retail organisations, POS terminals send inventory data to a central computer (sale made). We as users become participants when we use these machines to purchase items from the store. The data is converted for easier transmission. Relevant information and the price are displayed using barcode readers. 46

Examples of real-time transaction processing continued o Credit card sales transactions can be done

Examples of real-time transaction processing continued o Credit card sales transactions can be done over the internet, at POS terminals or taking an impression of customer’s credit card. Both the POS system and the multi-page credit slip system rely on batch processing. We use them as an alternative to money, to pay for retail store purchases. 47

Databases and files o In any large retail chain/organisation, the information processes often vary.

Databases and files o In any large retail chain/organisation, the information processes often vary. In the handling of data, the storage and retrieval of data must be spot on. Retail chains rely on this trait for the success of their business. 48

Databases and files o Good data placement: Database is designed to efficiently gain access

Databases and files o Good data placement: Database is designed to efficiently gain access to frequently used data & data patterns o Short transactions: transactions can be processed fast o Real-time backup: saving data during low usage or idle time 49

Databases and files continued o High normalisation: data redundancy is minimised to increase update

Databases and files continued o High normalisation: data redundancy is minimised to increase update speed. Also improves backup speed. o Archiving of historical data: old data stored in chronological order in separate databases. o Good hardware configuration: the setup must be able to handle a number of users and provide rapid response 50

Files o Master file: info about a retail chain’s business. This is where the

Files o Master file: info about a retail chain’s business. This is where the data is stored o Transaction file: audit trails and history for the retail chain o Report file: formatted user presentable data o Work file: temporary file o Program file: data processing instructions. 51

Backup procedures o Backups provide safety nets for data restoration in case of a

Backup procedures o Backups provide safety nets for data restoration in case of a system crash/malfunction. Without these, the retail chain will cease to make profits as a result of data loss. They are usually stored in a safe location. 52

Recovery process o When a TPS fails, data must be recovered immediately for restoration.

Recovery process o When a TPS fails, data must be recovered immediately for restoration. o Journal: keeps track of company records on a physical medium. o Checkpoint: are like signposts. Indicate where, when, what data was saved in a daily period. Syncs files and journals together for smoother transaction reviewing 53

Recovery process o Backward recovery: undo database changes o Forward recovery: redo database changes

Recovery process o Backward recovery: undo database changes o Forward recovery: redo database changes o Recovery manager: restores database to a previous condition 54

Magnetic tape o Often used. Inexpensive. Appropriate for storing large amounts of data. An

Magnetic tape o Often used. Inexpensive. Appropriate for storing large amounts of data. An alternative to hard disk drives. o Data is read from the beginning until the end. o Suitable for most transaction backups 55