SELECT UPPER(F
D
D
TO_CHAR(ROUND((D
F
F
FROM (SELECT TABLESPACE_NAME
ROUND(SUM(BYTES) / (
ROUND(MAX(BYTES) / (
FROM SYS
GROUP BY TABLESPACE_NAME) F
(SELECT DD
ROUND(SUM(DD
FROM SYS
GROUP BY DD
WHERE D
ORDER BY
select tablespace_name
count(*) as extends
round(sum(bytes) /
sum(blocks) as blocks
from dba_free_space
group by tablespace_name;
select tablespace_name
from dba_data_files
group by tablespace_name;
select total
round(total
round(total
round((
from (select tablespace_name
from dba_free_space
group by tablespace_name) free
(select tablespace_name
from dba_data_files
group by tablespace_name) total
where free
From:http://tw.wingwit.com/Article/program/Oracle/201311/17138.html