DB2 运行时信息查看工具
2009-06-09 18:03
316 查看
今天发现了一个DB2的数据库运行时信息查看工具,可以查看锁的信息,会话信息,事务信息。。。。
db2pd
Usage:
-h | -help [file=<filename>]
Help
-v | -version [file=<filename>]
Version
-osinfo [disk] [file=<filename>]
Operating System Information
-dbpartitionnum <num>[,<num>]
Database Partition Number(s)
-alldbpartitionnums
All partition numbers
-database | -db <database>[,<database>]
Database(s)
-alldatabases | -alldbs
All Active Databases
-inst
Instance scope output
-file <filename>
All Output to Filename
-command <filename>
Read in predefined options
-interactive
Interactive
-full
Expand output to full length
-repeat [num sec] [count]
Repeat every num seconds (default 5) count times
-everything
All options on all database partitions
Instance scope options:
-agents [db=<database>] [[<AgentId> | [app=<AppHandl>]] [file=<filename>]
Agents
-fcm [hwm] [<numApps>] [file=<filename>]
FCM Information
-memsets [file=<filename>]
Memory Sets
-mempools [file=<filename>]
Memory Pools
-memblocks [[dbms, fcm, fmp, appctl <id>, private] | [all]] [top] [blocks] [sort] [PoolID]
Memory Blocks
-dbmcfg [file=<filename>]
DBM Config
-sysplex [db=<database>] [file=<filename>]
Sysplex List
-utilities [file=<filename>]
Utilities
-fmp
FMP Table
-latches [group] [file=<filename>]
Latches
-stack all
Produce stack trace for all TIDs in db2sys.exe.
Database scope options:
-applications [[<AppHandl> | [agent=<AgentId>]] [file=<filename>]
Applications
-transactions [<TranHdl> | [app=<AppHandl>]] [file=<filename>]
Transactions
-bufferpools [<bpID>] [file=<filename>]
Buffer Pools
-pages [<bpID>] [file=<filename>]
Bufferpool Pages
-logs [file=<filename>]
Transaction Logs
-locks [<TranHdl>] [file=<filename>] [showlocks] [wait]
Locks
-tablespaces [<Tablespace ID>] [group] [file=<filename>]
Tablespaces/Containers
-dynamic [file=<filename>]
Dynamic Cache
-static [file=<filename>]
Static Cache
-memsets [file=<filename>]
Memory Sets
-mempools [file=<filename>]
Memory Pools
-memblocks [[dbms, fcm, fmp, appctl <id>, private] | [all]] [top] [blocks] [sort] [PoolID]
Memory Blocks
-dbcfg [file=<filename>]
Database Config
-catalogcache [file=<filename>]
Catalog Cache
-tcbstats [all|index] [<TbspaceID> [<TableID>]] [file=<filename>]
Table Control Block Stats
-reorgs [file=<filename>]
Table Reorg Stats
-recovery [file=<filename>]
Recovery Status
-reopt [file=<filename>]
Reoptimized SQL Statements
-storagepaths
Storage Paths
-hadr [file=<filename>]
High Availability Disaster Recovery
-activestatements [file=<filename>]
Active Statement List
Examples:
db2pd -dbpartitionnum 0,1 -db sample -locks
db2pd -dbp 0,1 -database sample -locks app=<appid>
db2pd -alldbp -alldbs
db2pd
Usage:
-h | -help [file=<filename>]
Help
-v | -version [file=<filename>]
Version
-osinfo [disk] [file=<filename>]
Operating System Information
-dbpartitionnum <num>[,<num>]
Database Partition Number(s)
-alldbpartitionnums
All partition numbers
-database | -db <database>[,<database>]
Database(s)
-alldatabases | -alldbs
All Active Databases
-inst
Instance scope output
-file <filename>
All Output to Filename
-command <filename>
Read in predefined options
-interactive
Interactive
-full
Expand output to full length
-repeat [num sec] [count]
Repeat every num seconds (default 5) count times
-everything
All options on all database partitions
Instance scope options:
-agents [db=<database>] [[<AgentId> | [app=<AppHandl>]] [file=<filename>]
Agents
-fcm [hwm] [<numApps>] [file=<filename>]
FCM Information
-memsets [file=<filename>]
Memory Sets
-mempools [file=<filename>]
Memory Pools
-memblocks [[dbms, fcm, fmp, appctl <id>, private] | [all]] [top] [blocks] [sort] [PoolID]
Memory Blocks
-dbmcfg [file=<filename>]
DBM Config
-sysplex [db=<database>] [file=<filename>]
Sysplex List
-utilities [file=<filename>]
Utilities
-fmp
FMP Table
-latches [group] [file=<filename>]
Latches
-stack all
Produce stack trace for all TIDs in db2sys.exe.
Database scope options:
-applications [[<AppHandl> | [agent=<AgentId>]] [file=<filename>]
Applications
-transactions [<TranHdl> | [app=<AppHandl>]] [file=<filename>]
Transactions
-bufferpools [<bpID>] [file=<filename>]
Buffer Pools
-pages [<bpID>] [file=<filename>]
Bufferpool Pages
-logs [file=<filename>]
Transaction Logs
-locks [<TranHdl>] [file=<filename>] [showlocks] [wait]
Locks
-tablespaces [<Tablespace ID>] [group] [file=<filename>]
Tablespaces/Containers
-dynamic [file=<filename>]
Dynamic Cache
-static [file=<filename>]
Static Cache
-memsets [file=<filename>]
Memory Sets
-mempools [file=<filename>]
Memory Pools
-memblocks [[dbms, fcm, fmp, appctl <id>, private] | [all]] [top] [blocks] [sort] [PoolID]
Memory Blocks
-dbcfg [file=<filename>]
Database Config
-catalogcache [file=<filename>]
Catalog Cache
-tcbstats [all|index] [<TbspaceID> [<TableID>]] [file=<filename>]
Table Control Block Stats
-reorgs [file=<filename>]
Table Reorg Stats
-recovery [file=<filename>]
Recovery Status
-reopt [file=<filename>]
Reoptimized SQL Statements
-storagepaths
Storage Paths
-hadr [file=<filename>]
High Availability Disaster Recovery
-activestatements [file=<filename>]
Active Statement List
Examples:
db2pd -dbpartitionnum 0,1 -db sample -locks
db2pd -dbp 0,1 -database sample -locks app=<appid>
db2pd -alldbp -alldbs
相关文章推荐
- [小工具] modinfo - 快速查看内核模块文件信息
- db2mtrk--db2内存使用查看工具
- DB2 查看历史备份信息
- 可执行文件信息查看工具代码示例
- 【Android studio】解决 Error:CreateProcess error=216, 该版本的 %1 与您运行的 Windows 版本不兼容。请查看计算机的系统信息,了解是否需要 x86
- tomcat如何利用自带工具查看tomcat信息
- 查看系统信息msinfo32工具的使用
- db2mtrk--db2内存使用查看工具
- 2.Lucene3.6.2包介绍,第一个Lucene案例介绍,查看索引信息的工具lukeall介绍,Luke查看的索引库内容,索引查找过程
- 推荐一个zookeeper信息查看工具
- 反射_01概述和反射中的运行时类型以及查看类型信息
- 查看服务器CPU信息工具脚本
- CentOS5.8下用“软件包安装工具安装”总是提示:另一个目前运行的程序正在访问软件信息。
- 使用python利器selenium工具模拟浏览器运行并爬取淘宝商品信息
- MIUI添加内存调试工具:查看进程中的Bitmap信息
- MIUI添加内存调试工具:查看进程中的Bitmap信息
- 查看linux ssh服务信息及运行状态
- Linux 下查看某个进程运行的堆栈信息
- Linux环境下通过gstack命令查看进程的运行堆栈信息
- 通过bginfo小工具让用户自己查看用户名与IP地址信息