Signed up recently but had issues with the confirmation email?
Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.
Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.
Transaction processing, ACID (Atomicity, Consistency, Isolation, Durability), record locking and redundancy
1.3.2 Databases
Practise exam questionsDatabases — Note 6 of 6
Candidates should understand what is meant by transaction processing, and scenarios where transaction processing takes place. Candidates should understand the problems that arise from transaction processing, and how these can be overcome. Candidates should understand the ACID rules for transaction processing, and why databases should be built to these standards. Candidates should understand how record locking prevents the overriding of data, and understand how record locking takes place.
A transaction is a single logical operation on a database, which may involve several changes. When many users access a database at once, rules are needed to make sure transactions are processed reliably and data is not lost or corrupted.
A single logical operation on a database, such as transferring money between two accounts, which may involve several changes that must all succeed together.
A transaction is either completed in full or not at all. If any part fails, all changes are rolled back.
A transaction takes the database from one valid state to another, never breaking validation or integrity rules.
Transactions running at the same time do not affect each other; the result is the same as if they ran one after another.
Once a transaction is committed, its changes are saved permanently and survive a power failure or crash. This is achieved by writing committed changes to secondary (non-volatile) storage, not just keeping them in RAM or cache.
A record being edited by one user is locked so other users cannot change it at the same time, preventing lost updates. Only the records in use are locked, not the whole database. Drawbacks: other users are delayed while they wait, and deadlock can occur.
Two transactions each wait for a record locked by the other, so neither can continue. The DBMS must detect this and abort one.
Keeping duplicate copies of data or hardware (e.g. mirrored disks, backup servers) so the system can continue working if one part fails.
Past exam questions
Ready to test yourself?
Practise 1.3.2 questions