* Temp Tablespace 생성
Temp Tablespace 생성
create Temporary tablespace PK Tempfile 'D:\oracle\oradata\PK_DAT01.dbf' size 30G autoExtend on next 100M;
* Tablespace 삭제.
drop tablespace 테이블스페이스명.
or drop tablespace 테이블스페이스명 including contents and datafiles cascade constraints;
* tablespace 수정이나 삭제시 online/offline 설정
-> alter tablespace 테이블 스페이스명 online;
alter tablespace 테이블 스페이스명 offline;
* Tablespace 확인
-> 전체
select * from dba_data_files;
select * from dba_tablespaces;
-> temp
select * from dba_temp_files;
* 현재 유저의 default tablespace 확인
-> select * from user_users;
* 유져의 default tablespace 변경
-> alter user 유져명 default tablespace 테이블스페이스명
* 테이블의 Tablespace변경
-> alter table 테이블명 move tablespace 테이블스페이스명
* tablespace 물리적인 파일의 이른 또는 위치 변경
-> alter tablespace rename A to B