Search notes:

Oracle: DBA_FREE_SPACE_COALESCED

dba_free_space_coalesced shows free space in a tablespace.
Unlike dba_free_space, dba_free_space_coalesced shows one record per tablespace.
select
   fsc.tablespace_name,
   tsp.contents       ,          -- PERMANENT, TEMPORARY, UNDO
   fsc.total_extents                                         num_free_extents,
   fsc.extents_coalesced                                     num_free_extents_coalesced,
   fsc.percent_extents_coalesced                             pct_extents_coalesced,
   to_char(fsc.total_bytes     /1024/1024/1024, '99,990.00') free_gib,
  (select
      to_char(sum(seg.bytes)/1024/1024/1024, '99,990.00')
   from
      dba_segments seg
   where
      seg.tablespace_name = fsc.tablespace_name            ) used_gib,
   to_char(fsc.bytes_coalesced /1024/1024/1024, '99,990.00') free_coalesced_gib,
   to_char(fsc.total_blocks    /1000          , '99,999'   ) kblocks,
   to_char(fsc.blocks_coalesced/1000          , '99,999'   ) kblocks_coalesced
from
   dba_free_space_coalesced  fsc                                               join
   dba_tablespaces           tsp on fsc.tablespace_name = tsp.tablespace_name
order by
   case tsp.contents
        when 'PERMANENT' then 0
        when 'TEMPORARY' then 1
        when 'UNDO'      then 2
   end,
   tablespace_name;

See also

dba_free_space
data dictionary

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741107556, '3.12.161.239', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/data-dictionary/free_space/coalesced(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78