C2090-733 Free Dumps Study Materials
Question 5: Table EMPLOYEE contains the following rows: EMPNO FIRSTNME LASTNAME
WORKDEPT
000010.CHRISTINE HAAS A00 000020 MICHAEL THOMPSON B01 000030 SALLY KWAN
C01 The
isolation level for Application 1 is set to CS and autocommit is disabled. The isolation level for
Application
2 is set to CS and the autocommit is enabled. The following statements are executed in
sequence:
Application 1:
DECLARE c1 CURSOR FOR SELECT * FROM employee ORDER BY empno OPEN C1
FETCH C1
FETCH C1 Application 2:
UPDATE employee SET lastname = 'MILLFORD' WHERE empno = '000020' Which of the
following
statements is correct?
A. The UPDATE succeeds because Application 2 runs with autocommit enabled so no row
level locks are
necessary for the update.
B. The UPDATE succeeds because Application 1 holds a row level lock that is compatible
with the lock
required by Application 2.
C. The UPDATE fails because Application 1 holds a row level read lock that is in conflict with
the lock
required by Application 2.C.
D. The UPDATE fails because the row level locks held by Application 1 have been escalated
to table lock
so updates by other connections are disallowed.
Correct Answer: B