ITPub博客

首页 > 数据库 > Oracle > Oracle 11G OCP 1Z0-052 142

Oracle 11G OCP 1Z0-052 142

原创 Oracle 作者:LuiseDalian 时间:2014-07-22 19:47:13 0 删除 编辑
(142)The user SCOTT owns the CUST table that is placed in the SALES tablespace. The user SCOTT opens a session and executes commands as follows:

SQL> INSERT INTO cust VALUES(101, 'JACK');

1 row created.

SQL> INSERT INTO cust VALUES(102, 'SMITH');

1  row created.

As a DBA, you execute the following command from another session: ALTER TABLESPACE sales READ ONLY;

Which statement is true regarding the effect of this command on the transaction in Scott's session?

A. The command fails as a transaction is still pending.

B. The transaction in Scott's session is rolled back and the tablespace becomes read-only.

C. The command waits and the user SCOTT can execute data manipulation language (DML) statements only as part of the current transaction.

D. The command hangs until all transactions on the objects in the tablespace commit or rollback, and then the tablespace is placed in read-only mode.

答案:(D)

解析:

《Administrator's Guide》 14.6.1

实验证明,ALTER TABLESPACE语句被挂起,直到DML操作所在的会话提交事务.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1224809/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6043174