查看CDB和PDB数据量

CDB和PDB

select con_id, tablespace_name, bytes/1024/1024/1024 as GB from cdb_data_files order by con_id, bytes;

查看CDB和PDB数据量_第1张图片

CDB

select sum(bytes)/1024/1024/1024 as GB from cdb_data_files;

查看CDB和PDB数据量_第2张图片

PDB#1

select con_id, sum(bytes)/1024/1024/1024 as GB 
from cdb_data_files 
group by con_id 
order by con_id;
select sum(bytes)/1024/1024/1024 as GB from dba_data_files;

查看CDB和PDB数据量_第3张图片

PDB#2

select a.con_id, b.pdb_name, sum(a.bytes)/1024/1024/1024 as GB 
from cdb_data_files a, cdb_pdbs b 
where a.con_id=b.con_id 
group by a.con_id,b.pdb_name;

在这里插入图片描述

查看CDB和PDB数据量_第4张图片
查看CDB和PDB数据量_第5张图片
查看CDB和PDB数据量_第6张图片

你可能感兴趣的:(DBA,dba)