监控表空间的 I/O 比例
select df.tablespace_name name,df.file_name "file",f.phyrds pyr,
f.phyblkrd pbr,f.phywrts pyw, f.phyblkwrt pbw
from v$filestat f, dba_data_files df
where f.file# = df.file_id
order by df.tablespace_name;List tablespace fragmentation information:SELECT tablespace_name,COUNT(*) AS fragments,
SUM(bytes) AS total,
MAX(bytes) AS largest
FROM dba_free_space
GROUP BY tablespace_name;
select df.tablespace_name name,df.file_name "file",f.phyrds pyr,
f.phyblkrd pbr,f.phywrts pyw, f.phyblkwrt pbw
from v$filestat f, dba_data_files df
where f.file# = df.file_id
order by df.tablespace_name;List tablespace fragmentation information:SELECT tablespace_name,COUNT(*) AS fragments,
SUM(bytes) AS total,
MAX(bytes) AS largest
FROM dba_free_space
GROUP BY tablespace_name;
解决方案 »
- 多行记录合并到一个单元格
- sql 中 判断是够为空 is null是对的,用=null可以吗
- 急求 “分布式数据库”的问题
- oracle10g,启动不了数据库啊
- RedHat Linux 9.0 安装 oracle9i 出错 , display变量相关 .
- 9000万条记录查询 如何优化?(大家讨论讨论)
- 请问SQL Server中的image和text数据类型与Oracle中的哪些数据一一对应?
- 怎么把序列插入一个字段里,详细如下:
- Oracle for Windows 95,这个是什么版的?
- 我在用Oracle Enterprise Manager Console 时执行导出操作为什么总报错:VNI-2015
- 如何对oracle中select并order出的数据集自动加入1、2、……序号?
- 生成一批可以控制的帐号
b.file_id 文件ID号,
b.tablespace_name 表空间名,
b.bytes 字节数,
(b.bytes-sum(nvl(a.bytes,0))) 已使用,
sum(nvl(a.bytes,0)) 剩余空间,
sum(nvl(a.bytes,0))/(b.bytes)*100 剩余百分比
from dba_free_space a,dba_data_files b
where a.file_id=b.file_id
group by b.tablespace_name,b.file_id,b.bytes
order by b.file_id