Each transaction has to terminate. The outcome of the termination depends on the success or fail-
ure of the transaction. Once a transaction starts execution, it may terminate in one of the following
possible ways:
The transaction aborts if a failure occurred during its execution.
The transaction commits if it was completed successfully.
A transaction may abort due to a variety of reasons. When a transaction is aborted, to maintain
the consistency of the data its execution is stopped, and the already executed actions are undone by
returning the database to the prior state that existed before the start of the execution. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.