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#

 

相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-06-28
  • 2022-12-23
  • 2021-04-28
  • 2021-12-10
  • 2021-12-21
猜你喜欢
  • 2022-12-23
  • 2021-09-18
  • 2021-10-21
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案