|
最初由 rollingpig 发布
[B]1.move all other user's object out of system tablespace
select segment_type,owner,segment_name
from dba_segments
where owner not in ('SYS')
and tablespace_name = 'SYSTEM'
2.After move them,check the max size current used.
select max(block+block_id-1) * &system_tablespace_block_size/1024/1024
from dba_extents
where tablespace_name = 'SYSTEM'
3.
alter database datafile '....' resize ... [/B]
這樣收縮的空間並不會太多。
假如system表空間有1G的空間,而且屬於system這個user的object所占用的空間只有300m的話。
但是屬於system這個user的,裡面有object已經占用到了第800m的空間的話,那用這種方法最後也只能resize到800m。 |
|