extent的概念

有的时候读一读concept陶冶一下情操,还是有益处的,平时和Oracle打交道打多了,偶尔我们都会忽略一些最最基本的概念。做为技术人员,需要有一种知其然而且要知其所以然的精神,在我们不断往前走的时候,还是应该停下来休息一会多巩固一下基础,基础真的很重要。

An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.
(可以知道的是一个区中的blocks都是相邻的)

The level of logical database storage above an extent is called a segment. A segment is a set of extents, each of which has been allocated for a specific data structure and all of which are stored in the same tablespace. For example, each table's data is stored in its own data segment, while each index's data is stored in its own index segment. If the table or index is partitioned, each partition is stored in its own segment.
(一个段当然是一系列的extent组成,并且都是存在于一个表空间中)

Oracle allocates space for segments in units of one extent. When the existing extents of a segment are full, Oracle allocates another extent for that segment. Because extents are allocated as needed, the extents of a segment may or may not be contiguous on disk.
(段分配空间的单元就是extent,因为extent是按需分配,因此段中的extent在磁盘上不可能也可能是连续的)

A segment and all its extents are stored in one tablespace. Within a tablespace, a segment can include extents from more than one file; that is, the segment can span datafiles. However, each extent can contain data from only one datafile.
(段和extent都一定是存储在一个表空间中,而一个表空间由多个数据文件组成,而且段中所分配的extent是可以来自表空间中不同的数据文件,因此段是可以跨越数据文件的,而extent只能在一个数据文件中,不能跨越数据文件)

Although you can allocate additional extents, the blocks themselves are allocated separately. If you allocate an extent to a specific instance, the blocks are immediately allocated to the free list. However, if the extent is not allocated to a specific instance, then the blocks themselves are allocated only when the high water mark moves. The high water mark is the boundary between used and unused space in a segment.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12361284/viewspace-119541/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12361284/viewspace-119541/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值