<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Taking TEMP table space one step furthur -to trigger the script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871421#M845165</link>
    <description>Thanks</description>
    <pubDate>Wed, 23 Feb 2005 09:03:47 GMT</pubDate>
    <dc:creator>Ratzie</dc:creator>
    <dc:date>2005-02-23T09:03:47Z</dc:date>
    <item>
      <title>Taking TEMP table space one step furthur -to trigger the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871419#M845163</link>
      <description>Thank you for the great replys now I want to take it one step further. I need to be able to gather some stats as to who and what has spiked the tablespace to 99%. If it is an application issue then I have proof to go back to the vendor.&lt;BR /&gt;&lt;BR /&gt;I have found a sweet script that will let me know what user is using what process and how much tablespace... I think...&lt;BR /&gt;&lt;BR /&gt;Now here is the catch, how do I incorporate this to run when I reach a certain tablespace spike, like lets say 80%. I do not know where to start...&lt;BR /&gt;&lt;BR /&gt;Here is the script that I found on lazydba&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- tempspace_users.sql&lt;BR /&gt;break on report&lt;BR /&gt;compute sum of mb on report&lt;BR /&gt;compute sum of pct on report&lt;BR /&gt;&lt;BR /&gt;col sid format a10 heading "Session ID"&lt;BR /&gt;col username format a10 heading "User Name"&lt;BR /&gt;col sql_text format a8 heading "SQL"&lt;BR /&gt;col tablespace format a10 heading "Temporary|TS Name"&lt;BR /&gt;col size_mb format 999,999,990.00 heading "Mbytes|Used"&lt;BR /&gt;&lt;BR /&gt;select s.sid || ',' || s.serial# sid,&lt;BR /&gt;s.username,&lt;BR /&gt;u.tablespace,&lt;BR /&gt;substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)) sql_text,&lt;BR /&gt;round(((u.blocks*p.value)/1024/1024),2) size_mb&lt;BR /&gt;from v$sort_usage u,&lt;BR /&gt;v$session s,&lt;BR /&gt;v$sqlarea a,&lt;BR /&gt;v$parameter p&lt;BR /&gt;where s.saddr = u.session_addr&lt;BR /&gt;and a.address (+) = s.sql_address&lt;BR /&gt;and a.hash_value (+) = s.sql_hash_value&lt;BR /&gt;and p.name = 'db_block_size'&lt;BR /&gt;group by&lt;BR /&gt;s.sid || ',' || s.serial#,&lt;BR /&gt;s.username,&lt;BR /&gt;substr(a.sql_text, 1, (instr(a.sql_text, ' ')-1)),&lt;BR /&gt;u.tablespace,&lt;BR /&gt;round(((u.blocks*p.value)/1024/1024),2)&lt;BR /&gt;/&lt;BR /&gt;quit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am hoping I can catch the right user and process that almost max'ed out my TEMP tablespace.</description>
      <pubDate>Fri, 19 Nov 2004 09:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871419#M845163</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-11-19T09:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Taking TEMP table space one step furthur -to trigger the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871420#M845164</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Not sue you can but look at&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.rinet.ru/O8-3w/ch07/ch07.htm" target="_blank"&gt;http://docs.rinet.ru/O8-3w/ch07/ch07.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Monitoring the Tablespaces&lt;BR /&gt;As described previously, you can use Storage Manager to view both the tablespaces and the datafiles for space utilization. The information provided by Storage Manager is quite useful. From the Tablespace view, you can see both the space allocated to the tablespace and the amount of space used in the tablespace (refer to Figure 7.6). The SYSTEM tablespace has used approximately 11.7MB of its available 25MB. The colored bar shows this to be about 45% used.&lt;BR /&gt;&lt;BR /&gt;This feature is also available from the Datafiles option (refer to Figure 7.12). This shows approximately the same view as in the Tablespace view since both tablespaces, SYSTEM and DOGS, have one associated datafile. In situations where more datafiles exist, you might be able to determine whether balancing of space is an issue. You must use the NT Performance Monitor to determine whether I/O balancing is a problem. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                 Steve Steel&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2004 10:28:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871420#M845164</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-11-19T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Taking TEMP table space one step furthur -to trigger the script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871421#M845165</link>
      <description>Thanks</description>
      <pubDate>Wed, 23 Feb 2005 09:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/taking-temp-table-space-one-step-furthur-to-trigger-the-script/m-p/4871421#M845165</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2005-02-23T09:03:47Z</dc:date>
    </item>
  </channel>
</rss>

