Created
April 26, 2018 16:39
-
-
Save uilian/fcc949edf7ebaa50632322da0cec21af to your computer and use it in GitHub Desktop.
Tamanho dos objetos em um schema oracle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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