⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/posts $

2013-08-23

1 total

Oracle Table Size and Tablespace Size

Learn how much each Tablespace occupies: (Size is shown in megabytes) select a.tablespace_name, totalspace, nvl(freespace,0) freespace, (totalspace-nvl(freespace,0)) used, ((totalspace-nvl(freespace,0))/totalspace)*100 "%USED" from (select a.tablespace_name, sum(a.bytes) totalspace, sum(b.bytes) freespace from dba_data_files a, dba_free_space b where a.tablespace_name = b.tablespace_name group by a.tablespace_name)

307 views 0 comments 0 likes ./Read →