db2 list applications 中有一个application id是50288,然后我执行db2 force application (50288),sql结果显示The FORCE APPLICTION command completed seccessfully.This command is asynchronous and may not be effective immediately.
然后我过一会儿再db2 list applications查看,id 为50288的app还在,请教下大神,有什么办法可以强行中断这个应用吗?
另:有什么办法可以看到这个application是在做什么?
FORCE APPLICATION是异步的,有些事务不能回滚,必须完成操作,这时可以使用“db2pd -d dbname -apinfo appid”查看此连接正在做什么操作.
你可以查询一下这个连接的来源,无论是remote还是local的连接,都可以查询到是哪个process发起的,然后查看那个process是不是还存在,如果还存在,可以考虑kill这个process,如果不存在,就难以kill了,你连db2stop force都不可以,通常是db2_kill,然后ipcs clean
db2 list application show detail 可以看到状态,是不是在rollback