Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SET AUTOTRACE ON- not showing the actual stats.
Arul,
RUN:
-- Copyright (c) Oracle Corporation 1995, 2002. All Rights Reserved.
--
set echo on
drop role plustrace;
create role plustrace;
grant select on v_$sesstat to plustrace; grant select on v_$statname to plustrace; grant select on v_$mystat to plustrace;
set echo off
Larry
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of arul.kumar_at_bt.com
Sent: Wednesday, December 01, 2004 5:19 AM
To: oracle-l_at_freelists.org
Subject: SET AUTOTRACE ON- not showing the actual stats.
Dear DBAs,
I could not see the actual statistics in a "SET AUTOTRACE ON" session though I have the following set on my server:
SQL> show parameter stat
NAME TYPE VALUE
------------------------------------ -------
------------------------------
timed_os_statistics integer 0 timed_statistics boolean TRUE
And, I tried enforcing the same
Alter session set timed_statistics=3Dtrue;
select * from xyz;
..
....
Statistics
0 recursive calls 0 db block gets 0 consistent gets 0 physical reads 0 redo size 0 bytes sent via SQL*Net to client 0 bytes received via SQL*Net from client 0 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 570309 rows processed
Am I missing something?
Environment:
HP-UX B.11.11
Oracle 8.1.7.4
Thanks,
Arul.
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Wed Dec 01 2004 - 19:31:53 CST
![]() |
![]() |