您的位置:首页 > 博客中心 > 数据库 >

db2查询锁表

时间:2022-03-13 23:38

--查询锁表情况,可以获取哪个表被锁,其中agent_id为哪个DB2进程锁了表(db2inst1用户下)

select * from sysibmadm.LOCKS_HELD with ur;


--拿到上述的agent_id,查询具体锁表的IP和应用程序

db2 list application | grep 58189

--MASADIC db2jcc_applica 58189 192.168.210.33.59145.1405052017 NGDB 1

--杀掉此进程

db2 "force application(58189)"



重新解析一下一张表 reorg table ta_settle_listave_m

热门排行

今日推荐

热门手游