索引问题

[复制链接]
查看11 | 回复7 | 2014-8-8 06:00:12 | 显示全部楼层 |阅读模式
请教在重建索引的时候和创建索引的时候storage(initial XXX next XXX)的这个值如何设置?

回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
INITIAL
Specify the size of the first extent of the object. Oracle allocates space for this extent when you create the schema object. Please refer to size_clause for information on that clause.
The default value is the size of 5 data blocks. In tablespaces with manual segment-space management, the minimum value is the size of 2 data blocks plus one data block for each free list group you specify. In tablespaces with automatic segment-space management, the minimum value is 5 data blocks. The maximum value depends on your operating system. Please refer to FREELIST GROUPS for information on freelist groups for more information.
In dictionary-managed tablespaces, if MINIMUM EXTENT was specified for the tablespace when it was created, then Oracle rounds the value of INITIAL up to the specified MINIMUM EXTENT size if necessary. If MINIMUM EXTENT was not specified, then Oracle rounds the INITIAL extent size for segments created in that tablespace up to the minimum value (see preceding paragraph), or to multiples of 5 blocks if the requested size is greater than 5 blocks.
In locally managed tablespaces, Oracle uses the value of INITIAL in conjunction with the size of extents specified for the tablespace to determine the first extent of the object. For example, in a uniform locally managed tablespace with 5M extents, if you specify an INITIAL value of 1M, then Oracle creates five 1M extents.
Restriction on INITIAL You cannot specify INITIAL in an ALTER statement.
NEXT
Specify in bytes the size of the next extent to be allocated to the object. Please refer to size_clause for information on that clause.
The default value is the size of 5 data blocks. The minimum value is the size of 1 data block. The maximum value depends on your operating system. Oracle rounds values up to the next multiple of the data block size for values less than 5 data blocks. For values greater than 5 data blocks, Oracle rounds up to a value that minimizes fragmentation, as described in Oracle Database Administrator's Guide.
If you change the value of the NEXT parameter (that is, if you specify it in an ALTER statement), then the next allocated extent will have the specified size, regardless of the size of the most recently allocated extent and the value of the PCTINCREASE parameter.
回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
默认就好
回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
二楼


回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
oracle_cj 发表于 2014-9-10 21:33
默认就好

谢谢!!!
回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
renjixinchina 发表于 2014-9-10 19:32
INITIAL
Specify the size of the first extent of the object. Oracle allocates space for this exten ...

谢谢!!!
回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
LOCAL管理的表空间,INIT有用 NEXT无用。如果你INIT 给100M 他也不会真的给你一个100M的EXTENT,而会分为多个EXTENT,8BLOCKS...128blocks.....1024blocks
回复

使用道具 举报

千问 | 2014-8-8 06:00:12 | 显示全部楼层
gaopengtttt 发表于 2014-9-11 11:14
LOCAL管理的表空间,INIT有用 NEXT无用。如果你INIT 给100M 他也不会真的给你一个100M的EXTENT,而会分为多 ...

哦谢谢了。是按块的比例递增然后增到一定份上就一直保定在那个数了吧?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行