1、檢查原來(lái)undo表空間情況:select file_name,bytes/1024/1024 as MB from dba_data_files where tablespace_name like
1、檢查原來(lái)undo表空間情況:
select file_name,bytes/1024/1024 as MB from dba_data_files where tablespace_name like 'UNDO%';
2、創(chuàng)建新的undo表空間:
create undo tablespace undotbs2 datafile '/u01/app/Oracle/oradata/orcl/undotbs02.dbf' size 2g autoextend on next 10m maxsize 10g;
3、切換到新的undo表空間:
alter system set undo_tablespace=undotbs2 scope=both;
4、檢查原來(lái)undo表空間是否還在使用:
select usn,xacts,rssize/1024/1024/1024,hwmsize/1024/1024/1024,shrinks from v$rollstat order by rssize;
如果沒(méi)有PENDING OFFLINE字樣表示已經(jīng)不再使用。
5、刪除原來(lái)undo表空間:
drop tablespace undotbs1 including contents and datafiles;
,聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com