temp tablespace blow up 2007-08-14 - By Lyall Barbour
Back OK, that all makes sense, now i have another question. What should the pctincrease be for a Temporary tablespace? In database creation scripts i've seen from Oracle, Rollback, Temp and User tablespaces are all set to 0. If the temp tablespace is going to grow quickly, it's because of some (or somessss) query that need to run through a lot of rows, right? Wouldn't you want as few extents in the temp tablespace as possible if this is going to happy? Why not make the TEMP tablespace one big extent? Lyall
-- -- Original Message -- -- From: "Bobak, Mark" To: alvaro.fernandez@(protected), lyallbarbour@(protected) Subject: RE: temp tablespace blow up Date: Tue, 14 Aug 2007 16:46:42 -0400
A tempfile is not just another datafile. For one thing, it?s initially sparse. For another, a tempfile tablespace does not need to be backed up, and at recovery time, is simply (and quickly) recreated.
For a good summary of the different possible types of temporary tablespaces, see this URL:
http://www.ixora.com.au/newsletter/2001_06.htm#temp
Yes, it?s dated, but it?s still accurate.
-Mark
-- Mark J. Bobak Senior Database Administrator, System & Product Technologies ProQuest 789 E. Eisenhower, Parkway, P.O. Box 1346 Ann Arbor MI 48106-1346 +1.734.997.4059 or +1.800.521.0600 x 4059 mark.bobak@(protected) www.proquest.com www.csa.com
ProQuest...Start here.
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of Alvaro Jose Fernandez Sent: Tuesday, August 14, 2007 2:56 PM To: lyallbarbour@(protected) Cc: oracle-l@(protected) Subject: RE: temp tablespace blow up
Just a dbfile like the others.
Just curious, which Oracle release you run? 8i?
Alvaro
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
De: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] En nombre de Lyall Barbour Enviado el: martes, 14 de agosto de 2007 20:18 Para: oracle-l@(protected) Asunto: Re: temp tablespace blow up
just ran an update that had some stupid huge joins and couldn't allocate anymore extents because the 4gb of datafiles were too small. So my update errored. then, no problem still, just that my temp tablespace had an enormous amount of extents. So, i dropped it when users were off and recreated it as TEMPORARY. I've been reading about temporary tablespaces:
CREATE TEMPORARY TABLESPACE blah TEMPFILE '/d01/oradata/PROD/blah.dbf' size 1000M;
-- We've Got Your Name at http://www.mail.com ! Get a FREE E-mail Account Today - Choose From 100+ Domains
<DIV>OK, that all makes sense, now i have another question. What should the pctincrease be for a Temporary tablespace? In database creation scripts i've seen from Oracle, Rollback, Temp and User tablespaces are all set to 0.</DIV> <DIV> </DIV> <DIV>If the temp tablespace is going to grow quickly, it's because of some (or somessss) query that need to run through a lot of rows, right? Wouldn't you want as few extents in the temp tablespace as possible if this is going to happy? Why not make the TEMP tablespace one big extent?</DIV> <DIV> </DIV> <DIV>Lyall<BR></DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-- -- Original Message -- --<BR>From: "Bobak, Mark" <MARK.BOBAK@(protected) .PROQUEST.COM><BR>To: alvaro.fernandez@(protected), lyallbarbour@(protected) <BR>Subject: RE: temp tablespace blow up<BR>Date: Tue, 14 Aug 2007 16:46:42 -0400<BR><BR> <META content="Microsoft Word 12 (filtered medium)" name=Generator> <DIV class=Section1> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;>A tempfile is not just another datafile. For one thing, it?s initially sparse. For another, a tempfile tablespace does not need to be backed up, and at recovery time, is simply (and quickly) recreated.< ?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;>For a good summary of the different possible types of temporary tablespaces, see this URL:<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><A href="http://www.ixora.com.au/newsletter/2001_06.htm #temp">http://www.ixora.com.au/newsletter/2001_06.htm#temp</A><o:p></o:p></SPAN> </P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;>Yes, it?s dated, but it?s still accurate.<o:p></o:p>< /SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;>-Mark<o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P> <DIV> <P class=MsoNormal><B><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " color: #1F497D? Arial?,?sans-serif?;>--<BR>Mark J. Bobak</SPAN></B><SPAN style="FONT -SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><BR></SPAN><B> <SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " color:#1F497D? Arial?,?sans-serif? ;>Senior Database Administrator, System & Product Technologies</SPAN></B> <SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans-serif?;color:#1F497D ?><BR></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " color:#1F497D? Arial? ,?sans-serif?;>ProQuest</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color :#1F497D? Calibri?,?sans-serif?;><BR></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT -FAMILY: " color:#1F497D? Arial?,?sans-serif?;>789 E. Eisenhower, Parkway, P.O. Box 1346</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans -serif?;color:#1F497D?><BR></SPAN><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " color:#1F497D? Arial?,?sans-serif?;>Ann Arbor MI 48106-1346</SPAN><SPAN style= "FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans-serif?;color:#1F497D?><BR></SPAN ><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " color:#1F497D? Arial?,?sans-serif ?;>+1.734.997.4059 or +1.800.521.0600 x 4059</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans-serif?;color:#1F497D?><BR><A href="mailto :mark.bobak@(protected)"><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " Arial ?,?sans-serif??>mark.bobak@(protected)</SPAN></A><BR><A href="http://www .proquest.com"><SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: " Arial?,?sans-serif? ?>www.proquest.com</SPAN></A><BR><A href="http://www.csa.com"><SPAN style="FONT -SIZE: 7.5pt; FONT-FAMILY: " Arial?,?sans-serif??>www.csa.com</SPAN></A><BR><BR> </SPAN><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: " color:#1F497D? Arial?, ?sans-serif?;>ProQuest...</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?,?sans-serif?;color:#1F497D?>Start here.</SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans-serif?;color:#1F497D?> </SPAN><SPAN style= "FONT-SIZE: 11pt; FONT-FAMILY: " Calibri?,?sans-serif?;color:#1F497D?><o:p></o:p ></SPAN></P></DIV> <P class=MsoNormal><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: " color:#1F497D? Calibri?,?sans-serif?;><o:p> </o:p></SPAN></P> <DIV> <DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none"> <P class=MsoNormal><B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?, ?sans-serif??>From:</SPAN></B><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?,?sans-serif??> oracle-l-bounce@(protected) [mailto:oracle-l-bounce @(protected)] <B>On Behalf Of </B>Alvaro Jose Fernandez<BR><B>Sent:</B> Tuesday, August 14, 2007 2:56 PM<BR><B>To:</B> lyallbarbour@(protected)<BR> <B>Cc:</B> oracle-l@(protected)<BR><B>Subject:</B> RE: temp tablespace blow up <o:p></o:p></SPAN></P></DIV></DIV> <P class=MsoNormal><o:p> </o:p></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?>Just a dbfile like the others. <o:p></o:p></SPAN></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?>Just curious, which Oracle release you run? 8i? <o:p>< /o:p></SPAN></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?><o:p> </o:p></SPAN></P> <P class=MsoNormal><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Arial?, ?sans-serif?; color:navy?>Alvaro<o:p></o:p></SPAN></P> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN lang=ES> <HR align=center width="100%" SIZE=2> </SPAN></DIV> <P class=MsoNormal><B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT-FAMILY: " Tahoma?,?sans-serif??>De:</SPAN></B><SPAN lang=ES style="FONT-SIZE: 10pt; FONT -FAMILY: " Tahoma?,?sans-serif??> oracle-l-bounce@(protected) [mailto:oracle-l -bounce@(protected)] <B>En nombre de </B>Lyall Barbour<BR><B>Enviado el:</B> martes, 14 de agosto de 2007 20:18<BR><B>Para:</B> oracle-l@(protected)<BR><B >Asunto:</B> Re: temp tablespace blow up</SPAN><SPAN lang=ES><o:p></o:p></SPAN>< /P></DIV> <P class=MsoNormal><SPAN lang=ES><o:p> </o:p></SPAN></P> <DIV> <P class=MsoNormal><SPAN lang=ES>just ran an update that had some stupid huge joins and couldn't allocate anymore extents because the 4gb of datafiles  ;were too small. So my update errored. then, no problem still, just that my temp tablespace had an enormous amount of extents. So, i dropped it when users were off and recreated it as TEMPORARY. I've been reading about temporary tablespaces:<o:p></o:p></SPAN></P></DIV> <DIV> <P class=MsoNormal><SPAN lang=ES>CREATE TEMPORARY TABLESPACE blah TEMPFILE ' /d01/oradata/PROD/blah.dbf' size 1000M;<o:p></o:p></SPAN></P></DIV> <DIV> <P class=MsoNormal><SPAN lang=ES> <o:p></o:p></SPAN></P></DIV></DIV>< /BLOCKQUOTE><BR>
-- <div>We've Got Your Name at <a href="http://www.mail.com/?utm_source=mail_sent _footer&utm_medium=email&utm_term=070621&utm_content=textlink&utm_campaign=we _got_your_name"target="_blank">Mail.com</a><br> Get a <b>FREE</b> E-mail Account Today - Choose From 100+ Domains</div>
|
|