Multiple
choices questions in DBMS, What is dirty read in database? What will go wrong if a transaction is allowed to read a data item that was written by an uncommitted transaction? Why dirty read is not a preferable one? Can we permit a
transaction that has used a data item written by another uncommitted
transaction to commit? What are the problems with dirty read?
DBMS MCQ - Dirty read by transactions
1. If a transaction is allowed to read a data item that was produced by an uncommitted transaction, what do we call this read?
a) Repeatable read
b) Phantom read
c) Dirty read
d) Conflict read
Answer: (c) Dirty read Reading the value of a data item that was produced by an uncommitted transaction is referred as dirty read problem. This will be avoided if we permit transactions to read the values that are produced by committed transactions. Possible problems with dirty read in database
How you may avoid dirty read?You can set the TRANSACTION ISOLATION LEVEL as READ COMMITTED. This specifies that the statements cannot read data that has been modified but not committed by other transaction. This prevents dirty reads. |
- Go to Multiple Choice Questions in DBMS home
- Go to Normalization - MCQs page
- Go to General Mixed Quiz in all topics of DBMS page
Go to Advanced DBMS Concepts page
No comments:
Post a Comment