Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: create tablespace problem
Pomi,
This file alrerady exists; and so is the error. You have two options.
(1) Just add a clause REUSE after the datafile name. Oracle will reuse the existing file. Not recomended. You might accidentally overwrite a good file. (2) Find out the datafile does not belong to the database select name from v$datafile where name = 'd:\orant\database\tselcz1dbCZ.ora' ; should not return any row and delete the file in the OS. Then create the tablespace.
I assume you had this tablespace before and then dropped it later. If you have Oracle9i, you would do a DROP TABLESPACE INCLUDING CONTENTS AND DATAFILE to drop the tablespace as well as the file.
HTH. Arup
> I'm have problem when execute this script, the error is show by oracle is
> "error at line 1
> ORA-.......:TSelCZ_Data already exists;
>
>
> -- create tablespace
>
> CREATE TABLESPACE TSelCZ_Data DATAFILE 'd:\orant\database\tselcz1dbCZ.ora'
> SIZE 150M;
> ALTER TABLESPACE "TSELCZ_DATA" DEFAULT STORAGE ( MAXEXTENTS UNLIMITED );
> /
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: pomi
> INET: pomin_at_intouch.co.id
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Arup Nanda INET: arupnanda_at_hotmail.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jan 22 2003 - 09:09:36 CST
![]() |
![]() |