3

What is wrong with my query? I had look here but could not resolve the problem.

SQL> CREATE TEMPORARY TABLESPACE TEMPRM;

Tablespace created.

SQL> ALTER  TABLESPACE  TEMPRM ADD DATAFILE   '+TEMPDATA/rm/datafile/TEMPRM_temp01.dbf';
ALTER  TABLESPACE  TEMPRM ADD DATAFILE   '+TEMPDATA/rm/datafile/TEMPRM_temp01.dbf'
*
ERROR at line 1: ORA-03217: invalid option for alter of TEMPORARY TABLESPACE
Mureinik
  • 297,002
  • 52
  • 306
  • 350
Malatesh
  • 1,944
  • 6
  • 26
  • 39

1 Answers1

11

A temporary tablespace is made up of tempfiles, not datafiles, so:

ALTER  TABLESPACE TEMPRM ADD TEMPFILE '+TEMPDATA/rm/datafile/TEMPRM_temp01.dbf' SIZE 2G;
----------------------------- Here -^
Mureinik
  • 297,002
  • 52
  • 306
  • 350
  • It worked " ALTER TABLESPACE TEMPRM ADD TEMPFILE '+TEMPDATA/RM/DATAFILE/TEMPRM_temp01.dbf' SIZE 2M;" – Malatesh Jul 30 '15 at 14:10