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 > system temporary space not releasing space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-09, 11:30
nivasreddy3287 nivasreddy3287 is offline
Registered User
 
Join Date: Jun 2006
Posts: 7
system temporary space not releasing space

I have a database which is not releasing the space on system temporary space.I dont know the reason why it is holding space??I think any sorts,joins would take some space in tempspace but I did not understand the reason as to why it is not releasing after the completion of query execution
Reply With Quote
  #2 (permalink)  
Old 03-05-09, 12:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by nivasreddy3287
I have a database which is not releasing the space on system temporary space.
Do you mind telling us how you came to that conclusion?
Reply With Quote
  #3 (permalink)  
Old 03-05-09, 21:35
nivasreddy3287 nivasreddy3287 is offline
Registered User
 
Join Date: Jun 2006
Posts: 7
When I see the snapshot for tablespaces, I see that used pages are around 110GB which is odd.I thought tempspace would release the space after the sort/join.
Reply With Quote
  #4 (permalink)  
Old 03-06-09, 20:00
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
tempspace should be released once the application that is using it commits/rollbacks. You can use db2pd -tcbstats option to identify the application that is using (look for the appl handle under the SchemaNn column).
Reply With Quote
  #5 (permalink)  
Old 03-06-09, 21:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by nivasreddy3287
When I see the snapshot for tablespaces, I see that used pages are around 110GB which is odd.I thought tempspace would release the space after the sort/join.
Is this a SMS or DMS tablespace? If it is DMS, drop it and recreate as SMS. You are hurting performance by having system temp tablespaces as DMS.
__________________
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
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