利用“db2 connect to <db name>”连接到数据库后,执行相关指令
查询锁快照信息
db2 get snapshot for locks on <db name>
查询目前存在的锁
db2 SELECT AGENT_ID, LOCK_OBJECT_TYPE, LOCK_MODE, LOCK_STATUS FROM SYSIBMADM.SNAPLOCK
某一个用户的锁的情况
get snapshot for locks for application applid C0A8084A.040A.031015144751
get snapshot for locks for application agentid 15
时间: 2024-10-26 14:19:23