Personal tools
You are here: Home DB2 How To's How to check the numbers of databases online on DB2
Navigation
Log in


Forgot your password?
 
Document Actions

How to check the numbers of databases online on DB2

db2 get snapshot for dbm | grep -i "Active Local"

Perform the command below to check the numbers of databases online


db2 get snapshot for dbm | grep -i "Active Local"


Output:

Active local databases                         = 10


Other option is:

db2 list active databases | grep -c "Database name"

Output:

Active local databases                         = 10
Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls