oracle查看表空间
来源:互联网 发布:淘宝航空箱定做 编辑:程序博客网 时间:2024/05/22 19:27
select
b.file_id 文件ID号,
b.tablespace_name 表空间名,
b.bytes/1024/1024||’M’字节数,
(b.bytes-sum(nvl(a.bytes,0)))/1024/1024||’M’ 已使用,
sum(nvl(a.bytes,0))/1024/1024||’M’ 剩余空间,
100 - 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;
0、查看用户表、索引、分区表占用空间
select segment_name, sum(bytes)/1024/1024 Mbytese from user_segments group by segment_name;
1、表占用空间:select segment_name, sum(bytes)/1024/1024 Mbytese from user_segments where segment_type=’TABLE’ group by segment_name;
2、索引占用空间:select segment_name ,sum(bytes)/1024/1024 from user_segments where segment_type =’INDEX’ group by segment_name;
3、分区表TABLE PARTITION占用空间:select segment_name,sum(bytes)/1024/1024 Mbytes from user_segments where segment_type=’TABLE PARTITION’ group by segment_name;
- oracle查看表空间
- oracle 查看表空间
- oracle 查看表空间
- Oracle查看表空间
- oracle查看表空间
- oracle 查看表空间
- oracle 表空间查看
- 查看oracle表空间
- ORACLE查看表空间
- oracle查看表空间
- 查看 Oracle 表空间使用率
- oracle表空间大小查看
- 查看 Oracle 表空间使用率
- ORACLE查看表空间使用率
- oracle 表空间的查看
- 查看oracle表空间大小
- Oracle查看表空间详细信息
- 查看oracle表空间大小
- Java反射的简单使用
- Ubuntu 正确搭建 Rails 环境
- 关于ios多线程问题
- input框变为不可编辑状态
- Stepping Thread Group插件介绍
- oracle查看表空间
- Linux对tomcat的启动、关闭、杀死
- 微信小程序 仿美团城市选择 城市切换
- pku 3461 Oulipo (裸kmp匹配)
- arduino如何在ssd1306上显示中文字符
- 解析程序的健壮性和鲁棒性
- python day02 变色字体进度条输出
- ros源码分析(6)—roslaunch Commandline Tools
- android基于监听的事件处理机制