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.