- datafile auto on/off
alter database datafile '/oracle/oradata/testdb/undo01.dbf' AUTOEXTEND off ;
alter database datafile '/oracle/oradata/testdb/undo01.dbf' AUTOEXTEND on ;
- datafile 추가
alter tablespace TBS_S01 add datafile '/oracle/oradata/testdb/tbs_s01.dbf' size 30g AUTOEXTEND OFF ;
alter tablespace TEMP add tempfile '/oracle/oradata/testdb/rngs_10g_126' SIZE 100M AUTOEXTEND OFF ;
alter tablespace undo add datafile '/oracle/oradata/testdb/rundo01_02' SIZE 100M AUTOEXTEND OFF ;
- datafile 삭제
alter database file '/oracle/oradata/testdb/tbs_s02.dbf' drop including datafiles;
alter database tempfile '/oracle/oradata/testdb/temp02.dbf' drop including datafiles;
- datafile 사이즈 조절(resize)
alter database datafile '/oracle/oradata/testdb/tbs_s03.dbf' resize 100M;
- datafile rename(startup mount 상태에서)
alter database rename file '/oracle/oradata/testdb/tbs_s03.dbf' to '/data/testdb/tbs_s03.dbf';
- datafile, tempfile 조회
select * from dba_data_files;
select * from dba_temp_files;
'DBMS > Oracle' 카테고리의 다른 글
tablespace별 사용량 보기 (0) | 2022.07.04 |
---|---|
tablespace 관리 (0) | 2022.07.04 |
table move 하는 방법 (0) | 2022.07.04 |
table별 조회 (0) | 2022.07.04 |
table shrink 권고사항 확인(테이블 데이터 0건인데 용량 차지 하고 있는 테이블 실행) (0) | 2022.07.04 |