top of page

db2pd - A db2 monitoring and troubleshooting tool.

  • Writer: Jha Chandan
    Jha Chandan
  • Dec 25, 2021
  • 2 min read

Updated: Dec 26, 2021

In this blog we will see and learn about one of the important db2 tool which a DBA use it on daily basis. The db2pd command is a powerful tool for monitoring and administering DB2 Linux, UNIX and Windows databases and instances. You can use this tool to keep track of transactions, table spaces, table statistics, dynamic SQL, configuration settings and much, much more.

ree

We can use plenty of options with db2pd for retrieving information about operating systems, dynamic SQL, table statistics, database partitions, and also including information about storage, configuration, recovery processes, HADR status, and many more. Below are few examples of troubleshooting DB2 issues using db2pd :


1) To get DB2 instance uptime

db2pd -
ree

2) To get OS information

db2pd -osinfo
ree

3) To get DB2 level

db2pd -V
db2pd -version
ree

4) To get almost everything db2 databases details

db2pd -d <database name>
db2pd -everything
ree
ree

5) To get useful information about database logs

db2pd -db <database name> -logs
ree

6) To get db2 database lock information

db2pd -db <database name> -locks
ree

7) To get more diagnostic lock information

db2pd -db <database name> -locks -transactions -applications -dynamic
ree

8) To capture all pending locks

db2pd -wlocks -db <database name>
ree

If you got any locks here then you can use the -apinfo option with db2pd to capture detailed runtime information about the lock owner and lock waiter

db2pd -apinfo 21 -db <database name>

9) To get db2 database configuration information

db2pd -db <database name> -dbcfg
ree

10) To get db2 hadr information

db2pd -db <database name> -hadr
ree

11) To get tablespace containers statistics – total useable pages, used pages, free pages,tablespaces type

db2pd -tablespaces -db <database name>
ree

12) To determine which application runs out of table space

db2pd -tcbstats -db <database name>
ree

13) To view memory statistics of database partitions

db2pd -dbptnmem
ree

14) To monitor memory usage.

db2pd -memblock
ree

15) To verify whether recovery is in progress

db2pd -db <database name> -recovery
ree

16) To determine the amount of resources that the transaction is using

db2pd -db <database name> -transactions
ree

17) To monitor log usage

db2pd -db <database name> -logs
ree

18) To view database bufferpool information.

db2pd -db <database name> -bufferpools
ree

19) To get database application information.

db2pd -db <database name> -applications
ree

20) To view dumps page cleaner related information from a database

db2pd -db <database name> -cleaner
ree

21) To view the settings of the database configuration parameters.

db2pd -db <database name> -dbcfg
ree

22) To view the settings of the database manager configuration parameters.

db2pd -dbmcfg
ree

23) To get the fully resolved split diagnostic path.

db2pd -diagpath
ree

24) To lists all EDUs in the instance.

db2pd -edus
ree

25) To view the information about table and data partition reorganization of the connected database.

db2pd -db <database name> -reorg
ree

26) To view the information about the status of the RUNSTATS utility on table and associated indexes of the connected database.

db2pd -db <database name> -runstats
ree

That's all in this post. If you liked this blog and interested in knowing more about IBM Db2. Please Like, Follow, Share & Subscribe to www.ImJhaChandan.com.

Comments


jc_logo.png

Hi, thanks for stopping by!

Welcome to my “Muse & Learn” blog!
Muse a little, learn a lot.✌️

 

Here you’ll find practical SQL queries, troubleshooting tips with fixes, and step-by-step guidance for common database activities. And of course, don’t forget to pause and muse with us along the way. 🙂
 

I share insights on:​​

  • Db2

  • MySQL

  • SQL Server

  • Linux/UNIX/AIX

  • HTML …and more to come!
     

Whether you’re just starting out or looking to sharpen your DBA skills, there’s something here for you.

Let the posts
come to you.

Thanks for submitting!

  • Instagram
  • Facebook
  • X
2020-2025 © TechWithJC

Subscribe to Our Newsletter

Thanks for submitting!

  • Facebook
  • Instagram
  • X

2020-2025 © TechWithJC

bottom of page