您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: