Oracle tablespace can I drop all files -


i trying drop temp tables space has 3 files

/tmp/temprm/create/temprm/datafile/o1_mf_temprm_t_bw3t4zkp_.tmp +tempdata/rm/datafile/temprm_tempfile_1.dbf +tempdata/rm/datafile/temprm_tempfile_2.dbf 

before dropping table space want delete file, able remove first 2 files last 1 gives error.

 sql> sql> alter  tablespace temprm_temp drop tempfile '+tempdata/rm/datafile/temprm_tempfile_2.dbf'  *  error @ line 1:  ora-03261: tablespace temprm_temp has 1 file 

if not allowed delete files in table space, how clean table space?

you cannot make tablespace file-less. can drop tablespace , it's datafiles in 1 statement:

drop tablespace temp_tablespace including contents , datafiles; 

make sure have new temporary tablespace , make default before drop old one. follow below link example:

http://dbatricksworld.com/how-to-create-temporary-tablespace-and-drop-existing-temprary-tablespace-in-oracle-11g/


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -