The session of user SCOTT receives the following error after executing an UPDATE command on the EMP
2016-01-21 15:52
645 查看
The session of user SCOTT receives the following error after executing an UPDATE command on the EMP table: ERROR at line 1: ORA-00060: deadlock detected while waiting for resource On investigation, you find that a session opened by user JIM has a transaction
that caused the deadlock. Which two statements are true regarding the session of SCOTT in this scenario? (Choose two.)
A. The session is terminated after receiving the error and JIM can continue with his transaction.
B. SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction.
C. The session is rolled back after receiving the error and JIM can continue with his transaction.
D. SCOTT has to reexecute the last command in the transaction after he commits the transaction.
Correct Answer: BD
A:错误,收到死锁报错,scott用户的会话不会终止
B:正确,一个会话提交或回滚,另一个会话可以继续事务
C:错误,scott用户的会话不会自动rollback,需要人工处理
D:正确, scott必须提交或回退,才能更正检测到的死锁错误.如果执行提交,则须重新提交第二 次更新才能完成事务处理.
如果执行回退,则须同时重新提交这两个语句才能完成事务处理
that caused the deadlock. Which two statements are true regarding the session of SCOTT in this scenario? (Choose two.)
A. The session is terminated after receiving the error and JIM can continue with his transaction.
B. SCOTT should perform a COMMIT or ROLLBACK to allow JIM to continue with his transaction.
C. The session is rolled back after receiving the error and JIM can continue with his transaction.
D. SCOTT has to reexecute the last command in the transaction after he commits the transaction.
Correct Answer: BD
A:错误,收到死锁报错,scott用户的会话不会终止
B:正确,一个会话提交或回滚,另一个会话可以继续事务
C:错误,scott用户的会话不会自动rollback,需要人工处理
D:正确, scott必须提交或回退,才能更正检测到的死锁错误.如果执行提交,则须重新提交第二 次更新才能完成事务处理.
如果执行回退,则须同时重新提交这两个语句才能完成事务处理
相关文章推荐
- 数据库系统原理学习资源
- hive修改 表/分区语句
- 31.Android之常用单位px、dip、sp学习
- 旋转数组的最小数字
- Android 5.0无法使用HttpClient
- Exchange DAG故障转移失败
- HTML5 — 让拖放变的流行起来
- 数据与内存结构
- CentOS6.6设置静态ip 设置主机名
- cocos2dx+lua编译Android项目
- 浅说搜索引擎和SEO
- 如何准确高效的获取数据库新插入数据的主键id
- .Net_把文件数据添加到数据库中(面试题)
- Android的三种网络通信方式
- android之屏幕适配之一理论知识
- 排序篇_简单桶排序
- visio2013每次打开都进行设置 解决办法
- JavaSE-反射机制
- java对象和json数据转换实现方式3-使用jackson实现
- 外循环内循环