LoveUnix » ORACLE等数据库 » 已经搞定了.
让LU留住您的每

一天 让LU博客留住您的每一天
2004-12-20 11:32 mrluojun
select a.file_id &quot;FileNo&quot;,a.tablespace_name<br />  &quot;Tablespace_name&quot;,<br />   a.bytes &quot;Bytes&quot;,a.bytes-sum(nvl(b.bytes,0)) &quot;Used&quot;,<br />   sum(nvl(b.bytes,0)) &quot;Free&quot;,<br />   sum(nvl(b.bytes,0))/a.bytes*100 &quot;%free&quot;<br />   from dba_data_files a, dba_free_space b<br />    where a.file_id=b.file_id(+)<br />    group by a.tablespace_name ,<br />   a.file_id,a.bytes order by a.tablespace_name;<br /><br />已经搞定了.

页: [1]
查看完整版本: 已经搞定了.


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.