神通数据库出现死锁,或者阻塞,怎么排查
·
---查询死锁
select kaddr::int8, xid, type, '-' as escalation, id1, id2, lmode, ctime/1000 as ctime, case when block=1 then 'true' when block=0 then 'false' end as block from v$lock where xid != (select current_xid from v$session where sid=current_session_id());
---查询死锁-带字段描述
select kaddr::int8 as "锁句柄地址", xid as "事务ID" , type as "锁的类型", '-' as "是否为升级之后的锁", id1 as "对象段ID", id2 as " 对象行ID", lmode as "持有的锁模式", ctime/1000 as "已持有锁的时间", case when block=1 then 'true' when block=0 then 'false' end as "是否 正阻塞其他锁" from v$lock where xid != (select current_xid from v$session where sid=current_session_id());
DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。
更多推荐


所有评论(0)