nerdexam
Oracle

1Z0-052 · Question #100

User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL> SELECT ename FROM emp 2 WHERE job='CLERK' FOR UPDATE

Sign in or unlock 1Z0-052 to reveal the answer and full explanation for question #100. The question stem and answer options stay visible for context.

Managing Data and Concurrency

Question

User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command:

SQL> SELECT ename FROM emp 2 WHERE job='CLERK' FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance. Which three operations would wait when issued in SCOTT's second session? (Choose three.)

Options

  • ALOCK TABLE emp IN SHARE MODE;
  • BLOCK TABLE emp IN EXCLUSIVE MODE;
  • CUPDATE emp SET sal=sal*1.2 WHERE job='MANAGER'
  • DINSERT INTO emp(empno,ename) VALUES (1289,'Harry');
  • ESELECT ename FROM emp WHERE job='CLERK' FOR UPDATE OF empno;

Unlock 1Z0-052 to see the answer

You've previewed enough free 1Z0-052 questions. Unlock 1Z0-052 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SELECT FOR UPDATE#row locks#LOCK TABLE#lock modes
Full 1Z0-052 Practice