<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting rid of runaway temporary tablespace &#8211; 8 Gb reclaimed</title>
	<atom:link href="http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Ravi Bhatia</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3856</link>
		<dc:creator>Ravi Bhatia</dc:creator>
		<pubDate>Wed, 05 Nov 2008 13:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3856</guid>
		<description><![CDATA[If I keep autoextend to off and set a maxsize will my temp tablespace will reclaim the the used space after reaching to maxsize i.e. after being 100% utilized or still I have to face the ora-01652 unable to extend the tempfile...?]]></description>
		<content:encoded><![CDATA[<p>If I keep autoextend to off and set a maxsize will my temp tablespace will reclaim the the used space after reaching to maxsize i.e. after being 100% utilized or still I have to face the ora-01652 unable to extend the tempfile&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3855</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Mon, 09 Oct 2006 01:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3855</guid>
		<description><![CDATA[Follow up:

so it is good to have a full temporary tablespace, as long as it doesn&#039;t fill up your harddisk...

http://asktom.oracle.com/~tkyte/Misc/free.html]]></description>
		<content:encoded><![CDATA[<p>Follow up:</p>
<p>so it is good to have a full temporary tablespace, as long as it doesn&#8217;t fill up your harddisk&#8230;</p>
<p><a href="http://asktom.oracle.com/~tkyte/Misc/free.html" rel="nofollow">http://asktom.oracle.com/~tkyte/Misc/free.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3854</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Mon, 09 Oct 2006 01:33:38 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3854</guid>
		<description><![CDATA[Set the MAXSIZE value (in your CREATE TEMPORARY TABLESPACE or ALTER DATABASE DATAFILE statement) to an appropriate size. Limit you autoextend...

1)

In other words, try to manage your total harddisk volume. As long as your harddisk hasn&#039;t also has an autoextend feature AND/OR the Oracle database isn&#039;t hardware aware and can (or want to...) automatically resize itself, you will have to MANAGE your temporary tablespace...

In other other words, you will have to manage it (sorry for repeating).

Using a DEMO database or a database created with the &quot;wizard&quot;, aka the database assistant...and it did assist you...nothing more nothing less...will not give you the perfect database layout for the purpose it will be created for (some stupid scripting from the old oracle 7 thinking days is still in there, so it won&#039;t be perfect anyway).

....BUT, said that, the assistant is a good start to create the scripting used for creating the database.

2)

Via an alter database datafile &#039;xxxx.dbf&#039; size xxx, one could try to resize the datafile to its HWM (high watermark).

See for more info: http://asktom.oracle.com/pls/ask/f?p=4950:8:8472973305754934664::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:766625833673


*)

But don&#039;t be afraid, a temporary tablespace is allowed to be full (the following explains it perfectly)...

--------------------------------------------------------------------------------
Copied from http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:374218170986
--------------------------------------------------------------------------------

temp segments still showing using
November 10, 2005
Reviewer:  Ram  from India

V$sort_usage does not return any rows, still temp tablespace is almost full
(98%). how does it happen ? how to free up temp tablespace ?

Followup:

that is perfect!  excellent, that means future sorts will be most efficient as
they won&#039;t have the overhead of allocating extents again.

The temporary tablespace should always appear &quot;full&quot; in a system that has been
up and running - anything else would not be good.


There is one temp segement
This one segment is made up of extents
This one segment is shared by all sessions
Each extent will be used by ONE session

When that session is done with it - that session will give the extent back to
the &quot;list of free extents for other sessions to use&quot; in the temporary segment -
but the temp segment will KEEP the extent so it need not reallocate it over and
over and over again.


So, everything is working perfectly and if you achieved your stated goal of
&quot;free up temp tablespace&quot;, you would only negatively impact performance.]]></description>
		<content:encoded><![CDATA[<p>Set the MAXSIZE value (in your CREATE TEMPORARY TABLESPACE or ALTER DATABASE DATAFILE statement) to an appropriate size. Limit you autoextend&#8230;</p>
<p>1)</p>
<p>In other words, try to manage your total harddisk volume. As long as your harddisk hasn&#8217;t also has an autoextend feature AND/OR the Oracle database isn&#8217;t hardware aware and can (or want to&#8230;) automatically resize itself, you will have to MANAGE your temporary tablespace&#8230;</p>
<p>In other other words, you will have to manage it (sorry for repeating).</p>
<p>Using a DEMO database or a database created with the &#8220;wizard&#8221;, aka the database assistant&#8230;and it did assist you&#8230;nothing more nothing less&#8230;will not give you the perfect database layout for the purpose it will be created for (some stupid scripting from the old oracle 7 thinking days is still in there, so it won&#8217;t be perfect anyway).</p>
<p>&#8230;.BUT, said that, the assistant is a good start to create the scripting used for creating the database.</p>
<p>2)</p>
<p>Via an alter database datafile &#8216;xxxx.dbf&#8217; size xxx, one could try to resize the datafile to its HWM (high watermark).</p>
<p>See for more info: <a href="http://asktom.oracle.com/pls/ask/f?p=4950:8:8472973305754934664" rel="nofollow">http://asktom.oracle.com/pls/ask/f?p=4950:8:8472973305754934664</a>::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:766625833673</p>
<p>*)</p>
<p>But don&#8217;t be afraid, a temporary tablespace is allowed to be full (the following explains it perfectly)&#8230;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Copied from <a href="http://asktom.oracle.com/pls/ask/f?p=4950:8" rel="nofollow">http://asktom.oracle.com/pls/ask/f?p=4950:8</a>:::::F4950_P8_DISPLAYID:374218170986<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>temp segments still showing using<br />
November 10, 2005<br />
Reviewer:  Ram  from India</p>
<p>V$sort_usage does not return any rows, still temp tablespace is almost full<br />
(98%). how does it happen ? how to free up temp tablespace ?</p>
<p>Followup:</p>
<p>that is perfect!  excellent, that means future sorts will be most efficient as<br />
they won&#8217;t have the overhead of allocating extents again.</p>
<p>The temporary tablespace should always appear &#8220;full&#8221; in a system that has been<br />
up and running &#8211; anything else would not be good.</p>
<p>There is one temp segement<br />
This one segment is made up of extents<br />
This one segment is shared by all sessions<br />
Each extent will be used by ONE session</p>
<p>When that session is done with it &#8211; that session will give the extent back to<br />
the &#8220;list of free extents for other sessions to use&#8221; in the temporary segment -<br />
but the temp segment will KEEP the extent so it need not reallocate it over and<br />
over and over again.</p>
<p>So, everything is working perfectly and if you achieved your stated goal of<br />
&#8220;free up temp tablespace&#8221;, you would only negatively impact performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Benjamins</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3853</link>
		<dc:creator>Jan Benjamins</dc:creator>
		<pubDate>Sun, 08 Oct 2006 00:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3853</guid>
		<description><![CDATA[while awaiting moderation :), could you change my answer as followed to be more correct:

actually, the procedure to do this in an active production environment is quite simple:
- create a new temporary tablespace
- change default temporary tablespace of all users using old temporary tablespace
- drop old temporary tablespace when not in use anymore]]></description>
		<content:encoded><![CDATA[<p>while awaiting moderation <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , could you change my answer as followed to be more correct:</p>
<p>actually, the procedure to do this in an active production environment is quite simple:<br />
- create a new temporary tablespace<br />
- change default temporary tablespace of all users using old temporary tablespace<br />
- drop old temporary tablespace when not in use anymore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Benjamins</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3852</link>
		<dc:creator>Jan Benjamins</dc:creator>
		<pubDate>Sat, 07 Oct 2006 23:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3852</guid>
		<description><![CDATA[actually, the procedure to do this in an active production environment is quite simple:
- create a new temporary tablespace
- change default temporary of all users (except sys,system etc)
- drop old temporary tablespace when not in use anymore]]></description>
		<content:encoded><![CDATA[<p>actually, the procedure to do this in an active production environment is quite simple:<br />
- create a new temporary tablespace<br />
- change default temporary of all users (except sys,system etc)<br />
- drop old temporary tablespace when not in use anymore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Jellema</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3851</link>
		<dc:creator>Lucas Jellema</dc:creator>
		<pubDate>Sat, 07 Oct 2006 22:42:41 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3851</guid>
		<description><![CDATA[So what would you recommend to remedy the oversized Temporary Tablespace?]]></description>
		<content:encoded><![CDATA[<p>So what would you recommend to remedy the oversized Temporary Tablespace?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3850</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Sat, 07 Oct 2006 12:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3850</guid>
		<description><![CDATA[The example given by Jeff isn&#039;t a great one. In a production environment you will lose &quot;transactions&quot;. Most of the time the space on the temporary tablespace can&#039;t be freed because it contains data of connected sessions and you can&#039;t shrink it because you probably would try to shrink it beyond the HIGHWATER MARK (HWM).

Jeff in his example probably couldn&#039;t free up the space after a bounce of the database because of or the HWM or the database was trying to recover from an &quot;abort&quot;.

A DROP INCLUDING DATAFILES is a very aggressive way to get rid of your temporary tablespace and you leave you with a unwanted (corrupted) database situation. Never use it on normal tablespaces - if your not sure what you are doing OR don&#039;t want to rebuild your demo environment]]></description>
		<content:encoded><![CDATA[<p>The example given by Jeff isn&#8217;t a great one. In a production environment you will lose &#8220;transactions&#8221;. Most of the time the space on the temporary tablespace can&#8217;t be freed because it contains data of connected sessions and you can&#8217;t shrink it because you probably would try to shrink it beyond the HIGHWATER MARK (HWM).</p>
<p>Jeff in his example probably couldn&#8217;t free up the space after a bounce of the database because of or the HWM or the database was trying to recover from an &#8220;abort&#8221;.</p>
<p>A DROP INCLUDING DATAFILES is a very aggressive way to get rid of your temporary tablespace and you leave you with a unwanted (corrupted) database situation. Never use it on normal tablespaces &#8211; if your not sure what you are doing OR don&#8217;t want to rebuild your demo environment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3849</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Sat, 07 Oct 2006 12:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3849</guid>
		<description><![CDATA[Ehh Lucas, you should set the MAXSIZE parameter to a value which would suffice your harddisk needs, otherwise you will encounter the same problems in the near future.

eg.

ALTER DATABASE DATAFILE &#039;C:\ORACLE\ORADATA\ORCL\TEMP01.DBF&#039; autoextend on next 250M maxsize 2048M]]></description>
		<content:encoded><![CDATA[<p>Ehh Lucas, you should set the MAXSIZE parameter to a value which would suffice your harddisk needs, otherwise you will encounter the same problems in the near future.</p>
<p>eg.</p>
<p>ALTER DATABASE DATAFILE &#8216;C:\ORACLE\ORADATA\ORCL\TEMP01.DBF&#8217; autoextend on next 250M maxsize 2048M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Flack</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3848</link>
		<dc:creator>John Flack</dc:creator>
		<pubDate>Thu, 05 Oct 2006 16:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3848</guid>
		<description><![CDATA[This comment is not directly related to your blog entry.  There is a javascript error on the page that displays the blog.  Here is the code in error:

  for (var i = 0; !exists &amp;&amp; !found &amp;&amp; i]]></description>
		<content:encoded><![CDATA[<p>This comment is not directly related to your blog entry.  There is a javascript error on the page that displays the blog.  Here is the code in error:</p>
<p>  for (var i = 0; !exists &amp;&amp; !found &amp;&amp; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Sinke</title>
		<link>http://technology.amis.nl/2006/10/05/getting-rid-of-runaway-temporary-tablespace-8-gb-reclaimed/#comment-3847</link>
		<dc:creator>Patrick Sinke</dc:creator>
		<pubDate>Thu, 05 Oct 2006 14:23:08 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1343#comment-3847</guid>
		<description><![CDATA[I&#039;d take advantage of the opportunity and set the maxsize to one gig or so. Should be more than enough for any demo-database.
Wasn&#039;t there a rumour that in 11g you can shrink temp tablespaces? No luxury at all!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d take advantage of the opportunity and set the maxsize to one gig or so. Should be more than enough for any demo-database.<br />
Wasn&#8217;t there a rumour that in 11g you can shrink temp tablespaces? No luxury at all!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
