DMS (22319) - Chapter 5 Notes
DMS (22319) - Chapter 5 Notes
Element integrity
◦ integrity of specific database elements is their correctness or accuracy
◦ field checks
– allow only acceptable values
◦ access controls
– allow only authorized users to update elements
◦ change log
– used to undo changes made in error
◦ referential Integrity (key integrity concerns)
◦ two phase locking process
Database Management System (DMS) Mr. S. Y. Divekar
Data Security Requirements:
Auditability
◦ log read/write to database
User Authentication
◦ may be separate from OS
◦ can be rigorous
Availability
◦ concurrent users
◦ granularity of locking
◦ reliability
Grant succeeded.
Suppose T has been executed till Read (Y) and then T’’ starts. As a
result , interleaving of operations takes place due to
which T’’ reads correct value of X but incorrect value of Y and
sum computed by
T’’: (X+Y = 50, 000+500=50, 500)
is thus not consistent with the sum at end of transaction:
T: (X+Y = 50, 000 + 450 = 50, 450).
This results in database inconsistency, due to a loss of 50 units.
Hence, transactions must take place in isolation and changes
should be visible only after they have been made to the main
memory.
Database Management System (DMS) Mr. S. Y. Divekar
Durability :
After successful completion of a transaction, the changes in the
database should persist. Even in the case of system failures.
Partially Committed –
After completion of all the read and write operation the changes
are made in main memory or local buffer. If the changes are
made permanent on the Data Base then state will change to
“committed state” and in case of failure it will go to “failed state”.
Aborted State –
After having any type of failure the transaction goes from “failed
state” to “aborted state” and in before states the changes are
only made to local buffer or main memory and hence these
changes are deleted or rollback.
Terminated State –
If there is any roll back or the transaction come from “committed
state” then the system is consistent and ready for new transaction
and the old transaction is terminated.