SQL> !oerr ora 959 00959, 00000, "tablespace '%s' does not exist" // *Cause: // *Action:확인 할 사항
select tablespace_name from dba_tables where owner = '[OWNER]' and table_name = '[TABLE NAME]' ;
결과에서 나온 테이블스페이스명이 정상적으로 존재하는지 또는 상태값이 정상인지 확인.
Partitioned Table의 경우
select def_tablespace_name from dba_part_tables where owner = '[OWNER]' and table_name = '[TABLE NAME]' ;
만약 존재하지 않는 테이블스페이스라면
alter table [OWNER].[TABLE NAME] modify default attributes tablespace [TABLESPACE NAME];
상위 명령을 실행하여 default tablespace를 정상적인 것으로 변경해줍니다.
그럼 만사 OK!!