问题描述
我目前正在使用具有FixPak 10的Db2 Enterprise Server V 8.2。
我想使用一个实例检索所有打开的活动连接的列表。 p>
在Oracle中有一个名为Top Session的实用程序,它执行类似的任务。在DB2中有任何等价物?
提前感谢
Kamal
要从列表应用程序获取更详细的信息:
db2列出数据库应用程序{dbName}显示详细信息
对于具有大量活动连接的应用程序,将结果管理到 grep
仅查找当前执行或锁定的线程。
db2数据库列表应用程序{dbName}显示详细信息| grep -i执行
和
db2数据库列表应用程序{dbName}显示详细信息| grep -ilock
I'm currently working with Db2 Enterprise Server V 8.2 with FixPak 10
And I want to retrieve list of all the open active connections with an instance.
In Oracle there is a utility program called "Top Session" which does the similar task. Is there any equivalent in DB2?
Thanks in advance,Kamal
To get more detailed information from list applications:
db2 list applications for database {dbName} show detail
For applications with lots of active connections it is useful to pipe the results to grep
to find only the threads currently executing or locked.
db2 list applications for database {dbName} show detail | grep -i "executing"
and
db2 list applications for database {dbName} show detail | grep -i "lock"
这篇关于如何在DB2(8.x)中查找所有打开/活动连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!