Break Out!? - blog ver.

こっちー(kojiaki)がメモとか物欲の記録とかラーメン食べ歩きとかを書きなぐる blog みたいなものです。

Oracle UNDO表領域の再作成

UNDO表領域が大きくなってにっちもさっちもいかなくなったので実施

ファイルパスは適宜読み替えてください


  1. 一時的にUNDO表領域を作成
  2. create undo tablespace UNDOTBS2 datafile '/path/to/undotbs02.dbf' size 10m autoextend on;
  3. UNDO表領域の切り替え(UNDOTBS1からUNDOTBS2へ)
  4. alter system set undo_tablespace = 'UNDOTBS2';
  5. 大きくなった表領域の削除
  6. drop tablespace UNDOTBS1;
  7. UNDO表領域の再作成(元のファイルは削除しなくてもよい)
  8. create undo tablespace UNDOTBS1 datafile '/path/to/undotbs01.dbf' size 50m reuse autoextend on;
  9. UNDO表領域の切り替え(UNDOTBS2からUNDOTBS1へ)
  10. alter system set undo_tablespace = 'UNDOTBS1';
  11. 一時的に作成したUNDO表領域を削除
  12. drop tablespace UNDOTBS2 including contents cascade constraints;
  13. 上記完了後 /path/to/undotbs02.dbf を物理削除

トラックバック(0)

コメントする