How to check how many applications are running on the DB2

To check the number of current applications running under DB2, perform the following command:


db2 list active databases

It will show you the active databases.

You can also check the status of all running applications, performing:db2 list applications show detail | grep -i executing

 In case you need to check if your applications are in lock, perform:

db2 list applications show detail | grep -i lock

 On AIX, we also can use the command wc (word count) to help us to count the lines from a result output, as following:

db2 list applications show detail | grep -i executing | wc -l

or

db2 list applications show detail | grep -i lock | wc -l

Comments

Popular posts from this blog

Db2 export command example using file format (del , ixf)

How to fix DB2 Tablespace OFFLINE state issue?

How to determine fenced User-ID of a DB2 instance