Chapter 20 - Transaction processing Flashcards
What are 3 examples of automated methods?
» Smart card readers
» Barcode readers
» Scanners
What are 2 examples of manual methods of data capture?
» Forms
» Questionnaires
What are 3 ways in which data can be transferred into a database?
» DMBS software
» Typing it into a customised form
» Using EDI
What does EDI stand for?
» Electronic Data interchange
What is EDI?
» Is the computer to computer exchange of documents such as purchase orders, invoices and shipping orders
What is the main requirement of using EDI, and how does it help the environment?
» Must be in standard format so that the computer can understand it
» It replaces post, email or fax, therefore saving paper
How can you select data?
» Using SQL
What is a single logical operation?
» Defined as a transaction
What is Transaction processing?
» Any information processing that is divided into individual, indivisible operations called transactions
What is the base functionality of all relational databse?
» Referred to using the acronym CRUD
» Create - Insert/create
» Read - Select
» Update - Update
» Delete - Delete
What does DBMS stand for?
» Database mangement systems
» Provides a layer for the user and the programmer
What does ACID stand for, and what is the purpose?
» Atomicity, Consistency, isolation, Durability
» Set of properties to ensure data integrity is maintained as well as transactions are processed reliably
What is Atomicity?
» Ensures that a transaction is processed in its entirety or not at all
» Half- completed change must not be saved back to the database
What is Consistency?
» Ensures that no transactions can violate any of the defined validation rules
» Referential integrity, will always be upheld - Meaning any change in the databse must retain the overall state of the database
What is isolation?
» Ensures that concurrent execution of transactions leads to the same result as if transactions were processed one after the other
» Transactions must not be interrupted by another transaction
What is durability?
» Ensures once a transaction has been committed, it will remain so, even in the event of system failure
» DBMS writes the effects of the transactions into secondary storage rather than RAM
» Held in buffer until all elements are compelted
» Only then will the changes to the database tables be made
What is the purpose of record locking?
» Prevents simultaneous access to objects in a database in order to prevent updates being lost or inconsistencies in the data arising
What is one problem with record locking?
» A dealock can arise where if 2 users are attempting to update 2 records
What is Serialisation?
» Ensures that transactions do not overlap in time and therefore cannot interfere with each other or lead to updates being lost
What are the 2 techinques of serialisation?
» Timestamp ordering
» Commitment ordering
How does timestamp ordering work?
» If 2 transactions affect the same object, the transaction with the earlier timestamp should be applied first
Explain how timestamp ordering works?
» Every object in the database has a read and write timestamp, which is updated whenever an object is read or written
» When the user tries to save an update, if the read timestamp is not the same as it was when they started the transaction, the DMBS knows another user has accessed the same object?
What is commitment ordering?
» Another serialisation technique to ensure that no transactions are lost if 2 clients are simultaneously trying to update a record
Explain how commitment ordering works?
» Transactions are ordered in terms of their dependencies on one another as well as the time they were initated
» Can be used to prevent deadlock by blocking one request until another is completed
What is the purpose of inbuilt redundancy?
» Protects transaction data from system faliure
» Duplicate hardware is located in different geographical areas, mirrors every transaction that takes place
» If this fails, the backup system automatically takes over
What is OCR?
» Optical character recognition
» Automatically reads text by interpreting the shape of the letters
What is OMR?
» Optical mark recognition
» Reduces human error, mostly used in the lottery industry
What is QBE?
» Query by example
» Graphical - making use of visual tables
» User doesn’t need to remember finer details