Delete oracle deadlock

# Inquiry after the statement is executed if the outcome so that the database deadlock
select p.spid, c.object_name, b.session_id, b.oracle_username , b.os_user_name from v $ process p, v $ session a, v $ locked_object b , the all_objects C
WHERE p.addr = a.paddr
and a.process = b.process
and c.object_id = b.object_id

# Fill below this value in the query according session_id out above results in sid
SELECT sid, serial #, username, osuser FROM v $ session where sid = '1706';


# Then the query information sid out above, the value sequentially input sid and serial #, and then execute the following statements
alter system kill session '1706,909';

Guess you like

Origin www.cnblogs.com/zaomu/p/12118921.html