Monitor Temporary Tablespace Usage

 Monitor Temporary Tablespace Usage


SELECT (s.tot_used_blocks / f.total_blocks) * 100 AS "percent used"
  FROM (SELECT SUM (used_blocks) tot_used_blocks
          FROM v$sort_segment
         WHERE tablespace_name = 'TEMPTS1') s,
       (SELECT SUM (blocks) total_blocks
          FROM dba_temp_files
         WHERE tablespace_name = 'TEMPTS1') f;


Post a Comment

And that's all there is to it!

If anyone has any other questions or requests for future How To posts, you can either ask them in the comments or email me. Please don't feel shy at all!

I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.

Previous Post Next Post