| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: object placement
Volume is not the real indicator for activity. Search io rate/io activity. Query v$filestat to obtain the more accessed file : write/read.
select f.name "File",
s.phyrds,s.phywrts,
s.phyblkrd,s.phyblkwrt
from v$datafile f,
v$filestat s
You can also query x$kcbfwait (with user SYS) : you'll get waits by datafile,
more useful than v$waistat.
If timed_statistics is set to true, you'll see wait time for each datafile.
You will can see which files are hotest.
Cross results with dba_segments to see which objects include the hot datafiles.
try this query :
column file# format 999 Heading "File" column ct format 999999 heading "Waits" column time format 999999 heading "Time" column avg format 999.999 heading "Avg time"Col Fichier for a50 wrap
indx+1 file#,
count ct,
time,
time/(decode(count,0,1,count)) avg
from sys.x$kcbfwait x,v$datafile f
-- Use our news server 'news.foorum.com' from anywhere. More details at: http://nnrpinfo.go.foorum.com/Received on Thu Nov 14 2002 - 08:44:35 CST
![]() |
![]() |