SQL > select a.file_id "FileNo",a.tablespace_name "Tablespace_name", 2 a.bytes "Bytes",a.bytes-sum(nvl(b.bytes,0)) "Used", 3 sum(nvl(b.bytes,0)) "Free", 4 sum(nvl(b.bytes,0))/a.bytes*100 "%free" 5 from dba_data_files a, dba_free_space b 6 where a.file_id=b.file_id(+) 7 group by a.tablespace_name , 8 a.file_id,a.bytes order by a.tablespace_name; File Tablespace No _nameBytes Used Free %free ------ --------- -------- --------- --------- --------- 11IDX_JF .146E+09 849305600 1.297E+09 60.431806 9 JFSJTS 2.146E+09 1.803E+09 343793664 16.016961 10JFSJTS 2.146E+09 1.359E+09 787431424 36.685546 2 RBS523239424 359800832 163438592 31.235909 12RBS1.610E+09 1.606E+09 3104768 .19289495 8 RBSJF 3.220E+09 2.716E+09 504356864 15.662396 7 SFGLTS 2.146E+09 1.228E+09 918159360 42.776014 6 SFSJTS 2.146E+09 1.526E+09 620093440 28.889457 1 SYSTEM 523239424 59924480 463314944 88.547407 3 TEMP 523239424294912 522944512 99.943637 4 TOOLS 15728640 12582912 314572820 5 USERS 7340032 81927331840 99.888393 12 rows selected. |
新闻热点
疑难解答