Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

break on Owner on tablespace_name

column objects format A20


select
owner,
tablespace_name,
count(*)||'tables' objects
from DBA_TABLES
where Owner<>'SYS'
group by
Owner,
tablespace_name
union
select
Owner,
Tablespace_name,
COUNT(*)||'indexes'objects
from DBA_INDEXEX
where Owner <>'SYS'
group by
Owner,
tablespace_name;

You might also like