Chinaunix
标题:
什么是 "high-water mark"
[打印本页]
作者:
a9711
时间:
2003-06-27 08:56
标题:
什么是 "high-water mark"
书中说:
truncate table order reuse storage
可以keep the storage,remove all rows,reset the high-water mark,and commit the change
请问其中的high-water mark是什么意思??
作者:
rollingpig
时间:
2003-06-27 10:10
标题:
什么是 "high-water mark"
我的理解
high-water mark是一个标记
他标记了某个table/patition的某一边界
当oracle作full-table-scan时
他会把从table/patition的开始部位到high-water mark的数据块都读一遍
当我们使用delete 语句时
high-water mark不会改变
这使我们做full-table-scan的性能不能提高
而使用truncate,他会重新设置high-water mark
从而使full-table-scan的性能得到提高
好像oracle理由一个语句可以驱使oracle去重新定位一个table的high-water mark,但是忘了,你可以在google上找找!!
作者:
a9711
时间:
2003-06-27 11:21
标题:
什么是 "high-water mark"
谢谢。。
作者:
rollingpig
时间:
2003-06-27 11:50
标题:
什么是 "high-water mark"
不客气!!
作者:
angel_xa
时间:
2003-06-29 13:19
标题:
什么是 "high-water mark"
high water mark就是我们常说的高水位线,他表示的是一个对象(如表,索引)在数据库中存储时达到的最大容量,delete后虽然数据删除了,但是并不释放其原来占有的那部分存储空间,从user_free_space中看不到某表空间的剩余空间大了,但是可以往里面插入新的数据(只要满足pctfree)。做truncate才能彻底释放该对象占用的存储空间,当然也就重置了high water mark
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2