SRDC - Temp Usage: Checklist of Evidence to Supply (Doc ID 1910608.1)
Enter the Main Content Alert log file 60-min AWR report at the time of the error The script must be run at the time where temp usage is high / ORA-1652 is reported It's highly recommended to run the script at least 3-4 times at distinct intervals of the problem to provide a more consistent image of the problem to the support. alter session set nls_date_format='dd-mon-yyyy hh24:mi:ss'; set pagesize 9999 spool /tmp/dba_data_files.html set markup html on SELECT A.inst_id, A.tablespace_name TABLESPACE, D.mb_total, SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_used, D.mb_total - SUM (A.used_blocks * D.block_size) / 1024 / 1024 mb_free FROM gv$sort_segment A, (SELECT B.INST_ID, B.name, C.block_size, SUM (C.bytes) / 1024 / 1024 mb_total FROM gv$tablespace B, gv$tempfile C WHERE B.ts# = C.ts# AND c.inst_id=b.inst_id GROUP BY B.INST_ID, B.name, C.block_size ) D WHERE A.tablespace_name = D.name AND A.inst_id =D.inst_id GROUP BY a.inst_id, A.tablespace_name, D.mb_total ORDER B...