The following tables (Table 2 and Table 3) with the following values are stored in Oracle database. PROD CODE PROD_QOH 205 PART CODE PART_QOH АВС A 567 DEF 234 98 Table 2: PRODUCT 549 Table 3: PART (a) The following transaction in Figure 2 is executed: Transaction 1 UPDATE PRODUCT SET PROD_QOH = PROD_OQH+1 WHERE PROD_CODE='ABC'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART_CODE= 'A'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART_CODE= 'B'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART_CODE= 'C'; Figure 2: A Transaction in Oracle Database (i) Assume transaction logs are recorded when Transaction 1 is executed. State the steps for the database recovery according to the logs if a ROLLBACK command was issued at the end of the transaction. State and explain ONE property of transactions that is observed with the rollback action in (i) of this question. (ii)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
The following tables (Table 2 and Table 3) with the following values are stored in Oracle
database.
PROD CODE
PROD_QOH
PART CODE
PART_QOH
АВС
205
A
567
DEF
234
98
Table 2: PRODUCT
C
549
Table 3: PART
(a) The following transaction in Figure 2 is executed:
Transaction 1
UPDATE PRODUCT
SET PROD QOH = PROD_OQH+1
WHERE PROD CODE= 'ABC';
UPDATE PART
SET PART_QOH = PART_OQH - 1
WHERE PART CODE='A';
UPDATE PART
SET PART_QOH = PART_OQH - 1
WHERE PART_CODE= 'B';
UPDATE PART
SET PART_QOH = PART_OQH - 1
WHERE PART_CODE= 'C';
Figure 2: A Transaction in Oracle Database
(i)
Assume transaction logs are recorded when Transaction 1 is executed. State the steps
for the database recovery according to the logs if a ROLLBACK command was
issued at the end of the transaction.
(ii)
State and explain ONE property of transactions that is observed with the rollback
action in (i) of this question.
Transcribed Image Text:The following tables (Table 2 and Table 3) with the following values are stored in Oracle database. PROD CODE PROD_QOH PART CODE PART_QOH АВС 205 A 567 DEF 234 98 Table 2: PRODUCT C 549 Table 3: PART (a) The following transaction in Figure 2 is executed: Transaction 1 UPDATE PRODUCT SET PROD QOH = PROD_OQH+1 WHERE PROD CODE= 'ABC'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART CODE='A'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART_CODE= 'B'; UPDATE PART SET PART_QOH = PART_OQH - 1 WHERE PART_CODE= 'C'; Figure 2: A Transaction in Oracle Database (i) Assume transaction logs are recorded when Transaction 1 is executed. State the steps for the database recovery according to the logs if a ROLLBACK command was issued at the end of the transaction. (ii) State and explain ONE property of transactions that is observed with the rollback action in (i) of this question.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education