If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Easier viewing of db2pd commands

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-01-11, 08:59
Breako Breako is offline
Registered User
 
Join Date: Jan 2006
Posts: 119
Easier viewing of db2pd commands

I have Express C installed on windows 7. I am just looking at some of the system commands such as: db2pd.

For example, you can get some information on your locks by doing:

>db2pd -db yourDB -locks show details

However the returned format is difficult to read. Is there a switch or something I can do to make it easier to read.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 08-01-11, 09:07
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
dynamic/admin views can be used for tabular output
see : Snapshot monitor SQL Administrative Views
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-01-11, 11:28
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Or try redirecting the output from db2pd to a file and then open it using notepad.
Reply With Quote
  #4 (permalink)  
Old 08-01-11, 13:09
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Express -C comes with a GUI tool called activity monitor for similar problem diagnostics.
__________________

Jayanta Datta
DB2 UDB DBA
IBM India, Global Delivery
New Delhi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On