oracle 052考试时间,2018年oracle认证OCP考试052新题解析-191

191.

User A executes this command:

SQL> ALTER TABLE oe.trans MOVE TABLESPACE tbs2;

While this is executing, user B executes this command:

SQL> DELETE FROM oe.trans WHERE tr_type='SL';

Which statement is true regarding the DELETE command?

A) It fails because the table is locked in SHARE ROW EXCLUSIVE mode.  B) It fails because rows are locked in EXCLUSIVE mode.

C) It deletes the rows.

D) It fails because rows are locked in SHARE mode.

E) It fails because the table is locked in EXCLUSIVE mode.

答案E

解析:当对table进行move操作时,查询v$locked_objects视图可以发现,表上加了exclusive lock,这就意味着,table在进行move操作时,我们只能对它进行select的操作,update和delete操作不可以。反之,当一个session对table进行非SELECT的DML操作且尚未commit时,另一个session中是不能对这个table进行move操作的,否则oracle会返回这样的错误信息:ORA-00054:资源正忙,要求指定NOWAIT。

更多2018年oracle认证OCP考试071新题解析讨论请加入QQ群:479384490

更多2018年oracle认证OCP考试052新题解析讨论请加入QQ群:479384490

更多2018年oracle认证OCP考试053新题解析讨论请加入QQ群:479384490

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值