How to drop the temp table space including alias.
SQL> CREATE TEMPORARY TABLESPACE TEMPRM_TEMP;
SQL> ALTER TABLESPACE TEMPRM_TEMP ADD TEMPFILE '+TEMPDATA/rm/datafile/TEMPRM_TEMPFILE_1.dbf' SIZE 2M;
SQL> DROP TABLESPACE TEMPRM_TEMP INCLUDING CONTENTS AND DATAFILES;
SQL> CREATE TEMPORARY TABLESPACE TEMPRM_TEMP;
SQL> ALTER TABLESPACE TEMPRM_TEMP ADD TEMPFILE '+TEMPDATA/rm/datafile/TEMPRM_TEMPFILE_1.dbf' SIZE 2M
*
ERROR at line 1:
ORA-01119: error in creating database file
'+TEMPDATA/rm/datafile/TEMPRM_TEMPFILE_1.dbf'
ORA-17502: ksfdcre:4 Failed to create file
+TEMPDATA/rm/datafile/TEMPRM_TEMPFILE_1.dbf
ORA-15005: name "rm/datafile/TEMPRM_TEMPFILE_1.dbf" is already used by an
existing alias
Please explain, how to clean Alias in Oracle ASM ? thanks
TEMPRM_TEMPFILE_1.dbf
. Maybe you tried to create it before with a different TS name? What doesdba_temp_files
show? Or you created and dropped it with that name previously, but withoutincluding datafiles
?CREATE TEMPORARY TABLESPACE TEMPRM_TEMP
statement?