SYS @ ORA19 > show parameter undo_re
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_retention integer 900
#undo_retention을 1시간으로 변경 SYS @ ORA19 > alter system set undo_retention=3600 scope=both;
시스템이 변경되었습니다.
#undo_retention을 개런티 SYS @ ORA19 > alter tablespace undotbs1 retention guarantee;
테이블스페이스가 변경되었습니다.
SYS @ ORA19 > show parameter undo_re
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ undo_retention integer 3600
SYS @ ORA19 > select tablespace_name, retention from dba_tablespaces where tablespace_name='UNDOTBS1';
TABLESPACE_NAME RETENTION ------------------------------ ----------- UNDOTBS1 GUARANTEE
SYS @ ORA19 > select * from dba_data_files where tablespace_name='UNDOTBS1';
FILE_NAME -------------------------------------------------------------------------------- FILE_ID TABLESPACE_NAME BYTES BLOCKS STATUS ---------- ------------------------------ ---------- ---------- --------- RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS ------------ --- ---------- ---------- ------------ ---------- ----------- ONLINE_ LOST_WR ------- ------- /u01/app/oracle/oradata/ORA19/undotbs01.dbf 4 UNDOTBS1 361758720 44160 AVAILABLE 4 YES 3.4360E+10 4194302 640 360710144 44032 ONLINE OFF
#UNDOTBS1 파일 크기 확인 SYS @ ORA19 > select TABLESPACE_NAME, BYTES/1024/1024 from dba_data_files where tablespace_name='UNDOTBS1';
TABLESPACE_NAME BYTES/1024/1024 ------------------------------ --------------- UNDOTBS1 345
#UNDOTBS1 파일 크기 2배로 리사이즈 SYS @ ORA19 > alter database datafile '/u01/app/oracle/oradata/ORA19/undotbs01.dbf' resize 690m;
데이타베이스가 변경되었습니다.
SYS @ ORA19 > select TABLESPACE_NAME, BYTES/1024/1024 from dba_data_files where tablespace_name='UNDOTBS1';
TABLESPACE_NAME BYTES/1024/1024 ------------------------------ --------------- UNDOTBS1 690 |