Sinzing Tables
/* Show de size user by each table/tablespace */
select segment_name, tablespace_name, sum(bytes)/1024/1024 as "SIZE(MB)"
from dba_segments
Where tablespace_name = nvl('&tablespace_name',tablespace_name)
Group by segment_name, tablespace_name
Order by sum(bytes) desc;
/* remove empty spaces in the tables */
alter table &TABLE_NAME shrink space;
Written by Giovane Fabricio Kauer
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Plsql
Authors
sathyabhat
607
mitemitreski
506
Related Tags
#plsql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#