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 > Bytes of Temp Tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-10, 16:28
rockycj rockycj is offline
Registered User
 
Join Date: Feb 2007
Posts: 73
Bytes of Temp Tablespace

I'm using DB2 v9.1 Fix Pak 4 LUW. If I run "db2 list applications". The Applications currently running, I would like to know how much temporary tablespace each App Handle (if any) it's using in bytes or pages.

Is there an SQL or View that I could run to find this information?

Thank you.

CC
Reply With Quote
  #2 (permalink)  
Old 10-18-10, 20:09
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
db2pd -d <db name> -tcb | grep Temp
Reply With Quote
  #3 (permalink)  
Old 10-19-10, 11:41
rockycj rockycj is offline
Registered User
 
Join Date: Feb 2007
Posts: 73
Bytes of Temp Tablespace

db2girl,
I ran the command to find tempspace on the current jobs running. Is the DataSize in bytes or how is it measured? Okay I see this is measured in Pages. I need to convert that to bytes.

Also, I was wondering what the Address was exactly?


db2pd -d psftprod -tcb | grep Temp

Address TbspaceID TableID PartID MasterTbs MasterTab TableName SchemaNm ObjClass DataSize LfSize LobSize XMLSize
0x078000005A566078 37 2 n/a 37 2 TEMP (00037,00002) <815><E1 Temp 4222 0 0 0
0x0780000023CB8078 37 3 n/a 37 3 TEMP (00037,00003) <876><E1 Temp 3 0 0 0
0x0780000023B199F8 37 4 n/a 37 4 TEMP (00037,00004) <121><E1 Temp 453 0 0 0
0x07800000213E31F8 37 5 n/a 37 5 TEMP (00037,00005) <1813><E Temp 6 0 0 0
0x07800003F382A878 37 6 n/a 37 6 TEMP (00037,00006) <815><E1 Temp 228 0 0 0
0x078000005A59DCF8 37 8 n/a 37 8 TEMP (00037,00008) <882><E1 Temp 630 0 0 0


Thank you.

CC

Last edited by rockycj; 10-19-10 at 11:54. Reason: I found what DataSize represents.
Reply With Quote
  #4 (permalink)  
Old 10-19-10, 17:03
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by rockycj View Post
I was wondering what the Address was exactly?
Address in memory. DB2 support/development can use this info when debugging some problems.
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