Check the filled size of temporary tablespace in Oracle
Check the size of temporary tablespace temp files:
select tablespace_name,file_name,bytes/1024/1024, maxbytes/1024/1024 from dba_temp_files;
If you find temp files are full and near to full, then you can add the temp files in tablespace:
Find tablespace_name and location of temp files from upper query and add one another file to make some space in TEMPORARY tablespace for sorting operation
ALTER TABLESPACE temp ADD TEMPFILE 'E:\oradata\orcl\temp02.dbf' SIZE 2M;
Check the percentage usage of TEMP tablespace:
select tablespace_name, ' %free='|| round(sum(free_blocks) / sum(total_blocks) * 100 ,0) from gv$sort_segment group by tablespace_name;