web analytics

Usage of the temp tablespace in Oracle

First find the block size:

FROM v$parameter
WHERE name='db_block_size' ;

Now check the usage of the tablespace:

 s.username "USER",s.sid,s.osuser,
 SUM(u.blocks) * &BLOCK_SIZE./1024/1024 MB,
FROM v$session s,v$sort_usage u,v$sqltext x
WHERE s.saddr=u.session_addr
 AND s.sql_address=x.address
 s.sid, s.username, osuser,
 TABLESPACE, sql_text, address, piece
ORDER BY sid, piece ASC;

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>




This site uses Akismet to reduce spam. Learn how your comment data is processed.


A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.