/ Published in: SQL
Show the size for all your database schemas
Expand |
Embed | Plain Text
SELECT owner, ROUND(SUM((num_rows*avg_row_len))) AS bytes FROM all_tables WHERE num_rows > 0 AND owner NOT LIKE 'SYS%' -- exclude system tables GROUP BY owner ORDER BY bytes DESC ;
You need to login to post a comment.
