免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1414 | 回复: 0
打印 上一主题 下一主题

[RAID与磁盘阵列] Oracle表空间使用情况查询 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-02 12:38 |只看该作者 |倒序浏览
$ sqlplus "/as sysdba"
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from sm$ts_used;
TABLESPACE_NAME                     BYTES
------------------------------ ----------
SYSTEM                          510197760
USERS                             3080192
TBS_1                              196608
SYSAUX                          433586176
EXAMPLE                          79953920
UNDOTBS1                         17104896
6 rows selected.
SQL> select * from sm$ts_free;
TABLESPACE_NAME                     BYTES
------------------------------ ----------
SYSTEM                            3538944
USERS                             2097152
TBS_1                           104660992
SYSAUX                            6750208
EXAMPLE                          77266944
UNDOTBS1                        203030528
TBS_2                           104792064
7 rows selected.
SQL> select text from dba_views where view_name='SM$TS_USED';
TEXT
--------------------------------------------------------------------------------
select tablespace_name, sum(bytes) bytes from dba_segments
    group by tablespace_name
SQL> select text from dba_views where view_name='SM$TS_FREE';
TEXT
--------------------------------------------------------------------------------
select tablespace_name, sum(bytes) bytes from dba_free_space
    group by tablespace_name

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38775/showart_475092.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP