SELECT tablespace_name FROM dba_tablespaces WHERE contents='TEMPORARY';
SELECT tablespace_name FROM dba_temporary_tablespaces;
SELECT tablespace_name FROM dba_tablespaces WHERE type = 'TEMP';
SELECT temporary_tablespace_name FROM dba_tablespaces;