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: Sort statistics in 8.1.6

Re: Sort statistics in 8.1.6

From: Maciej Sobczak <maciej_at_maciejsobczak.com>
Date: Mon, 09 Jun 2003 10:59:15 +0200
Message-ID: <bc1i4e$8ha$1@SunSITE.icm.edu.pl>


Anton Buijs wrote:

> SELECT s.sid, n.name, s.value FROM v$sesstat s, v$statname n
> WHERE s.statistic# = n.statistic#
> AND s.sid = <sid of a session>
> AND n.name like '%sort%';
>
> and maybe some other statistics.
> Run the query before the session ends.
> V$SYSSTAT show the statistics database wide since uptime.
> V$SESSTAT show the statitstics per session.
> V$STATNAME describes the statistic numbers and is used to join with
> v$SESSTAT. Don't write scripts based on the numbers, they can (an do!)
> change with every version.

Thank you very much for your response.

The problem is that these statistics can tell me only whether disk was used. The problem is that there is a need for more specific information: how many merge phases have been carried out for the particular statement?

I know that this information is there somewhere (there is an example output in docs), but I do not know how to retrieve it.

The example output is:

But how to get such stats?

-- 
Maciej Sobczak
http://www.maciejsobczak.com/
Received on Mon Jun 09 2003 - 03:59:15 CDT

Original text of this message

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