/ Published in: SQL
Get the size of all Tables in your Database Schema
Run DB Stats for more accuracy!
Expand |
Embed | Plain Text
-- List Tables in order of size, biggest first. SELECT owner , table_name , ROUND(num_rows*avg_row_len) AS bytes FROM all_tables WHERE owner NOT LIKE 'SYS%' -- Exclude system tables. AND num_rows > 0 -- Ignore empty Tables. ORDER BY bytes DESC -- Biggest first. ;
You need to login to post a comment.
