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: Conceivably a daft question...

Re: Conceivably a daft question...

From: srivenu <srivenu_at_hotmail.com>
Date: 31 Mar 2004 04:42:13 -0800
Message-ID: <1a68177.0403310442.c932756@posting.google.com>


Jonathan,
Are you sure that the tracing session uses the AUDSID to find out the first session ?
If i issue SET AUTOTRACE TRACE STATISTICS

Because on my local 9.2.0.3.0 i traced the sessions and saw that the SID is passed to the tracing session using this SQL SELECT DISTINCT SID FROM V$MYSTAT
Then using this SID, the tracing session is using this SQL to get the statistics about the traced session.
SELECT STATISTIC# S, NAME
FROM SYS.V_$STATNAME
WHERE NAME IN ('recursive calls','db block gets','consistent gets','physical reads','redo size','bytes sent via SQL*Net to client','bytes received via SQL*Net from client','SQL*Net roundtrips to/from client','sorts (memory)','sorts (disk)') ORDER BY S

Whereas if i issue SET AUTOTRACE TRACE EXPLAIN it is issuing this SQL
SELECT USERENV('SESSIONID') FROM DUAL Can you please check it out.
regards
Srivenu Received on Wed Mar 31 2004 - 06:42:13 CST

Original text of this message

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