'ORA-959'에 해당되는 글 1건

  1. 2017.05.24 공백으로 ORA-959 에러 tablespace drop 안될때

Tablespace name에 공백이 들어갔는지 확인하는 방법


SQL> select '"'||name||'"' from sys.ts$;


만약 공백이 들어있다면 ORA-959 에러후 drop 되지 않는다.


SQL> drop tablespace 'TBS_TRC ' including contents and datafiles;

drop tablespace 'TBS_TRC ' including contents and datafiles

  *

ERROR at line 1:

ORA-02216: tablespace name expected


SQL> drop tablespace "TBS_TRC " including contents and datafiles;

drop tablespace "TBS_TRC " including contents and datafiles

*

ERROR at line 1:

ORA-00959: tablespace 'TBS_TRC ' does not exist


=========================================================


해결책


-> rename 후 drop 해 볼것.


SQL> ALTER TABLESPACE "TBS_TRC " RENAME TO "TESTDROP";


SQL> drop tablespace testdrop including contents and datafiles;



Posted by pat98
이전버튼 1 이전버튼

05-09 04:31
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 달린 댓글