Which two statements are true regarding the session of SCOTT in this scenario?

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.)

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.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


mogukille

mogukille

B answer is wrong.

Oracle says:
“Oracle Database automatically detects deadlock situations and resolves them by rolling back one of the statements involved in the deadlock”

C and D are the right answers.