-- Description : Displays the amount of IO for each datafile.
-- Requirements : Access to the v$ views.
-- Call Syntax : @file_io
SET PAGESIZE 1000
SELECT Substr(d.name,1,50) "File Name",
f.phyblkrd "Blocks Read",
f.phyblkwrt "Blocks Writen",
f.phyblkrd + f.phyblkwrt "Total I/O"
FROM v$filestat f,
v$datafile d
WHERE d.file# = f.file#
ORDER BY f.phyblkrd + f.phyblkwrt DESC;
SET PAGESIZE 18
从Oracle9i开始,可以使用v$segment_statsitic直接找出对象,该脚本的意义不大
阅读(615) | 评论(0) | 转发(0) |