<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=31231294&amp;blogName=indra+punya+blog&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://indrajati.blogspot.com/search&amp;blogLocale=en_US&amp;homepageUrl=http://indrajati.blogspot.com/&amp;vt=-2054372107529621458" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

 

io cost

col c1 heading 'Average Waits|for Full| Scan Read I/O'        format 9999.999
col c2 heading 'Average Waits|for Index|Read I/O'               format 9999.999
col c3 heading 'Percent of| I/O Waits|for Full Scans'              format 99
col c4 heading 'Percent of| I/O Waits|for Index Scans'           format 99
col c5 heading 'Starting|Value|for|optimizer|index|cost|adj'      format 999

select
  a.average_wait                                      c1,
  b.average_wait                                      c2,
  a.total_waits /(a.total_waits + b.total_waits)*100  c3,
  b.total_waits /(a.total_waits + b.total_waits)*100  c4,
  (b.average_wait / a.average_wait)*100               c5
from
  v$system_event  a,
  v$system_event  b
where
  a.event = 'db file scattered read'
and
  b.event = 'db file sequential read';

Labels:

By Indrajati Chairuddin
On Tuesday, November 02, 2010
At 10:57 PM
Comments :
 

for this post

Leave a Reply