Highlighted text? Practice this concept. Highlighted passages and figures open related questions.
Practice related questions (7)Progress & bookmarks
Current section
1-3-3 Database Control Function
p. 256
Practice this section 7 linked exam questions with default filters
Progress
Not marked complete
Related questions in this lesson 10
Exclusive control preserves data integrity1Original rollback and rollforward definitions3Database recovery logs2Database confidentiality and per-user access rights2Database locking: deadlock and granularity2ACID transaction characteristics1p. 256
1-3-3 Database Control Function
Database control function is a function for improving reliability and security of the data recorded in the databases.
(1) Maintenance function
Maintenance function is a function for maintaining integrity of data (i.e., data integrity). The following double update is the typical example where integrity of data is lost. (As a result, inconsistency occurs.)
p. 257
p. 258
Other methods of exclusive control include semaphore system, which manages databases as resources by means of semaphore.
(2) Security protection function
Security protection function is a function for maintaining security of data (i.e., data security). Critical data and highly confidential data are stored in databases. Therefore, data security protection becomes necessary. The following security protection functions are provided by DBMS.
p. 259
(3) Failure recovery function
p. 260
The following are two types of recovery processes performed for failure recovery.
The recovery process is also performed for each transaction. In this case, transactions committed after a checkpoint are recovered to the status after completion of commit with rollforward. On the other hand, for the transactions that are running at the time the failure occurred, processes that are not committed are canceled (i.e., rolled back) and transactions are executed again after the database is reverted to the status before the process started. In the case of Figure 4-8, T1 and T2 committed after the checkpoint are recovered with rollforward from the checkpoint time. Meanwhile, T3, which was being updated at the time the
p. 261
failure occurred, is executed again when the database is reverted to the status before the process started with rollback from the checkpoint time.
The following two methods are available for restarting the database.
A repetitive update (i.e., addition or deletion) of the database may result in a wasteful storage area that is not reused, which may decrease the access efficiency. In such a case, reorganization that optimizes the database is also one of the failure recovery functions.
Section progress
Original chapter exercises
Original chapter exercises →New FE Textbook Vol.1 · IT Fundamentals · First Edition, April 2015
![Complete double-update example: both programs reference A=100. Program 1 updates to 60 after subtracting 40; Program 2 updates to 80 after subtracting 20 from its earlier value. Original dashed arrows, numbered sequence and the source explanation of the overwritten update are included. Source text: [Example of double update] 1) Program 1 references Data A (100) in the database. 2) Program 2 references Data A (100) in the database. 3) Data A is updated with the content (60) that is modified in Program 1. 4) Data A is updated with the content (80) that is modified in Program 2. → Updated content is overwritten, and update of Program 1 becomes invalid.](/private-assets/fe-v1/ch04/dbms-control/original-region-266-2-85f226271d63.webp)

![Complete exclusive-lock example: Program 1 locks A=100; Program 2 waits. Program 1 updates A to 60 and unlocks. Program 2 then reads 60, locks, updates to 40 and unlocks. All five original steps and their arrows remain together. Source text: [Example of exclusive control (lock system)] Program 1 Database Program 2 A (1) A 100 100 ↓ (2) (−40) 100 Note: ↓ (3) Wait for it to 60 60 be unlocked ↓ A (4) 60 60 ↓ (−20) (5) 40 40 1) Program 1 references Data A (100) in the database. → Apply exclusive lock to Data A. 2) Program 2 tries to reference Data A in the database. However, since Data A is locked, Program 2 waits for it to be unlocked. 3) Data A is updated with the content (60) that is modified in Program 1. → Release the lock of Data A. (Data A is unlocked.) 4) After the release of the lock is confirmed, Program 2 references Data A (60). → Apply exclusive lock to Data A. 5) Data A is updated with the content (40) that is modified in Program 2. →Release the lock of Data A. (Data A is unlocked.)](/private-assets/fe-v1/ch04/dbms-control/original-region-267-2-93623af93a24.webp)







![Original textbook table, example or syntax box, with its complete original layout. Source text: [Transaction management of database] Transaction processing with respect to the database is required to have ACID characteristics. • Atomicity: The process completes by commit or rollback. • Consistency: Contradiction (i.e., inconsistency of data) does not occur before and after the process. • Isolation: Multiple transactions do not mutually interfere. • Durability: Results after commit are continuously retained even after the process.](/private-assets/fe-v1/ch04/dbms-control/original-region-271-3-d23e43aee3ae.webp)