Skip to content

Instantly share code, notes, and snippets.

@amitzilblog
Created March 30, 2016 20:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amitzilblog/5d63818290df13cb1d13a1ad1665c60e to your computer and use it in GitHub Desktop.
Save amitzilblog/5d63818290df13cb1d13a1ad1665c60e to your computer and use it in GitHub Desktop.
select e.file_id,e.owner,e.segment_type,e.segment_name,
(e.block_id+e.blocks-1)*d.db_block_size/1024/1024 highwater
from dba_extents e,
(select value db_block_size
from v$parameter
where name='db_block_size') d
where (e.file_id,e.block_id) in (select file_id,max(block_id) from dba_extents group by file_id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment