您的位置:首页 > 其它

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必须提交或回退,才能更正检测到的死锁错误.如果执行提交,则须重新提交第二 次更新才能完成事务处理.

如果执行回退,则须同时重新提交这两个语句才能完成事务处理
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: