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 > DB2PD in Table Function on 9.7

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-10, 12:57
jhickey jhickey is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
DB2PD in Table Function on 9.7

All does anyone know if there is a table function that contains the same data as db2pd -d <db_name>?

specifically I'm looking for the section that has TCB table stats. More specifically I'm looking for RTSUDI, Reads, Inserts, Updates, Deletes and OvFlReads


TCB Table Stats:
Address TableName SchemaNm Scans UDI RTSUDI PgReorgs NoChgUpdts Reads FscrUpdates Inserts Updates Deletes OvFlReads OvFlCrtes RowsComp RowsUncomp CCLogReads StoreBytes BytesSaved

-Jason
Reply With Quote
  #2 (permalink)  
Old 08-03-10, 16:02
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
MON_GET_TABLE() system function.
Reply With Quote
  #3 (permalink)  
Old 08-03-10, 16:37
jhickey jhickey is offline
Registered User
 
Join Date: Aug 2010
Posts: 2
Quote:
Originally Posted by n_i View Post
MON_GET_TABLE() system function.
Close but I did not see the RTSUDI although if I understand the value I may just be able to use the INSERT,UPDATE and DELETE counts...

thanks
Reply With Quote
  #4 (permalink)  
Old 08-03-10, 16:58
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You realize, of course, that all those counters are reset by the collection of statistics.
Reply With Quote
  #5 (permalink)  
Old 02-01-12, 01:07
OziBoy OziBoy is offline
Registered User
 
Join Date: Feb 2012
Posts: 1
Hi, the mon_get_table function is almost what I need but not quite. What I am after is the number of times a table is queried on? I've tried mon_get_table but I'm getting results where a table has 0 table scans but rows read = 50.
Any help would be appreciated.
Reply With Quote
  #6 (permalink)  
Old 02-01-12, 07:51
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by OziBoy View Post
a table has 0 table scans but rows read = 50.
Surely, there are other access methods aside from table scans.
Reply With Quote
Reply

Tags
db2pd

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