Oracle/Oracle Study

UNDO tablespace 변경

평생초보 2011. 7. 26. 15:10
반응형
1. 또 다른 undo tablespace를 생성한다.
create undo tablespace undotbs2
datafile '/data4/oradata/undotbs2.dbf' size 1G autoextend on next 64M maxsize unlimited;

2. 새로 생성한 undo를 임시로 default 로 설정한다.
alter system set undo_tablespace = UNDOTBS2;

3. 기존 undo tablespace를 삭제한다.
drop tablespace undotbs1 including contents and datafiles cascade constraints;

4. 새로 적용할 undo tablespace를 생성한다.
create undo tablespace undotbs1
datafile '/data1/oradata/undotbs01.dbf' size 2G autoextend on next 100M maxsize 4G,
         '/data2/oradata/undotbs02.dbf' size 2G autoextend on next 100M maxsize 4G,
         '/data3/oradata/undotbs03.dbf' size 2G autoextend on next 100M maxsize 4G,
         '/data4/oradata/undotbs04.dbf' size 2G autoextend on next 100M maxsize 4G
;

5. default undo tablespace의 값을 재설정한다.
alter system set undo_tablespace = UNDOTBS1;

6. 임시로 만들어 놓은 undo tablespace를 삭제한다.
drop tablespace undotbs2 including contents and datafiles cascade constraints;
반응형