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;