首页 > 数据库 >db2pd - A db2 monitoring and troubleshooting tool.

db2pd - A db2 monitoring and troubleshooting tool.

时间:2023-06-20 09:00:49浏览次数:42  
标签:information get db2pd tool database db db2

db2pd - A db2 monitoring and troubleshooting tool.

 

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.

       

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 -
       

2) To get OS information

 
db2pd -osinfo
       

3) To get DB2 level

 
db2pd -V
db2pd -version
       

4) To get almost everything db2 databases details

 
db2pd -d <database name>
db2pd -everything
             

5) To get useful information about database logs

 
db2pd -db <database name> -logs
       

6) To get db2 database lock information

 
db2pd -db <database name> -locks
       

7) To get more diagnostic lock information

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

8) To capture all pending locks

 
db2pd -wlocks -db <database name>
       

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
       

10) To get db2 hadr information

 
db2pd -db <database name> -hadr
       

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

 
db2pd -tablespaces -db <database name>
       

12) To determine which application runs out of table space

 
db2pd -tcbstats -db <database name>
       

13) To view memory statistics of database partitions

 
db2pd -dbptnmem
       

14) To monitor memory usage.

 
db2pd -memblock
       

15) To verify whether recovery is in progress

 
db2pd -db <database name> -recovery
       

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

 
db2pd -db <database name> -transactions
       

17) To monitor log usage

 
db2pd -db <database name> -logs
       

18) To view database bufferpool information.

 
db2pd -db <database name> -bufferpools
       

19) To get database application information.

 
db2pd -db <database name> -applications
       

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

 
db2pd -db <database name> -cleaner
       

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

 
db2pd -db <database name> -dbcfg
       

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

 
db2pd -dbmcfg
       

23) To get the fully resolved split diagnostic path.

 
db2pd -diagpath
       

24) To lists all EDUs in the instance.

 
db2pd -edus
       

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

 
db2pd -db <database name> -reorg
       

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
           

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.

标签:information,get,db2pd,tool,database,db,db2
From: https://www.cnblogs.com/yaoyangding/p/17492718.html

相关文章

  • 安装NVIDIA cuda-toolkit
     NVIDIA®CUDA®工具包为创建高性能GPU加速应用提供了发展环境。使用CUDA工具包,您可以在GPU加速嵌入式系统、桌面工作站、企业数据中心、基于云的平台和HPC超级计算机上开发、优化和部署您的应用程序。工具包包括GPU加速库、调试和优化工具、C/C++编译器以及一个运行......
  • VMware中安装VMware Tools
    1、安装完以后,主机与虚拟机是不能相互复制的。应该关闭kali以后,点击“虚拟机”--->"设置”--->"DVD/CD"选择自动检测。2、虚拟机重启以后,重新安装VWmareTools就不再是灰色的了,并且kali主界面会出现VWmareTools的图标。位于/media中。3、进入VMwareTools安装位置,拷贝文件到/h......
  • An Introduction to Linux Automation, Tools and Techniques
    AnIntroductiontoLinuxAutomation,ToolsandTechniqueshttps://linuxconfig.org/an-introduction-to-linux-automation-tools-and-techniquesInthefast-pacedworldoftechnology,automatingroutinetaskscanbethekeytoincreasedefficiencyandproducti......
  • You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd"
    Thefastnetworkdevicedriver(vmxnetmodule)isusedonlyforourfast networkinginterface.TherestofthesoftwareprovidedbyVMwareToolsis designedtoworkindependentlyofthisfeature.Ifyouwishtohavethefastnetworkdriverenabled,you......
  • export /opt/FriendlyARM/toolschain/4.5.1/bin/:$PATH
    [root@tom/]#arm-linux-gcc-vbash:arm-linux-gcc:commandnotfound...[root@tom/]#export/opt/FriendlyARM/toolschain/4.5.1/bin/:$PATH-bash:export:`/opt/FriendlyARM/toolschain/4.5.1/bin/:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin......
  • wpf datagrid tooltip
    <DataGrid.CellStyle></DataGrid.CellStyle><DataGrid.Columns></DataGrid.Columns>......
  • vuex actions 和 mutations 分析,为什么官方建议 actions 里面不要直接修改 state, 为
    来自官方大大:区分actions和mutations并不是为了解决竞态问题,而是为了能用devtools追踪状态变化。事实上在vuex里面actions只是一个架构性的概念,并不是必须的,说到底只是一个函数,你在里面想干嘛都可以,只要最后触发mutation就行。异步竞态怎么处理那是用户自己的事情。vu......
  • IPMItool安装后出现找不到libfreeipmi.so.17库文件问题
    描述:IPMItool安装后出现找不到libfreeipmi.so.17库文件问题解决:通过find查找libfreeipmi.so.17文件,设置环境变量:exportLD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH(单次生效) 永久生效 ......
  • Doosan Excavator Inspection Diagnostic Tool DDT SCR DPF G2 Scan DCU ECU DMS-5 Ha
    DoosanExcavatorInspectionDiagnosticToolDDTSCRDPFG2ScanDCUECUDMS-5Hardware+Software2022.09Softwaredownloadlink:https://mega.nz/file/Bk8X1QxA#g49TrmFsIljfHQpAIkQlG-VIWSgug8kLq3VffqAW00YHardware+SoftwareVersionDoosanDDTSCRDoosan......
  • 数据库与Redgate SQL Toolbelt和Azure DevOps的持续集成
    理论与实践中的数据库CICI背后的理论是,如果我们每天多次将代码集成到共享存储库中,然后通过运行自动构建和后续测试来验证每个提交,那么我们会及早发现并根除问题,并提高软件的质量。本文的内容是关于设置管道,使您能够将CI理论付诸实践,用于数据库。当我在2013年发布关于这个主题的原始......