Skip to content

Instantly share code, notes, and snippets.

@uilian
Created April 26, 2018 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uilian/fcc949edf7ebaa50632322da0cec21af to your computer and use it in GitHub Desktop.
Save uilian/fcc949edf7ebaa50632322da0cec21af to your computer and use it in GitHub Desktop.
Tamanho dos objetos em um schema oracle
-- Todos os objetos do schema
select
owner,
sum(bytes)/1024/1024/1024 schema_size_gig
from
dba_segments
group by
owner;
-- Tamanho por tipo de objeto
select
sum(bytes)/1024/1024/1024 as size_in_gig,
segment_type
from
dba_segments
where
owner='USER'
group by
segment_type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment