【数据库123】Oracle数据库碎片整理

背景:

公司数据库系统要加一个自动进行数据库碎片整理的包。

为了准备测试和上线plan,需要了解一些background和相关的基本概念。

 

参考:

https://oracle-base.com/articles/misc/alter-table-shrink-space-online

https://www.cnblogs.com/youzhangcai1/p/5593310.html

 

 

https://gerardnico.com/db/oracle/segment/segment

https://searchoracle.techtarget.com/tip/Oracle-segment-statistics

Segment

 

 

https://www.cnblogs.com/wujin/p/6371275.html

http://blog.chinaunix.net/uid-20773119-id-573774.html?utm_source=jiancool

Index Clustering Factor是通过一个索引扫描一张表,需要访问的表的数据块的数量,即对I/O的影响,也代表索引键存储位置是否有序。

    (1)、如果越有序,即相邻的键值存储在相同的block,那么这时候Clustering Factor的值就越低;

    (2)、如果不是很有序,即键值是随机的存储在block上,这样在读取键值时,可能就需要一次又一次的去访问相同的block,从而增加了I/O。

Clustering Factor也是索引健康的一个重要判断的标准。其值越低越好。它会影响CBO选择正确的执行计划。但是注意一点,clustering factor总是趋势与不断恶化的。

 

http://www.dba-oracle.com/t_alter_table_shrink_space_command.htm

Oracle table shrink space command

 

https://docs.oracle.com/en/cloud/saas/social-data-insight-cloud/index.html

DaaS

posted @ 2020-05-19 17:05  CathyGao2018  阅读(232)  评论(0编辑  收藏  举报