【第53题】【062题库】2019年OCP认证062考试新题

53题、choose two

The HR user executes the following query on the EMPLOYEES table but does not issue COMMIT, ROLLBACK, or any data definition language (DDL) command after that:

SQL> SELECT job

FROM employees

WHERE job=‘CLERK‘ FOR UPDATE OF empno;

HR then opens a second session.

Which two operations wait when executed in HR‘S second session?

A) SELECT job FROM employees WHERE job=‘CLERK‘ FOR UPDATE OF empno;

B) INSERT INTO employees(empno,ename,job) VALUES (2001,‘Harry‘,‘CLERK‘);

C) SELECT empno,ename FROM employees WHERE job=‘CLERK‘;

D) INSERT INTO employees(empno,ename) VALUES (1289,‘Dick‘);

E) LOCK TABLE employees IN EXCLUSIVE MODE;

Answer:AE

(解析:因为查询中用到了for update of,那么被查询到的行会被加锁,所以A答案会造成等待,E答案因为要锁整个表,所以也要发生等待。来自3组:1015267481)

原文地址:https://www.cnblogs.com/cnblogs5359/p/11096403.html

时间: 2024-07-30 19:54:44

【第53题】【062题库】2019年OCP认证062考试新题的相关文章

【第46题】【062题库】2019年OCP认证062考试新题

46题.choose two Examine this command: SQL> ALTER SYSTEM SET ENABLE_DDL_LOGGING=TRUE; Which two statements are true? A) All DDL statements are logged in to a text file in Automatic Diagnostic Repository (ADR) home. B) The Alert Log still contains some

【第60题】【062题库】2019年OCP认证062考试新题

60题.choose one When does a database checkpoint occur? A) When there is an online redo log switch. B) When the SHUTDOWN ABORT command is issued. C) When a user session terminates abnormally. D) When a server process terminates abnorthally. Answer:A (解

【Oracle 12c】CUUG OCP认证071考试原题解析(30)

30.choose the best answer Examine the commands used to create DEPARTMENT_DETAILS and COURSE_DETAILS: SQL> CREATE TABLE DEPARTMENT_DETAILS (DEPARTMENT_ID NUMBER PRIMARY KEY, DEPARTMENT_NAME VARCHAR2(50) , HOD VARCHAR2(50)); SQL> CREATE TABLE COURSE_D

【Oracle 12c】CUUG OCP认证071考试原题解析(32)

32.choose the best answer View the Exhibit and examine the data in EMP and DEPT tables. In the DEPT table, DEPTNO is the PRIMARY KEY. In the EMP table, EMPNO is the PRIMARY KEY and DEPTNO is the FOREIGN KEY referencing the DEPTNO column in the DEPT t

【12c OCP】CUUG OCP认证071考试原题解析(34)

34.choose two View the Exhibit and examine the structure of the PRODUCT_INFORMATION and INVENTORIES tables. You have a requirement from the supplies department to give a list containing PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HAND for all the produc

【12c OCP】CUUG OCP认证071考试原题解析(33)

33.choose the best answer View the Exhibit and examine the structure of the ORDER_ITEMS table. Examine the following SQL statement: SELECT order_id, product_id, unit_price FROM order_items WHERE unit_price = (SELECT MAX(unit_price) FROM order items G

【Oracle 12c】CUUG OCP认证071考试原题解析(35)

35.choose the best answer View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement: SELECT first_name, employee_id, NEXT_DAY(ADD_MONTHS(hire_date,6),1) "Review" FROM employees; The query was writt

【12c OCP】CUUG OCP认证071考试原题解析(36)

36.choose the best answer View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS tables. You issue the following query: SQL>SELECT p.prod_id,prod_name,prod_list_price, quantity_sold,cust_last_name FROM products p NATURAL J

【第39题】2019年OCP认证12C题库062考试最新考试原题

39题.choose two You configured the Fast Recovery Area (FRA) for your database. The database instance is in ARCHIVELOG mode. The default location for the archived redo log files is the FRA. Which two files are removed automatically if space is required