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 > Informix > Who is using TEMP space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-07, 14:55
obwan obwan is offline
Registered User
 
Join Date: Mar 2007
Posts: 25
Who is using TEMP space

I have 10 temp dbspaces deffined in my production instance. Normally they run at approx 65 - 70 % free space. For the last couple of days some of the temspaces go as low as 18% free. How can I obtain the list of sessions tha are utilizing the temp spaces by tmpdbspace?
Reply With Quote
  #2 (permalink)  
Old 06-04-07, 09:44
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
SELECT t.tabname
,t.dbsname
,DECODE(d.is_logging,1,"Y","N") AS db_with_log
,s.name AS dbspace
,DBINFO("UTC_TO_DATETIME",ti_created) AS created
,DECODE(hex(mod(ti_flags,256)/16),"0x00000006","Y","N") AS table_using_log
,DECODE(hex(mod(ti_flags,256)/16),6,"Y","N") AS table_using_log
,ti_npused AS num_usedpages
,ti_nptotal AS num_pages
,hex(ti_partnum) as partnum
,t.owner
FROM sysmaster:systabnames t, sysmaster:systabinfo i,
sysmaster:sysdbspaces s, sysmaster:sysdatabases d
WHERE t.partnum=ti_partnum
AND d.name=t.dbsname
AND s.dbsnum=TRUNC(t.partnum/1048576)
AND hex(mod(ti_flags,256)/16) IN ( 6,2 )
order by owner
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
Reply With Quote
  #3 (permalink)  
Old 06-12-07, 10:04
obwan obwan is offline
Registered User
 
Join Date: Mar 2007
Posts: 25
Smile Thank you CEINMA

I will try using that statement
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