可以使用以下语句查询是哪个session number的哪个sql占用了较大的临时表空间
select inst_id,username,session_num,sql_id,tablespace,segtype,sum(blocks)*8/1024/1024 size_in_gb from gV$TEMPSEG_USAGE group by inst_id,username,session_num,sql_id,tablespace,segtype
select * from gv$sqlarea where sql_id=‘‘
原文:https://www.cnblogs.com/gdjgs/p/15270659.html