Transactions Flashcards
A __________ is a sequence of operations on database objects
transaction
All operation in a transaction formed together is a single ________ _____
logical unit
What are 5 states in the life-cycle of a transaction?
- Active
- Partially committed
- Failed
- Committed
- Aborted
An active transaction is in ______ execution state
normal
A partially committed transaction just had its _____ statement executed
last
A failed transaction cannot _______
proceed
An aborted transaction _____ _____ the database
rolls back
A committed transaction _______ and its changes are ________
succeeded, permanent
What is a schedule?
a sequence S of operations from a set of transactions
where the order of operations of each Ti is the same as in S
When is a schedule serial?
All operations of each transaction are executed before or after all operations of another
Concurrent execution _________ different transaction operations
interleaves
Concurrent execution increases ________ and reduces ______ _____
throughput, response time
What does ACID stand for?
Atomicity (all or nothing)
Consistency (DB good after transaction)
Isolation
Durability (changes persist)
The only important operation in scheduling are _____ and ____
read, write
When are two operation conflicting?
They refer to the same data item and one or more of them is a write