tempfile Archives - DBACLASS https://dbaclass.com/article-tag/tempfile/ database administration Sat, 27 May 2017 12:37:12 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 How to find the I/O usage of tempfiles https://dbaclass.com/article/find-io-usage-tempfiles/ https://dbaclass.com/article/find-io-usage-tempfiles/#respond Sat, 27 May 2017 12:36:51 +0000 http://dbaclass.com/?post_type=article&p=2894 Below scripts are useful to find the i/o usage of tempfiles SELECT SUBSTR(t.name,1,50) AS file_name, f.phyblkrd AS blocks_read, f.phyblkwrt AS blocks_written, f.phyblkrd + f.phyblkwrt AS total_io FROM v$tempstat f,v$tempfile t WHERE t.file# = f.file# ORDER BY f.phyblkrd + f.phyblkwrt DESC; select * from (SELECT u.tablespace, s.username, s.sid, s.serial#, s.logon_time, program, u.extents, ((u.blocks*8)/1024) as MB, i.inst_id,i.host_name […]

The post How to find the I/O usage of tempfiles appeared first on DBACLASS.

]]>
Below scripts are useful to find the i/o usage of tempfiles

SELECT SUBSTR(t.name,1,50) AS file_name,
f.phyblkrd AS blocks_read,
f.phyblkwrt AS blocks_written,
f.phyblkrd + f.phyblkwrt AS total_io
FROM v$tempstat f,v$tempfile t
WHERE t.file# = f.file#
ORDER BY f.phyblkrd + f.phyblkwrt DESC;
select * from (SELECT u.tablespace, s.username, s.sid, s.serial#, s.logon_time, program, u.extents, ((u.blocks*8)/1024) as MB,
i.inst_id,i.host_name
FROM gv$session s, gv$sort_usage u ,gv$instance i
WHERE s.saddr=u.session_addr and u.inst_id=i.inst_id order by MB DESC) a where rownum<10;

The post How to find the I/O usage of tempfiles appeared first on DBACLASS.

]]>
https://dbaclass.com/article/find-io-usage-tempfiles/feed/ 0