Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Newbie question: Should a table/index ideally always be in a single extent ?
I will shortly try to tune my first database, and I have some
questions about the extremely common advise to size a table or
index so that it fits in one extent for the foreseable future.
As far as I understand, the arguments for this advise are :
Is this correct ? Are there other arguments I am not aware of ?
However, I have some concerns with such a sizing :
Therefore, I though of the following :
It seems to me that this setup meets argument 1. Extension occurs rarely.
It meets argument 2. A given tablespace contains all blocks and only blocks of a given table, is breaked downed in equal-sized extents, and has a near-optimal size. The corresponding datafile is contiguous on disk. There is therefore no more fragmentation than with the more traditionnal setup of having the 15 tables stored each in a unique extent in a big tablespace.
It meets my concerns : Tablespaces automatically adapt to the growth. There is no need for a reorganization at the Oracle level, as it occurs at the OS (NT) level by defragmenting the datafiles.
Am I missing something ? Do you see there problems with this setup ? Should I activate CKPT - whose responsability I do not understand well right now - as I'll have many datafiles ?
I realize this setup is not applicable as it is to indexes.
Thanks in advance for your comments.