Oracle 数据库表空间碎片查询和整理
2013-10-22 10:46
197 查看
dba_free_space 显示的是有free 空间的tablespace ,如果一个tablespace 的free 空间不连续,那每段free空间都会在dba_free_space中存在一条记录。如果一个tablespace 有好几条记录,说明表空间存在碎片,当采用字典管理的表空间碎片超过500就需要对表空间进行碎片整理。
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 = 'DICTIONARY'
group by a.tablespace_name
having count(1) >20
order by 2;
表空间碎片整理语法:
alter tablespace users coalesce;
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 = 'DICTIONARY'
group by a.tablespace_name
having count(1) >20
order by 2;
表空间碎片整理语法:
alter tablespace users coalesce;
相关文章推荐
- Oracle 数据库表空间碎片查询和整理
- oracle查询数据库各表占用空间
- oracle 查询数据库表空间大小和剩余空间
- oracle 数据库资源使用情况查询(表空间使用情况等)
- Oracle数据库表空间碎片的查询和整理方法
- Oracle表碎片查询以及整理(高水位线)
- oracle中一张表对应使用的段里的存储空间碎片的整理
- Oracle中查询当前数据库中的所有表空间和对应的数据文件语句命令
- Oracl数据库管理方面的资料(查询sga,查看oracle数据库名称sid,查看oracle数据库名称,查看表空间,修改表空间名称,数据库管理,sqlPlus数据显示)
- Oracle数据库表空间碎片的查询和整理方法
- Oracle Spacial(空间数据库)查询空间数据2
- Oracle 查询数据库表空间sql语句
- Oracle表的空间释放,碎片整理记录
- ArcGIS——数据库空间SQL(一、oracle中使用sql空间查询及st_astext等函数出错问题)
- Oracle中查询当前数据库中的所有表空间和对应的数据文件语句命令
- Oracl数据库管理方面的资料(查询sga,查看oracle数据库名称sid,查看oracle数据库名称,查看表空间,修改表空间名称)
- Oracle Spacial(空间数据库)查询模型和空间索引
- Oracle 数据库整理表碎片
- Oracle 查询数据库碎片和和历史会话
- Oracle、Vertica和Hive三种数据库查询表空间的方法