Home > Database > Mysql Tutorial > Oracle 数据表死锁解决方法

Oracle 数据表死锁解决方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:10:50
Original
1079 people have browsed it

Oracle查询死锁信息的语句: select a.owner, a.object_name, b.xidusn, b.xidslot, b.xi

Oracle查询死锁信息的语句:

第一步:查看是否有死锁存在,查出有数据则代表有死锁:

第二步:查出死锁session的精确信息【sid 为前面语句的session_id】

第三步:删除死锁【第一个参数为sid,第二个为serial#】

如果还不能解决,,

select pro.spid from v$session ses,v$process pro where ses.sid=XX and ses.paddr=pro.addr;  

其中sid用死锁的sid替换。

  • exit       
  • ps -ef|grep spid   
  • 其中spid是这个进程的进程号,kill掉这个Oracle进程。

    linux

    Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template