Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: TEMP Tablespace
This is a multi-part message in MIME format.
------=_NextPart_000_00E4_01C05D20.A17C7A00 Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
RE: TEMP TablespaceThe result is in bytes - the PHYBLKWRT which is in = blocks is mutiplied by the block size taken from v$parameter.
One further comment - this query assumes that all the users are set so = that their default temporary tablespace is TEMP.
Djordje
Hi Djordje,=20
Thanks for sending this to the list. The result is in db blocks, = isn't it?=20
Lisa Rutland Koivu=20
Oracle Database Administrator=20
Qode.com=20
4850 North State Road 7=20
Suite G104=20
Fort Lauderdale, FL 33319=20
V: 954.484.3191, x174=20 F: 954.484.2933=20 C: 954.658.5849=20
"The information contained herein does not express the opinion or = position of Qode.com and cannot be attributed to or made binding upon = Qode.com."
-----Original Message-----=20
From: djordjej [mailto:djordjej_at_home.com]=20
Sent: Wednesday, November 29, 2000 6:50 PM=20
To: Multiple recipients of list ORACLE-L=20
Subject: Re: TEMP Tablespace=20
The size on INITIAL and NEXT for the TEMP tablespace should be the =
same, and=20
should be N*SORT_AREA_SIZE+DB_BLOCK_SIZE, and PCTINCRESE should be 0. =
The N=20
from above is usually 3 (to be able to accomodate three contents of =
the sort=20
memory area), but it depends on the average number of sort runs (merge =
phases) in your sorts. So if you have huge sorts with a lot of sort =
runs=20
you would like to have N larger but if you have a large number of =
sorts that=20
run concurrently are each not that large, you would like to go with =
larger=20
number of smaller sort segments.=20
The size of the average sort you can find from the query:=20
select sum(fs.PHYBLKWRT)*p.value/s.value=20 from v$filestat fs=20
, v$datafile f=20 , v$tablespace t=20 , v$parameter p=20 , v$sysstat s=20 where f.file# =3D fs.file#=20 and f.ts# =3D t.ts#=20 and t.name =3D 'TEMP'=20 and p.name=3D'db_block_size'=20 and s.name =3D 'sorts (disk)'=20
HTH=20 Djordje=20
> Really, I didn't work with such a big temp tablespace, but=20 > I recommend you creating it as a temporary tablespace because oracle =
behaves different for allocating sort extents at temporary = tablespaces.=20
> Good luck.=20 >=20 >=20 >=20 > On Wed, 29 Nov 2000 07:30:32 -0800 "Charlie Mengler" =
> > Oracle V7.3.4.3 on Solaris V2.6=20 > >=20 > > The volume of data I'm required to support has just increased=20significantly.=20
> > index creation on a new LARGE table. TEMP is/was configured as -=20 > >=20 > >=20 > > SQL> select * from dba_tablespaces where tablespace_name =3D ='TEMP';=20
> > TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT =MIN_EXTENTS=20
> ------------------------------ -------------- ----------- =----------- ----=20
> To REMOVE yourself from this mailing list, send an E-Mail message=20 > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in=20 > the message BODY, include a line containing: UNSUB ORACLE-L=20 > (or the name of mailing list you want to be removed from). You may=20 > also send the HELP command for other information (like subscribing). =
--=20
Please see the official ORACLE-L FAQ: http://www.orafaq.com=20
--=20
Author: djordjej=20
INET: djordjej_at_home.com=20
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051=20 San Diego, California -- Public Internet access / Mailing Lists =
--------------------------------------------------------------------=20To REMOVE yourself from this mailing list, send an E-Mail message=20 to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in=20 the message BODY, include a line containing: UNSUB ORACLE-L=20 (or the name of mailing list you want to be removed from). You may=20 also send the HELP command for other information (like subscribing).=20
------=_NextPart_000_00E4_01C05D20.A17C7A00 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RE: TEMP Tablespace</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>The result is in bytes - the PHYBLKWRT =
which is in=20
blocks is mutiplied by the block size taken from =
v$parameter.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>One further comment - this query =
assumes that all=20
the users are set so that their default temporary tablespace is=20
TEMP.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Djordje</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A href=3D"mailto:lkoivu_at_qode.com" title=3Dlkoivu_at_qode.com>Koivu, =
Lisa</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
href=3D"mailto:ORACLE-L_at_fatcity.com"=20
title=3DORACLE-L_at_fatcity.com>Multiple recipients of list ORACLE-L</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, November 30, =
2000 7:45=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: TEMP =
Tablespace</DIV>
<DIV><BR></DIV> <P><FONT size=3D2>Hi Djordje, </FONT></P> <P><FONT size=3D2>Thanks for sending this to the list. The =result is in db=20
href=3D"http://www.qode.com" =
target=3D_blank>http://www.qode.com</A></FONT> </P>
<P><FONT size=3D2>"The information contained herein does not express =
the opinion=20
or position of Qode.com and cannot be attributed to or made binding =
upon=20
Qode.com."</FONT></P><BR>
<P><FONT size=3D2>-----Original Message-----</FONT> <BR><FONT =
size=3D2>From:=20
djordjej [<A=20
href=3D"mailto:djordjej_at_home.com">mailto:djordjej_at_home.com</A>]</FONT> =
<BR><FONT=20
size=3D2>Sent: Wednesday, November 29, 2000 6:50 PM</FONT> <BR><FONT =
size=3D2>To:=20
Multiple recipients of list ORACLE-L</FONT> <BR><FONT =
size=3D2>Subject: Re: TEMP=20
Tablespace</FONT> </P><BR>
<P><FONT size=3D2>The size on INITIAL and NEXT for the TEMP tablespace =
should be=20
the same, and</FONT> <BR><FONT size=3D2>should be=20
N*SORT_AREA_SIZE+DB_BLOCK_SIZE, and PCTINCRESE should be 0. The =
N</FONT>=20
<BR><FONT size=3D2>from above is usually 3 (to be able to accomodate =
three=20
contents of the sort</FONT> <BR><FONT size=3D2>memory area), but it =
depends on=20
the average number of sort runs (merge</FONT> <BR><FONT =
size=3D2>phases) in your=20
sorts. So if you have huge sorts with a lot of sort runs</FONT>=20
<BR><FONT size=3D2>you would like to have N larger but if you have a =
large=20
number of sorts that</FONT> <BR><FONT size=3D2>run concurrently are =
each not=20
that large, you would like to go with larger</FONT> <BR><FONT =
size=3D2>number of=20
smaller sort segments.</FONT> </P>
<P><FONT size=3D2>The size of the average sort you can find from the=20 query:</FONT> </P> <P><FONT size=3D2>select sum(fs.PHYBLKWRT)*p.value/s.value</FONT> =
<P><FONT size=3D2>HTH</FONT> </P> <P><FONT size=3D2>Djordje</FONT> </P> <P><FONT size=3D2>----- Original Message -----</FONT> <BR><FONT =size=3D2>To:=20
size=3D2>> Good luck.</FONT> <BR><FONT size=3D2>></FONT> =
<BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>></FONT> <BR><FONT =
size=3D2>> On Wed,=20
29 Nov 2000 07:30:32 -0800 "Charlie Mengler" =
<charliem_at_mwh.com></FONT>=20
<BR><FONT size=3D2>wrote:</FONT> <BR><FONT size=3D2>> > Oracle =
V7.3.4.3 on=20
Solaris V2.6</FONT> <BR><FONT size=3D2>> ></FONT> <BR><FONT =
size=3D2>>=20
> The volume of data I'm required to support has just =
increased</FONT>=20
<BR><FONT size=3D2>significantly.</FONT> <BR><FONT size=3D2>> > =
I've been=20
force to increase the size of TEMP to around 16GB to support</FONT> =
<BR><FONT=20
size=3D2>> > index creation on a new LARGE table. TEMP is/was =
configured=20
as -</FONT> <BR><FONT size=3D2>> ></FONT> <BR><FONT =
size=3D2>>=20
></FONT> <BR><FONT size=3D2>> > SQL> select * from =
dba_tablespaces=20
where tablespace_name =3D 'TEMP';</FONT> <BR><FONT size=3D2>> =
></FONT>=20
<BR><FONT size=3D2>> >=20
=
TABLESPACE_NAME &nbs=
p; =20
INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS</FONT> <BR><FONT =
size=3D2>MAX_EXTENTS=20
PCT_INCREASE STATUS CONTENTS</FONT> <BR><FONT=20
size=3D2>></FONT> <BR><FONT size=3D2>> =
------------------------------=20 -------------- ----------- ----------- ----</FONT> <BR><FONT =size=3D2>-------=20
from). You may</FONT> <BR><FONT size=3D2>> > also send the =
HELP=20
command for other information (like subscribing).</FONT> <BR><FONT =
size=3D2>>=20
--</FONT> <BR><FONT size=3D2>> Please see the official ORACLE-L =
FAQ: <A=20
href=3D"http://www.orafaq.com" =
target=3D_blank>http://www.orafaq.com</A></FONT>=20
<BR><FONT size=3D2>> --</FONT> <BR><FONT size=3D2>> Author: =
Emine=20
ATES</FONT> <BR><FONT size=3D2>> INET:=20
emineates_at_postmaster.co.uk</FONT> <BR><FONT size=3D2>></FONT> =
<BR><FONT=20
size=3D2>> Fat City Network Services -- (858)=20
538-5051 FAX: (858) 538-5051</FONT> <BR><FONT size=3D2>> San =
Diego,=20
California -- Public =
Internet access=20
/ Mailing Lists</FONT> <BR><FONT size=3D2>>=20
=
--------------------------------------------------------------------</FON=T>=20
</FONT><BR><FONT size=3D2>Author: djordjej</FONT> <BR><FONT =
size=3D2> INET:=20
djordjej_at_home.com</FONT> </P>
<P><FONT size=3D2>Fat City Network Services -- (858) =
538-5051 FAX: (858) 538-5051</FONT> <BR><FONT size=3D2>San =
Diego,=20
California -- Public =
Internet access=20
/ Mailing Lists</FONT> <BR><FONT=20
=
size=3D2>----------------------------------------------------------------=----</FONT>=20
![]() |
![]() |