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 > Problem with db2pd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-19-09, 11:28
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Problem with db2pd

Morning

Trying to run db2pd and getting mixed results. Running this command against two tables one at a time. Both are regular tables. Both have indexes. One was updated recently i.e. earlier this week, second couple of month back.

have forced tb scan and forced and index access on both of them. however first command returns data, second command returns an empty result. ran it using my id and an instance id as well.

Why is it giving an empty result on another table?

db2pd -db $dbname -tcbstats index tbspaceid=30 tableid=7

db2pd -db $dbname -tcbstats index tbspaceid=25 tableid=496

Thank you.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #2 (permalink)  
Old 06-22-09, 23:51
kiranchinta kiranchinta is offline
Registered User
 
Join Date: Mar 2008
Posts: 8
Did you double check the table space id and table id are valid ?
Reply With Quote
  #3 (permalink)  
Old 06-23-09, 00:58
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
There have been a lot APAR's pertaining to db2pd in the DB2 fixpacks, so I would make sure you have the latest release.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 06-23-09, 11:49
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by kiranchinta
Did you double check the table space id and table id are valid ?
Yes. Many times.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #5 (permalink)  
Old 06-30-09, 09:35
coolwinds coolwinds is offline
Registered User
 
Join Date: Apr 2007
Posts: 6
You should actiavte your database then run db2pd

Quote:
db2 activate db $dbname
---------------
Eric Xu (许 昌)
Reply With Quote
  #6 (permalink)  
Old 06-30-09, 09:49
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Did you miss where I said it works for one table and not the other? Db is already active.

Problem is not really with db2pd as I figured it out. Problem is someone set up so coordinating node is on another server and I have missed it. Table that I get nothing back is not on node 0, so db2pd can't report back on what is happening on the other server as it is reading this data from server memory.

When I connect to the other server that holds other partition's I get results back.

First time saw this kind of set up.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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