select
tts.tablespace_name
from
dba_tablespaces tts
where
tts.contents = 'TEMPORARY'
;
Shrinking the tablespace
Temporary tablespaces can be shrunk:
alter tablespace temp shrink space;
alter tablespace temp shrink space keep 500 m;
alter tablespace temp shrink tempfile '/opt/oracle/oradata/…/temp01.dbf' keep 500 m;
Determine a database's default temporary tablespace
select property_value from database_properties where property_name = 'DEFAULT_TEMP_TABLESPACE';
Tablespace groups
A tablespace group allows to use multiple temporary tablespaces for operations that require large amounts of temporary space.