Question

In: Computer Science

************************* A successful transaction contains this operation. update customer set balance = balance + 100; The...

*************************

A successful transaction contains this operation.

update customer set balance = balance + 100;

The above operation causes the following actions to take place.

a) Write data to database file

b) Read data from database file into database buffer

c) Write data to log buffer d) Write data to the rollback segment

e) Write data to log file

f) Update data in data buffer

Q. Assume a successful transaction is committed. After which point (from the actions above) will the DBMS have to honour the transaction even if a system or media failure occurs shortly afterwards.

Solutions

Expert Solution

f) update data in data buffer

The above given statement or query is to update the data that is already exists. Data buffer is a physical memory place in computer to store the data temporarily. And here it is said that the transaction is commited. That means a new transaction will take place only after a commited transaction will completes successfully. According to the given query, it's duty is to update the data in data buffer. So it completes it's updation in data buffer and after that the DBMS will have to honour the transaction even if a system or media failure occurs shortly afterwards.

Explaination:

A transaction is a unit of work that can be performed on a database. Transactions are units or sequence of work kept in a logical order. If a transaction is propagating one or more changes in the database, it is very important to control these transactions to ensure data intigrity and to handle database errors.

We can ensure the database security only by using the transaction control commands. Those are commit, save point and roll back. commit is a command that saves the entire transaction after that is completed and it will not allow any other transaction till the transaction which is on process is completed. And it will saves the transactions completely and then allows or honours the another transaction even if a system or media failure occurs.

                     Hope the above is helpful. Please feel free to comment if any queries in the

                                 comment section. I will try to solve them as soon as possible.

                                            Do an up vote. Thank you..


Related Solutions

DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table: Customer...
DBMS Create/Insert/Update SQL I need the create, insert, and update SQL statement for this table: Customer PK Customer ID Text Phone Number int name text address ID int email text FK vendor ID int Vendor is the name of the table the FK comes from.
8. A firm's target cash balance should be set as the smaller of (1) its transaction...
8. A firm's target cash balance should be set as the smaller of (1) its transaction balance plus a precautionary (safety stock) balance or (2) its required compensating balance. a. True b. False 9. Target cash balances are generally not affected by compensating balance requirements except during periods of high interest rates and tight money. a. True b. False 10. The primary purpose of compensating balances required of borrowers is to compensate the bank in the event the borrower defaults...
Wildly Successful Company The corporation has been wildly successful, in this, the third year of operation....
Wildly Successful Company The corporation has been wildly successful, in this, the third year of operation. While operating in the social media advertising arena can be risky, the corporation has been able through strategic alliances and timely hires, to stay ahead of the profit curve. While the stock price continues to escalate since IPO, some shareholders grow weary of no dividends. A dividend would allow the firm to finally be listed on the NYSE, opening more capital potential to the...
The data set below contains 100 records of heights and weights for some current and recent Major...
The data set below contains 100 records of heights and weights for some current and recent Major League Baseball (MLB) players. Note: BMI 18.5 - 24.9 normal group, 25 - 29.9 overweight group and > 30 obese group.  Use the data set to answer the following questions in order: 1.A researcher believes that there is a difference between the BMI of players in the National League vs American League. At a 5% level of significance, is there enough evidence to support the researcher’s claim....
The data set below contains 100 records of heights and weights for some current and recent Major...
The data set below contains 100 records of heights and weights for some current and recent Major League Baseball (MLB) players. Note: BMI 18.5 - 24.9 normal group, 25 - 29.9 overweight group and > 30 obese group.  Compute the body mass index (BMI) (703 times weight in pounds, divided by the square of the height in inches) of each major league baseball player height Weight(pounds) Age 70 195 25 74 180 23 74 215 35 72 210 31 72 210 35 73 188...
Question on Database Systems - Concurrency Control A popular update operation is increment/decrement the numeric value...
Question on Database Systems - Concurrency Control A popular update operation is increment/decrement the numeric value of data object by 1. Suppose we are now to create a lock mode I, along with usual shared and exclusive lock modes. Consider a locking protocol that will require a request for a lock with mode I on a data object Q (with numeric value) before proceeding with the increment/decrement operation on Q. (i) Provide a lock compatibility matrix with these three modes....
A pool of mortgages contains 3%, 15-year loans with the total beginning balance of $100 million....
A pool of mortgages contains 3%, 15-year loans with the total beginning balance of $100 million. The pool backs 116 principal-only (PO) shares and 99 interest-only (IO) shares. Monthly expenses and fees amount to 0.04% of the beginning-of-the-month balance (they are subtracted from the interest portion). In the first month, the total payments from the pool were $713.3 thousand. What was the cash flow per PO share (to the nearest dollar)? Assume no defaults.
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary....
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary. He needs to do physical exercises, to lose weight, to decrease stress and to eat better (but he does not do that). He has diabetes: 25 years ago, he was diagnosed with diabetes type 2 and he has to take insulin. Diet: He eats meat 3 times a day and does not eat dietary fiber. Emotional: He is stressed and anxious, and works hard....
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary....
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary. He needs to do physical exercises, to lose weight, to decrease stress and to eat better (but he does not do that). He has diabetes: 25 years ago, he was diagnosed with diabetes type 2 and he has to take insulin. Diet: He eats meat 3 times a day and does not eat dietary fiber. Emotional: He is stressed and anxious, and works hard....
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary....
The patient's history for update purposes Patient A age 70. He is obese and 100% sedentary. He needs to do physical exercises, to lose weight, to decrease stress and to eat better (but he does not do that). He has diabetes: 25 years ago, he was diagnosed with diabetes type 2 and he has to take insulin. Diet: He eats meat 3 times a day and does not eat dietary fiber. Emotional: He is stressed and anxious, and works hard....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT