锁表查看
--锁表检查语句
SELECT C.CONNECTION_ID,
PS.STATEMENT_STRING
FROM M_CONNECTIONS C JOIN M_PREPARED_STATEMENTS PS
ON C.CONNECTION_ID = PS.CONNECTION_ID AND C.CURRENT_STATEMENT_ID = PS.STATEMENT_ID
WHERE C.CONNECTION_STATUS = 'RUNNING'
AND C.CONNECTION_TYPE = 'Remote';
解锁
-- session id中的 逗号要去掉
ALTER SYSTEM CANCEL SESSION '361849';