java程序操作数据库的时候,遇到死锁:java.sql.SQLException: ORA-00060: 等待资源时检测到死锁
解决步骤:
1.找到死锁的oralce对象(表):
select object_name,machine,s.sid,s.serial#
from v$locked_object l,dba_objects o ,v$session s
where l.object_id = o.object_id and l.session_id=s.sid and object_name ='死锁的表名'
2.杀进程:
alter system kill session 'xx,xxx';--'xx,xxx'为1中sid,serial#
你的能量超乎你想象_________