db2udb_the_basics day 7
TRANSCRIPT
IBM Software Group
© 2005 IBM Corporation
DB2 UDB Intermediate
Day7
IBM Software Group
© 2005 IBM Corporation
Topics
db2top db2pd
2
IBM Software Group
© 2005 IBM Corporation
DB2 TOP UTILITY
• db2top is basically a tool to periodically capture snapshots and allow users to read the result visually.
• The utility can be used to identify whether there is problem during a period of time, and narrow down the root cause of the problem. Users will find this a handy utility for monitoring real-time system and debugging problems in their daily work.
Enter the following command from a command line to start db2top in interactive mode:
db2top -d sample
3
IBM Software Group
© 2005 IBM Corporation
Screen
4
IBM Software Group
© 2005 IBM Corporation
DB2PD The db2pd tool provides many options to display information about
database transactions, table spaces, table statistics, dynamic SQL, database configurations, and many
other database details; for example • To display the operating system information, issue db2pd –osinfo • To display all instance-related information, issue db2pd –inst • To display all database-related information to the sample database, issue db2pd –db sample Use the db2pd –help command to display all the available options
5
IBM Software Group
© 2005 IBM Corporation
Thank You
6