- 2025年05月12日
- 星期一
在Oracle中,有些表由于频繁的插入和删除数据,导致高水位过高,表的碎片也很高,如何判断呢? drop table test purge; create table test as select * from dba_objects; insert into test select * from test; insert into test select * from test; commit
数据被删除之后,索引只是加了一个标记,并没有真正的删除,这样可以查看碎片率。 drop table test purge; create table test as select * from dba_objects; insert into test select * from test; insert into test select * from test; commit; create