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 > db2top -T -L

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-10, 15:43
rockycj_dba rockycj_dba is offline
Registered User
 
Join Date: Apr 2009
Posts: 17
db2top -T -L

I'm using DB2 v9.1 LUW with AIX. When you go to db2top and then type -T and then -L and get the total temp space used by the temp tables as in 640.0 K below:


db2top –T -L

Top 5 temp storage consumers (Total temp storage used 640.0K) │
│ ----------------------------------------------------------------------

│ Handle User Temp Size Percent Top5 640.0K [100.00%] │
│ ---------- --------------- ---------- -------- ------------------------- │
│ 1059 E1USER 640.0K 100.00% -------------------------



I wrote this SQL but it doesn't give the total temp size:

db2 "select *
from sysibmadm.snaptab a
where tab_type = 'TEMP_TABLE'

SNAPSHOT_TIMESTAMP TABSCHEMA TABNAME TAB_FILE_ID TAB_TYPE DATA_OBJECT_PAGES INDEX_OBJECT_PAGES LOB_OBJECT_PAGES LONG_OBJECT_PAGES XDA_OBJECT_PAGES ROWS_READ ROWS_WRITTEN OVERFLOW_ACCESSES PAGE_REORGS DBPARTITIONNUM TBSP_ID DATA_PARTITION_ID
-------------------- -----------------
2010-10-04-14.37.41.544923 <1059><E1USER > TEMP (00037,00002) 2 TEMP_TABLE 35 - - - - 0 3290 0 0 0 37 -

1 record(s) selected.


Could anyone help me with what table would be used to figure this out and how? Also it would be great to know what tables are included...

Thank you.


CC
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