Select a.Tablespace_Name,
a.Total || 'M' Total_Space,
(a.Total - b.Free) || 'M' Used_Space,
To_Char((a.Total - b.Free) / a.Total * 100, '99.99') || '%' Pct_Free
From (Select Tablespace_Name, Sum(Bytes) / 1024 / 1024 Total
From Dba_Data_Files
Group By tablespace_Name) a,
(Select Tablespace_Name, Sum(Bytes) / 1024 / 1024 Free
From Dba_Free_Space
Group By Tablespace_Name) b
where a.Tablespace_Name = b.Tablespace_Name
加大表空间:
http://blog.youkuaiyun.com/xiuhaijuanqiang/article/details/6631746
http://blog.chinaunix.net/uid-10951-id-1762412.html
http://yangtingkun.itpub.net/post/468/526381
http://blog.youkuaiyun.com/tan_yixiu/article/details/6765438
转
a.Total || 'M' Total_Space,
(a.Total - b.Free) || 'M' Used_Space,
To_Char((a.Total - b.Free) / a.Total * 100, '99.99') || '%' Pct_Free
From (Select Tablespace_Name, Sum(Bytes) / 1024 / 1024 Total
From Dba_Data_Files
Group By tablespace_Name) a,
(Select Tablespace_Name, Sum(Bytes) / 1024 / 1024 Free
From Dba_Free_Space
Group By Tablespace_Name) b
where a.Tablespace_Name = b.Tablespace_Name
加大表空间:
http://blog.youkuaiyun.com/xiuhaijuanqiang/article/details/6631746
http://blog.chinaunix.net/uid-10951-id-1762412.html
http://yangtingkun.itpub.net/post/468/526381
http://blog.youkuaiyun.com/tan_yixiu/article/details/6765438
转
本文提供了一种查询Oracle数据库中表空间使用情况的方法,并附带了相关SQL语句,帮助管理员了解各表空间的总大小、已用空间及空闲比例。此外,还提供了几个关于如何增加表空间容量的链接资源。
1695

被折叠的 条评论
为什么被折叠?



