與縮小temp tablespace 一樣,都可以先建立一個較小的新unod tablespace,再刪除舊的
建立新的undo tablespace
create undo tablespace undo1 datafile '/oradata/UNDOTBS2.DBF' size 500m;
將預設的undo tablespace改為新的tablespace
alter system set undo_tablespace=undo1;
刪除舊有的undo tablespace
drop tablespace undotbs1 including contents;
drop tablespace undotbs1 including contents;
查看所有tablespace的情況
select * from dba_tablespaces;