LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1073|回复: 1

alter table参数问题

[复制链接]
发表于 2006-5-25 09:44:59 | 显示全部楼层 |阅读模式
ALTER TABLE BIGTAB DEALLOCATE UNUSED KEEP 1707M

deallocate unused keep 这个参数是什么意思


谢谢
发表于 2006-5-25 10:16:37 | 显示全部楼层
deallocate 是和allocate对应的
allocate是给某个segment分配extent,这里表也是一种segment
deallocate对应的就是回收分配了的extent
unused keep最简单的理解,就是回收不用的空间但保留多少
下面的是最官方的解释:
KEEP integer
Specify the number of bytes above the high water mark that the segment of the database object is to have after deallocation.

If you omit KEEP and the high water mark is above the size of INITIAL and MINEXTENTS, then all unused space above the high water mark is freed. When the high water mark is less than the size of INITIAL or MINEXTENTS, then all unused space above MINEXTENTS is freed.
If you specify KEEP, then the specified amount of space is kept and the remaining space is freed. When the remaining number of extents is less than MINEXTENTS, then MINEXTENTS is adjusted to the new number of extents. If the initial extent becomes smaller than INITIAL, then INITIAL is adjusted to the new size.
In either case, Oracle sets the value of the NEXT storage parameter to the size of the last extent that was deallocated.
回复 支持 反对

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表