why does oracle need EXTENTS? [message #226615] |
Sun, 25 March 2007 22:25 |
kssarayu
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
hi,
I want to know why oracle really has a concept called EXTENTS
I know that
---> Block is the lowest storage unit
---> EXTENT Is collection of contiguous Blocks
---> SEGMENT has EXTENTS
---> TABLESPACE will consists different SEGMENTS
My doubt is, what is the real need of EXTENTS? Why can't we talk directly in number of blocks for segments instead of extents?
Was EXTENT used because it represents contiguous blocks or is there any other reason.
Thanks in advance.
Regards,
Sarayu K.S.
|
|
|
|
Re: why does oracle need EXTENTS? [message #226617 is a reply to message #226615] |
Sun, 25 March 2007 22:42 |
nmacdannald
Messages: 460 Registered: July 2005 Location: Stockton, California - US...
|
Senior Member |
|
|
When a tablespace fills up it allocates another extent. The extent must be a contiguous number of disk blocks.
Oracle wants to talk to the data and having extents lets it do that regardless of the o/s block size or o/s type. Same thing with tablespaces. Think kernel and schell.
There are usually two reasons Oracle does things in a certain way:
1) To make the db correct.
2) To make the db fast.
[Updated on: Sun, 25 March 2007 22:47] Report message to a moderator
|
|
|
Re: why does oracle need EXTENTS? [message #226618 is a reply to message #226615] |
Sun, 25 March 2007 22:46 |
kssarayu
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
Thanks anacedent for your quick reply.
I have two points to mention.
1) For beginners, who read the oracle documentation, we may have some doubts which we want to get clarified. We choose forums like orafaq.com, because we get quick replies from experts in oracle.
Even if someone posts incorrect responses, i strongly beleive there are many experts who can correct them.
2) I did go through the documentation and thats how i gave some information on whatever i know.
|
|
|
|
|
|