Docsity

what is transaction management in database, Lecture notes of Database Management Systems (DBMS)

Toggle sidebar
bg1
1. What is transaction management in database?
Transactions are a set of operations used to perform a logical set of work. A
transaction usually means that the data in the database has changed. One of the
major uses of DBMS is to protect the user’s data from system failures. It is done
by ensuring that all the data is restored to a consistent state when the computer
is restarted after a crash. The transaction is any one execution of the user
program in a DBMS. Executing the same program multiple times will generate
multiple transactions.
2. Define concurrency control.
Concurrency control is the process of managing simultaneous execution of
transactions (such as queries, updates, inserts, deletes and so on) in a
multiprocessing database system without having them interfere with one another.
If many transactions try to access the same data, then inconsistency arises.
Concurrency control required to maintain consistency data. For example, if we
take ATM machines and do not use concurrency, multiple persons cannot draw
money at a time in different places. This is where we need concurrency.
3. Identify the role of concurrency control in database maintenance.
Concurrency controls prevent data integrity problems, which can arise when two
update processes access the same data item at the same time. Access controls
restrict updating of the database to authorized users, and controls such as
passwords prevent the inadvertent or unauthorized disclosure of data from the
database.

Partial preview of the text

Download what is transaction management in database and more Lecture notes Database Management Systems (DBMS) in PDF only on Docsity!

1. What is transaction management in database? Transactions are a set of operations used to perform a logical set of work. A transaction usually means that the data in the database has changed. One of the major uses of DBMS is to protect the user’s data from system failures. It is done by ensuring that all the data is restored to a consistent state when the computer is restarted after a crash. The transaction is any one execution of the user program in a DBMS. Executing the same program multiple times will generate multiple transactions. 2. Define concurrency control. Concurrency control is the process of managing simultaneous execution of transactions (such as queries, updates, inserts, deletes and so on) in a multiprocessing database system without having them interfere with one another. If many transactions try to access the same data, then inconsistency arises. Concurrency control required to maintain consistency data. For example, if we take ATM machines and do not use concurrency, multiple persons cannot draw money at a time in different places. This is where we need concurrency.

  1. Identify the role of concurrency control in database maintenance. Concurrency controls prevent data integrity problems, which can arise when two update processes access the same data item at the same time. Access controls restrict updating of the database to authorized users, and controls such as passwords prevent the inadvertent or unauthorized disclosure of data from the database.