Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to Monitor if "table scans" occur

Re: How to Monitor if "table scans" occur

From: Christian GILBERT <cgilbert_at_mail.dotcom.fr>
Date: Thu, 07 Dec 2000 01:38:15 +0100
Message-ID: <3A2EDBF7.40D9D792@mail.dotcom.fr>

mikea730_at_my-deja.com a écrit :
>
> Is there any kind of performance view that collects statistics on table
> scans. I'm familiar with using "EXPLAIN PLAN" when the SQL statement
> is known. I need to monitor from the server side to determine if an
> excessive number of table scans are occuring. I need to then be able
> to isolate the SQL statement.

  1. Have a look at the statistic "table scan rows gotten" (v$sysstat)
  2. Spool out the contents of v$sqlarea and run explain against the most expensive statements (may need to have a look at v$sqltext (join on hash_value)
  3. Try using statspack if you're on 8.0.5 or higher : http://www.oracle.com/oramag/oracle/00-Mar/o20tun.html
-- 
Christian GILBERT
cgilbert_at_mail.dotcom.fr
IBM Certified Specialist - AIX System Administration
Received on Wed Dec 06 2000 - 18:38:15 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US