<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="sys-statements-with-runtimes-in-95th-percentile">
      </a>
      30.4.3.38 The statements_with_runtimes_in_95th_percentile and
x$statements_with_runtimes_in_95th_percentile Views
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045062095344">
  </a>
  <a class="indexterm" name="idm46045062093888">
  </a>
  <a class="indexterm" name="idm46045062092368">
  </a>
  <a class="indexterm" name="idm46045062090848">
  </a>
  <p>
   These views list statements with runtimes in the 95th
          percentile. By default, rows are sorted by descending average
          latency.
  </p>
  <p>
   Both views use two helper views,
   <code class="literal">
    x$ps_digest_avg_latency_distribution
   </code>
   and
   <code class="literal">
    x$ps_digest_95th_percentile_by_avg_us
   </code>
   .
  </p>
  <p>
   The
   <a class="link" href="sys-statements-with-runtimes-in-95th-percentile.html" title="30.4.3.38 The statements_with_runtimes_in_95th_percentile and x$statements_with_runtimes_in_95th_percentile Views">
    <code class="literal">
     statements_with_runtimes_in_95th_percentile
    </code>
   </a>
   and
   <a class="link" href="sys-statements-with-runtimes-in-95th-percentile.html" title="30.4.3.38 The statements_with_runtimes_in_95th_percentile and x$statements_with_runtimes_in_95th_percentile Views">
    <code class="literal">
     x$statements_with_runtimes_in_95th_percentile
    </code>
   </a>
   views have these columns:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      <code class="literal">
       query
      </code>
     </p>
     <p>
      The normalized statement string.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       db
      </code>
     </p>
     <p>
      The default database for the statement, or
      <code class="literal">
       NULL
      </code>
      if there is none.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       full_scan
      </code>
     </p>
     <p>
      The total number of full table scans performed by
              occurrences of the statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       exec_count
      </code>
     </p>
     <p>
      The total number of times the statement has executed.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       err_count
      </code>
     </p>
     <p>
      The total number of errors produced by occurrences of the
              statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       warn_count
      </code>
     </p>
     <p>
      The total number of warnings produced by occurrences of
              the statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       total_latency
      </code>
     </p>
     <p>
      The total wait time of timed occurrences of the statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       max_latency
      </code>
     </p>
     <p>
      The maximum single wait time of timed occurrences of the
              statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       avg_latency
      </code>
     </p>
     <p>
      The average wait time per timed occurrence of the
              statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       rows_sent
      </code>
     </p>
     <p>
      The total number of rows returned by occurrences of the
              statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       rows_sent_avg
      </code>
     </p>
     <p>
      The average number of rows returned per occurrence of the
              statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       rows_examined
      </code>
     </p>
     <p>
      The total number of rows read from storage engines by
              occurrences of the statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       rows_examined_avg
      </code>
     </p>
     <p>
      The average number of rows read from storage engines per
              occurrence of the statement.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       first_seen
      </code>
     </p>
     <p>
      The time at which the statement was first seen.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       last_seen
      </code>
     </p>
     <p>
      The time at which the statement was most recently seen.
     </p>
    </li>
    <li class="listitem">
     <p>
      <code class="literal">
       digest
      </code>
     </p>
     <p>
      The statement digest.
     </p>
    </li>
   </ul>
  </div>
 </div>
 <br/>
</div>
