CREATE and DROP TABLESPACE Oracle

被刻印的时光 ゝ 提交于 2019-12-12 08:23:37

问题


I have created this tablespace

CREATE TABLESPACE IA643_TBS
DATAFILE 'IA643_dat' SIZE 500K
AUTOEXTEND ON NEXT 300K MAXSIZE 100M;

I tried to drop it using this command

DROP TABLESPACE IA643_TBS;

And it said that it was dropped, when I tried to create it again, I got those error messages:

ERROR at line 1: 
ORA-01119: error in creating database file 'IA643_dat' 
ORA-27038: created file already exists 
OSD-04010: <create> option specified, file already exists 

How can I delete the datafile and recreate the tablespace with same file names?


回答1:


You can either login to the operating system and actually delete the file or add the reuse keyword after the size in your create tablespace command.



来源:https://stackoverflow.com/questions/26536948/create-and-drop-tablespace-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!