SELECT tablespace_name,
       SUM(bytes) / 1024 / 1024 "占用空间(MB)"
  FROM dba_segments
 WHERE segment_type IN ('TABLE', 'INDEX')
 GROUP BY tablespace_name;