資料庫查詢

risingsunczl發表於2012-10-10
select 'RESULT='||df.tablespace_name "Tablespace",df.bytes/(1024*1024) "Total Size(MB)", sum(fs.bytes)/(1024*1024) "Free Size(MB)", round(sum(fs.bytes)*100/df.bytes) "% Free",round((df.bytes-sum(fs.bytes))*100/df.bytes) "% Used" from dba_free_space fs, (select tablespace_name, sum(bytes) bytes from dba_data_files group by tablespace_name ) df where fs.tablespace_name=df.tablespace_name group by df.tablespace_name, df.bytes;[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/653579/viewspace-1059559/,如需轉載,請註明出處,否則將追究法律責任。

相關文章