Oracle查询语句
来自Fantasy的维基百科
(版本间的差异)
(以“ --查看该表空间上所有对象 SELECT t.owner, t.segment_name,SUM(bytes)/1024/1024 From dba_segments t WHERE t.tablespace_name = 'TBS_DEFAULT' GROUP BY t.owne...”为内容创建页面) |
|||
第1行: | 第1行: | ||
− | --查看该表空间上所有对象 | + | --查看该表空间上所有对象 |
+ | |||
SELECT t.owner, t.segment_name,SUM(bytes)/1024/1024 From dba_segments t | SELECT t.owner, t.segment_name,SUM(bytes)/1024/1024 From dba_segments t | ||
WHERE t.tablespace_name = 'TBS_DEFAULT' | WHERE t.tablespace_name = 'TBS_DEFAULT' | ||
GROUP BY t.owner,t.segment_name | GROUP BY t.owner,t.segment_name | ||
ORDER BY SUM(bytes) desc; | ORDER BY SUM(bytes) desc; |
2014年9月28日 (日) 15:06的版本
--查看该表空间上所有对象
SELECT t.owner, t.segment_name,SUM(bytes)/1024/1024 From dba_segments t WHERE t.tablespace_name = 'TBS_DEFAULT' GROUP BY t.owner,t.segment_name ORDER BY SUM(bytes) desc;