Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: TEMP tablespace size in a Data Warehouse

RE: TEMP tablespace size in a Data Warehouse

From: Alex Hillman <alex_hillman_at_physia.com>
Date: Tue, 13 Jun 2000 12:23:32 -0400
Message-Id: <10527.108981@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFD553.B7698330
Content-Type: text/plain;

        charset="iso-8859-1"

Isn't it true that in 8i it if you use estimate Oracle get specified percentage of data randomly and before 8i it took specified percentage of data from the beginning of the table and therefore in 8i we can use smoller percentage with more reliable results?

Alex Hillman

-----Original Message-----
From: Gaja Krishna Vaidyanatha [mailto:gajav_at_yahoo.com] Sent: Tuesday, June 13, 2000 12:38 AM
To: Multiple recipients of list ORACLE-L Subject: Re: TEMP tablespace size in a Data Warehouse

Charlie,

On a 1 TB implementation, we used the "rule of thumb" of (1.5 * size of the largest table) as required temporary tablespace. The database release was in 7.3.4 and 8.0.5. This sizing was done keeping in mind, not only the need for temp segments during application sorts and index creations, but also for the potential need to perform a "full analyze" on the table with the "compute statistics" option. You are aware that a table analyze automatically induces analyze of all the relevant indexes on the said table.

Having said that, it needs to be mentioned here that after a table reaches a certain size threshold (environment-specific but usually in 10s of Gb), it is almost processor/computation prohibitive to do "computes". While 8.0 and above does allow "parallel analyzes" by the use of the dbms_utility. analyze_part_object procedure, the sheer cost of performing a compute is sometimes infeasible.

For most environments "estimates with sample sizes of 16% or above have been known to be statistically adequate". The statistical confidence interval for a 16% sample-size analyze is between 83-91%. I have used a sample size of 20% across the board for the past 5 years and it worked for me. Depending on the degree of skewness in your data, your mileage may vary. But at least you have a number to start with.

If the usual sort-related parameters have been tuned, it is relevant to mention here that the number of tables that are analyzed at a given time, is going to have a direct impact on the size of the temporary tablespace.

Best Regards,

Gaja.

Gaja Krishna Vaidyanatha   | 3460 West Bayshore Road,
Manager - Integration      | Palo Alto, CA 94303
& Consulting Services      | gaja_at_brio.com
Global Alliances           | (650)-565-4442
Brio Technology            | www.brio.com 

"Opinions and views expressed are my own and not of Brio Technology"



Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com
-- 
Author: Gaja Krishna Vaidyanatha
  INET: gajav_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01BFD553.B7698330
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: TEMP tablespace size in a Data Warehouse</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Isn't it true that in 8i it if you use estimate =
Oracle get specified percentage of data randomly and before 8i it took =
specified percentage of data from the beginning of the table and =
therefore in 8i we can use smoller percentage with more reliable =
results?</FONT></P>

<P><FONT SIZE=3D2>Alex Hillman</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Gaja Krishna Vaidyanatha [<A =
HREF=3D"mailto:gajav_at_yahoo.com">mailto:gajav_at_yahoo.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, June 13, 2000 12:38 AM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: Re: TEMP tablespace size in a Data =
Warehouse</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Charlie,</FONT>
</P>

<P><FONT SIZE=3D2>On a 1 TB implementation, we used the &quot;rule of =
thumb&quot; of (1.5 *</FONT>
<BR><FONT SIZE=3D2>size of the largest table) as required temporary =
tablespace. </FONT>
<BR><FONT SIZE=3D2>The database release was in 7.3.4 and 8.0.5.&nbsp; =
This sizing was</FONT>
<BR><FONT SIZE=3D2>done keeping in mind, not only the need for temp =
segments during</FONT>
<BR><FONT SIZE=3D2>application sorts and index creations, but also for =
the</FONT>
<BR><FONT SIZE=3D2>potential need to perform a &quot;full analyze&quot; =
on the table with the</FONT>
<BR><FONT SIZE=3D2>&quot;compute statistics&quot; option.&nbsp; You are =
aware that a table analyze</FONT>
<BR><FONT SIZE=3D2>automatically induces analyze of all the relevant =
indexes on the</FONT>
<BR><FONT SIZE=3D2>said table.</FONT>
</P>

<P><FONT SIZE=3D2>Having said that, it needs to be mentioned here that =
after a</FONT>
<BR><FONT SIZE=3D2>table reaches a certain size threshold =
(environment-specific but</FONT>
<BR><FONT SIZE=3D2>usually in 10s of Gb), it is almost =
processor/computation</FONT>
<BR><FONT SIZE=3D2>prohibitive to do &quot;computes&quot;.&nbsp; While =
8.0 and above does allow</FONT>
<BR><FONT SIZE=3D2>&quot;parallel analyzes&quot; by the use of the =
dbms_utility.</FONT>
<BR><FONT SIZE=3D2>analyze_part_object procedure, the sheer cost of =
performing a</FONT>
<BR><FONT SIZE=3D2>compute is sometimes infeasible.</FONT>
</P>

<P><FONT SIZE=3D2>For most environments &quot;estimates with sample =
sizes of 16% or</FONT>
<BR><FONT SIZE=3D2>above have been known to be statistically =
adequate&quot;.&nbsp; The</FONT>
<BR><FONT SIZE=3D2>statistical confidence interval for a 16% =
sample-size analyze is</FONT>
<BR><FONT SIZE=3D2>between 83-91%.&nbsp; I have used a sample size of =
20% across the</FONT>
<BR><FONT SIZE=3D2>board for the past 5 years and it worked for =
me.&nbsp; Depending on</FONT>
<BR><FONT SIZE=3D2>the degree of skewness in your data, your mileage =
may vary.&nbsp; But</FONT>
<BR><FONT SIZE=3D2>at least you have a number to start with.</FONT>
</P>

<P><FONT SIZE=3D2>If the usual sort-related parameters have been tuned, =
it is</FONT>
<BR><FONT SIZE=3D2>relevant to mention here that the number of tables =
that are</FONT>
<BR><FONT SIZE=3D2>analyzed at a given time, is going to have a direct =
impact on</FONT>
<BR><FONT SIZE=3D2>the size of the temporary tablespace.</FONT>
</P>

<P><FONT SIZE=3D2>Best Regards,</FONT>
</P>

<P><FONT SIZE=3D2>Gaja.</FONT>
</P>

<P><FONT SIZE=3D2>--- Charlie Mengler &lt;charliem_at_mwh.com&gt; =
wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Is there any &quot;rule of thumb&quot; that can =
be used to guesstimate</FONT>
<BR><FONT SIZE=3D2>&gt; the appropriate size</FONT>
<BR><FONT SIZE=3D2>&gt; of the TEMP tablespace in a data warehouse =
instance? For</FONT>
<BR><FONT SIZE=3D2>&gt; example </FONT>
<BR><FONT SIZE=3D2>&gt; XXX% of total size or </FONT>
<BR><FONT SIZE=3D2>&gt; TEMP should be 1.YY * the size of the largest =
table or </FONT>
<BR><FONT SIZE=3D2>&gt; TEMP should be 1.ZZ * the size of the largest =
index or </FONT>
<BR><FONT SIZE=3D2>&gt; ??????</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Along these lines what can be done to minimize =
or reduce the</FONT>
<BR><FONT SIZE=3D2>&gt; amount of TEMP </FONT>
<BR><FONT SIZE=3D2>&gt; that is needed &amp; what are the trade-offs =
involved. (This is</FONT>
<BR><FONT SIZE=3D2>&gt; beside the &quot;obvious&quot;</FONT>
<BR><FONT SIZE=3D2>&gt; response WRT to sorts &amp; Sort Area =
Size.)</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Charlie =
Mengler&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Maintenance</FONT>
<BR><FONT SIZE=3D2>&gt; Warehouse&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; =
charliem_at_mwh.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5505 Morehouse</FONT>
<BR><FONT SIZE=3D2>&gt; Drive&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; =
858-552-6229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; San =
Diego, CA</FONT>
<BR><FONT SIZE=3D2>&gt; 92121&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; Always be sincere about your enthusiasm, =
whether you mean it</FONT>
<BR><FONT SIZE=3D2>&gt; or not.</FONT>
<BR><FONT SIZE=3D2>&gt; -- </FONT>
<BR><FONT SIZE=3D2>&gt; Author: Charlie Mengler</FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; INET: charliem_at_mwh.com</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
(858) 538-5051&nbsp; FAX: (858)</FONT>
<BR><FONT SIZE=3D2>&gt; 538-5051</FONT>
<BR><FONT SIZE=3D2>&gt; San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access /</FONT>
<BR><FONT SIZE=3D2>&gt; Mailing Lists</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>&gt; To REMOVE yourself from this mailing list, send =
an E-Mail</FONT>
<BR><FONT SIZE=3D2>&gt; message</FONT>
<BR><FONT SIZE=3D2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling =
of 'ListGuru')</FONT>
<BR><FONT SIZE=3D2>&gt; and in</FONT>
<BR><FONT SIZE=3D2>&gt; the message BODY, include a line containing: =
UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2>&gt; (or the name of mailing list you want to be =
removed from). </FONT>
<BR><FONT SIZE=3D2>&gt; You may</FONT>
<BR><FONT SIZE=3D2>&gt; also send the HELP command for other =
information (like</FONT>
<BR><FONT SIZE=3D2>subscribing).</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>=3D=3D=3D=3D=3D</FONT>
<BR><FONT SIZE=3D2>Gaja Krishna Vaidyanatha&nbsp;&nbsp; | 3460 West =
Bayshore Road,</FONT>
<BR><FONT SIZE=3D2>Manager - Integration&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
| Palo Alto, CA 94303</FONT>
<BR><FONT SIZE=3D2>&amp; Consulting =
Services&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | gaja_at_brio.com</FONT>
<BR><FONT SIZE=3D2>Global =
Alliances&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | =
(650)-565-4442</FONT>
<BR><FONT SIZE=3D2>Brio =
Technology&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; | www.brio.com </FONT>
</P>

<P><FONT SIZE=3D2>&quot;Opinions and views expressed are my own and not =
of Brio Technology&quot;</FONT>
</P>

<P><FONT =
SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do You Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! Photos -- now, 100 FREE prints!</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://photos.yahoo.com" =
TARGET=3D"_blank">http://photos.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Gaja Krishna Vaidyanatha</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: gajav_at_yahoo.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- (858) =
538-5051&nbsp; FAX: (858) 538-5051</FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet =
access / Mailing Lists</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
-----</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru_at_fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
Received on Tue Jun 13 2000 - 11:23:32 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US