标志的概念:Oracle高水位标志的概念

="t18"> 有关Oracle数据库概念性知识 Oracle高水位标志:    high-water mark
可以用以下几点对high-water mark进行理解
1.指个表中曾经被用过最后个块
2.假如有数据被插入表high-water mark 就移到到被使用最后个块
3.假如有数据被删除high-water mark位置不会变
4.high-water mark被储存在表段头(segment header of the table)
5.当对表执行全表扫描时oracle server 被所有块直到high-water mark

另外我理解如下,
1 假如为表分配了大量extents , 但这些extent 还没使用可以手工收回并且有如下两种情况
种 minextent <hwm可以使用
alter table tablename deallocate unused;
将hwm以上所有没使用空间释放
第 2种 minextent >hwm 则释放minextents 以上空间
假如要释放hwm以上空间则使用keep 0
alter table tablesname deallocate unused keep 0;
2 truncate table命令可以将minextent 的上空间完全释放
3 只是将hwm移动释放空间不会被其他段使用--    
Tags:  标志概念 标志设计概念 标志概念车 标志的概念

延伸阅读

最新评论

发表评论