Skip to content

Instantly share code, notes, and snippets.

@den-kozlov
Last active October 20, 2017 11:11
Show Gist options
  • Save den-kozlov/5758eb729fd41643d8f0e251fdf77086 to your computer and use it in GitHub Desktop.
Save den-kozlov/5758eb729fd41643d8f0e251fdf77086 to your computer and use it in GitHub Desktop.
Oracle Table Size
SELECT owner
, segment_name
, segment_type
, tablespace_name
, bytes / 1048576 MB
, initial_extent
, next_extent
, extents
, pct_increase
FROM DBA_SEGMENTS
WHERE OWNER = NVL(:table_owner, OWNER) AND SEGMENT_NAME = NVL(:table_name, SEGMENT_NAME) AND SEGMENT_TYPE = 'TABLE'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment