2004-12-20 11:32
mrluojun
select a.file_id "FileNo",a.tablespace_name<br /> "Tablespace_name",<br /> a.bytes "Bytes",a.bytes-sum(nvl(b.bytes,0)) "Used",<br /> sum(nvl(b.bytes,0)) "Free",<br /> sum(nvl(b.bytes,0))/a.bytes*100 "%free"<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 />已经搞定了.