统计用户下的表的大小排行(包含大字段统计)
来源:互联网 发布:吉他调音软件app 编辑:程序博客网 时间:2024/09/21 09:02
select *
from (select owner, segment_name, sum(GB)
from (select OWNER, SEGMENT_NAME, BYTES / 1024 / 1024 / 1024 GB
from dba_segments
where owner = 'USERNAME'
and segment_type = 'TABLE'
and segment_name not LIKE '%LOG%'
union all
select A.OWNER, B.TABLE_NAME, A.BYTES / 1024 / 1024 / 1024 GB
from dba_segments a, dba_lobs b
where a.owner = 'USERNAME'
and b.owner = 'USERNAME'
AND A.segment_name = B.SEGMENT_NAME
and a.segment_type = 'LOBSEGMENT'
AND b.table_name not like '%LOG%') a
group by owner, segment_name
order by 3 desc) bb
where rownum < 21
from (select owner, segment_name, sum(GB)
from (select OWNER, SEGMENT_NAME, BYTES / 1024 / 1024 / 1024 GB
from dba_segments
where owner = 'USERNAME'
and segment_type = 'TABLE'
and segment_name not LIKE '%LOG%'
union all
select A.OWNER, B.TABLE_NAME, A.BYTES / 1024 / 1024 / 1024 GB
from dba_segments a, dba_lobs b
where a.owner = 'USERNAME'
and b.owner = 'USERNAME'
AND A.segment_name = B.SEGMENT_NAME
and a.segment_type = 'LOBSEGMENT'
AND b.table_name not like '%LOG%') a
group by owner, segment_name
order by 3 desc) bb
where rownum < 21
- 统计用户下的表的大小排行(包含大字段统计)
- oracle统计用户下表的大小
- Oracle 统计用户下表的数据量
- 统计下载的周排行跟月排行
- 得到两个数据库 不同的表( 统计列 升级 用户表 表字段相差个数)
- php统计文章排行的代码
- Oracle的大字段
- ORACLE中查看包含XML格式的大字段
- 查询oracle大字段所占空间大小的sql
- 统计目录下所有图片的大小(Qt)
- oracle 大字段的使用
- 大字段Clob的操作
- Mysql的大字段问题
- Mysql的大字段问题
- 大字段的设置--lobHandler
- 统计文件下包含的文件夹和文件的数目
- 存储过程实例(统计某用户下所有的表的记录数)
- 统计Oracle数据库文件的大小
- Spring Security学习总结一
- Collection:List、SetMap:HashMap、HashTable
- Chrome 23 下 调试 JS
- Android OpenGL ES 开发教程(15):通用的矩阵变换指令
- 序列化总结
- 统计用户下的表的大小排行(包含大字段统计)
- 获取某个目录下特定格式文件列表
- (三)Activity入门指南
- QT进程间通信 详细介绍
- 同时运行两个TOMCAT的配置
- Oracle10g RAC srvctl libpthread.so.0
- hadoop学习笔记之二:MapReduce基本编程
- Json 语法 格式
- centOS开机取消图形界面,直接进入文本模式