DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=2

SqlTransactionRollbackException:DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=2, DRIVER=3.64.82;

1.首先查看下数据库中锁的表

SELECT * FROM sysibmadm.locks_held WITH ur 

DB2 SQL Error: SQLCODE=-911, SQLSTATE=40001, SQLERRMC=2_第1张图片

2.使用查出的AGENT_ID进行解锁

--CALL SYSPROC.ADMIN_CMD('FORCE application(AGENT_ID)')
CALL SYSPROC.ADMIN_CMD('FORCE application(39470)')

你可能感兴趣的:(锁,sql,数据库,mysql)