Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Increase tablespace, which way is better?
This is a multi-part message in MIME format.
------=_NextPart_000_0086_01C34EFE.98458B20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi!
Also, there is (or was?) a tradeoff between size and number of = datafiles.
Before 8i, if I recall correctly, all datafile headers had to be = physically visited (header SCN changes were written) before a checkpoint = could finish. If you got thousands of files, this adds significant = overhead. Starting from 8i you actually have to do same thing, but with = incremenal checkpointing, the datafile headers are updated in groups, = thus distributing the jump in IO load over longer period of time.=20
In 6.0, I believe there was no checkpoint process and logwriter was the = one responsible updating all file headers. When log buffer was full, all = transactions were halt. Others can comment it, because I haven't worked = with O 6.
Another thing with datafile sizes was recovery in case of corrupt block = - it's faster to restore and recover a 1GB file than a 10GB file, but = with 9i RMAN block level recovery this problem is relieved as well.
And last, a lot of people have had problems with file sizes over 2GB, = even in last few years. Some filesystems simply didn't support files = over 2GB, others could corrupt the whole file when extended over 2GB = (8.1.5 on linux for example). That's why sizes like 1G or 2040 MB were = used a lot (by me;)
Tanel.
"Liu, Jack" <jliu_at_atla.com> wrote:
Hi,=20 I want to increase tablespace, just want to know which way is = better: 1. ALTER TABLESPACE SYSTEM ADD DATAFILE '/u01/oradata/orcl/users02.dbf' SIZE 1M AUTOEXTEND ON NEXT 1M MAXSIZE 100M; 2.alter tablespace system add datafile ='/u01/oradata/orcl/users02.dbf' size 100m;
Thanks,
Jack=20
-------------------------------------------------------------------------=
---
Yahoo! Mobile
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; =charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD> <BODY bgColor=3D#e0e0e0> <DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Also, there is (or was?) a tradeoff =between size=20
</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>In 6.0, I believe there was no =checkpoint process=20
well.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>And last, a lot of people have had =problems with=20
<DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Tanel.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <BLOCKQUOTE dir=3Dltr=20
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff =
2px solid; WIDTH: 100%">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR> <STYLE></STYLE> <DIV><FONT face=3D"Times New Roman" color=3D#0000ff>Hi, <BR>I want = to increase=20 tablespace, just want to know which way is better:<BR>1. ALTER = TABLESPACE=20 SYSTEM<BR>ADD DATAFILE '/u01/oradata/orcl/users02.dbf'<BR>SIZE=20 1M<BR>AUTOEXTEND ON<BR>NEXT 1M<BR>MAXSIZE 100M;</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3D"Times New Roman" color=3D#0000ff>2.alter = tablespace system=20 add datafile '/u01/oradata/orcl/users02.dbf' size = 100m;</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3D"Times New Roman" = color=3D#0000ff>Thanks,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3D"Times New Roman"><FONT = color=3D#0000ff>Jack<SPAN=20 class=3D380473019-18072003> </SPAN></FONT></FONT></DIV> <DIV><FONT face=3D"Times New Roman"><FONT color=3D#0000ff><SPAN=20 =
<P><BR> <HR SIZE=3D1> <A=20
target=3D_blank><B>Yahoo! Mobile</B></A><BR>- Check & compose = Received on Sun Jul 20 2003 - 12:36:27 CDT
![]() |
![]() |