Re: V$SEGMENT_STATISTICS

  • From: "Stephen Andert" <StephenAndert@xxxxxxxxxxxxxxx>
  • To: jreyes@xxxxxxxxxxxxxxxx, oracle-l@xxxxxxxxxxxxx
  • Date: Tue, 09 Mar 2004 16:00:48 -0700

Hola, 

Why are you doing these as EXECUTE IMMEDIATE?  Try 
alter session set TIMED_STATISTICS=TRUE;  
which should work as long as your session has alter session privilege
(if not, connect as sysdba and grant it :)

After you do the 10046 command, do some work (run a query or something)
and then exit the SQL*Plus session and look for your tracefile.  I like
to use 
alter session set TRACEFILE_IDENTIFIER='myname';  
Which will make identification of the tracefile easier since it places
myname (or whatever you put there) in the tracefile name.


Mucha Suerte
Esteban Andert

 


>>> jreyes@xxxxxxxxxxxxxxxx 03/09/04 02:34PM >>>
Hi, I read an article http://www.dbazine.com/nanda1.html 
And this some tests, some one can share his experience using it,
some tricks?

For example is there a way to fill them without using statpacks
I tried
  EXECUTE IMMEDIATE 'alter session set TIMED_STATISTICS=TRUE';
  EXECUTE IMMEDIATE 'alter session set STATISTICS_LEVEL=ALL';
  EXECUTE IMMEDIATE 'alter session set max_dump_file_size=UNLIMITED';
  EXECUTE IMMEDIATE 'ALTER SESSION SET EVENTS ''10046 TRACE NAME
CONTEXT
FOREVER, LEVEL 12''';
and didn't worked

Thank you :)


p.d. there is a free oracle database day dba.
http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10742.pdf



----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx 
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/ 
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html 
-----------------------------------------------------------------


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: