查看表空间碎片量

来源:互联网 发布:win7所有软件都打不开 编辑:程序博客网 时间:2024/05/01 15:22

--查看表空间碎片量
select a.tablespace_name,count(1)

from dba_free_space a,dba_tablespaces b
where a.tablespace_name=b.tablespace_name
and b.extent_management= 'LOCAL'
groupby a.tablespace_name
havingcount(1)>20
orderby 2

--整理碎片
altertablespace tablespace_namecoalesce;

0 0
原创粉丝点击