Skip to content

Instantly share code, notes, and snippets.

@Pamir
Created September 6, 2023 05:07
Show Gist options
  • Save Pamir/40ca24dc950bad1fb572bce9a1d4db63 to your computer and use it in GitHub Desktop.
Save Pamir/40ca24dc950bad1fb572bce9a1d4db63 to your computer and use it in GitHub Desktop.
DBSPaces Script compatible with CDB
select type, sum(bytes)/1048576 mb
from (select 'Datafile' type, bytes from cdb_data_files
union all
select 'Tempfile' type, bytes from cdb_temp_files
union all
select 'OnlineRedo' type, bytes*members bytes from v$log
union all
select 'Ctlfile' type, file_size_blks*block_size bytes from v$controlfile
union all
select 'BCTfile' type, nvl(bytes,0) bytes from v$block_change_tracking)
group by type
order by type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment