Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assuming that pessimistic locking is being used but the two-phase locking protocol is not, create a chronological list of the locking unlocking and data manipulation

Assuming that pessimistic locking is being used but the two-phase locking protocol is not, create a chronological list of the locking unlocking and data manipulation activities that would occur during the complete processing of the transaction described in Problem 6a. What if two-phase locking is used? The transaction in 6a is:

BEGIN TRANSACTION

INSERT INTO INVOICE

VALUES(10983, '10010', '11-MAY-2014', 118.80, '30', 'OPEN);

INSERT INTO LINE VALUES(10983, 1, '11QER/31', 1, 110.00);

UPDATE PRODUCT

SET PQTYOH=PQTYOH-1 WHERE P_CODE=11QER/31;

UPDATE CUSTOMER

SET CUS_DATELSTPUR='11-MAY-2014',

CUS_BALANCE=CUS_BALANCE+118.80

WHERE CUS_CODE='10010';

COMMIT;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions