Created
September 6, 2023 05:07
-
-
Save Pamir/40ca24dc950bad1fb572bce9a1d4db63 to your computer and use it in GitHub Desktop.
DBSPaces Script compatible with CDB
This file contains hidden or 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
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