How to find all open/active connections in DB2 (8.x)

后端 未结 4 1712
深忆病人
深忆病人 2020-12-17 20:02

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 O

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 20:48

    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"
    

提交回复
热议问题