select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_files;
select status,enabled, name, bytes/1024/1024 file_size from v_$tempfile;
create temporary tablespace TEMP tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' size 10M;
alter database tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' resize 100m;
alter database tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' drop;
drop tablespace temp including contents and datafiles cascade constraints;
create temporary tablespace temp1 tempfile '/opt/oracle/oradata/hcs2000/temp1.dbf' size 100M;
alter database default temporary tablespace temp1;
SQL> drop tablespace temp;
drop tablespace temp
*
ERROR at line 1:
ORA-12906: cannot drop default temporary tablespace
select status,enabled, name, bytes/1024/1024 file_size from v_$tempfile;
create temporary tablespace TEMP tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' size 10M;
alter database tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' resize 100m;
alter database tempfile '/opt/oracle/oradata/hcs2000/temp.dbf' drop;
drop tablespace temp including contents and datafiles cascade constraints;
create temporary tablespace temp1 tempfile '/opt/oracle/oradata/hcs2000/temp1.dbf' size 100M;
alter database default temporary tablespace temp1;
SQL> drop tablespace temp;
drop tablespace temp
*
ERROR at line 1:
ORA-12906: cannot drop default temporary tablespace