반응형
출처: http://isecurity.textcube.com/12

SELECT
 
 ,data.name
 ,ts.contents
 ,extent_management
 ,data.Mbytes "SPACE(MB)"
 ,free.free   "FREE(MB)"
 ,trunc((data.Mbytes-free.free)/data.Mbytes*100,2) "Used(%)"
( select
     tablespace_name name
    ,trunc(sum(bytes/1024/1024))
   from dba_data_files
         group by tablespace_name
     ) data,
  ( select
      free.tablespace_name
     ,trunc(sum(free.bytes)/1024/1024,1)
   from dba_free_space free
  group by free.tablespace_name
  )
dba_tablespaces ts
WHERE data.name = free.tablespace_name
  AND data.name =
;
반응형

+ Recent posts