Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

sql

db2

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

like image 551
Kamal Joshi Avatar asked Nov 04 '08 10:11

Kamal Joshi


People also ask

How do I check if db2 is active?

The command Db2_all sends the command to all database partitions defined in the Db2nodes. cfg file, and also shows how long the instance has been activated. 2. You can determine the status of all the databases that have been activated by using one command.

What is db2pd command in db2?

The db2pd -dbptnmem command shows how much memory the Db2 server is currently consuming and, at a high level, which areas of the server are using that memory. Instance memory usage includes not only actual system memory consumption/commitment but also configured allowances that may not be in use/committed.


1 Answers

Maybe you are searching for below query.

SELECT
    AUTHID,
    APPL_NAME,
    CLIENT_NNAME,
    AGENT_ID,
    APPL_ID,
    APPL_STATUS
FROM
    SYSIBMADM.APPLICATIONS
like image 92
Amrith Raj Herle Avatar answered Oct 13 '22 22:10

Amrith Raj Herle