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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Timed statistics and SQL_TRACE for already running session

Re: Timed statistics and SQL_TRACE for already running session

From: <Cherie_Machler_at_gelco.com>
Date: Wed, 08 Aug 2001 11:07:55 -0700
Message-ID: <F001.00364ABD.20010808104758@fatcity.com>

Igor,

Thanks for your reply. I decided to just turn it on for the whole database for a few minutes
over lunch.

Cherie

                                                                                       
                       
                    "Igor Neyman"                                                      
                       
                    <ineyman_at_perce        To:     Multiple recipients of list ORACLE-L 
<ORACLE-L_at_fatcity.com> 
                    ptron.com>            cc:                                          
                       
                    Sent by:              Subject:     Re: Timed statistics and 
SQL_TRACE for already running 
                    root_at_fatcity.c        session                                      
                       
                    om                                                                 
                       
                                                                                       
                       
                                                                                       
                       
                    08/08/01 10:51                                                     
                       
                    AM                                                                 
                       
                    Please respond                                                     
                       
                    to ORACLE-L                                                        
                       
                                                                                       
                       
                                                                                       
                       




You will have to turn on timed-statistics for the entire database using 'alter system set timed_statistics=true'.

Igor Neyman, OCP DBA
Perceptron, Inc.
(734)414-4627
ineyman_at_perceptron.com

>
> I used the following syntax/package to run a trace on a user's already
> running
> session.
>
> EXECUTE dbms_system.set_sql_trace_in_session(8,12,TRUE);
>
> I then ran tkprof on the resulting trace file. It all worked fairly
well
> but
> I didn't get any times on any of the statements that executed.
>
> Is there a way to use timed_statistics with this package?
> Or must I turn on timed statistics for the entire database?
>
> The user is using a canned application so there is no way
> for him to alter his session and set timed_statistics before
> he starts his work. Is there any way that I can alter his
> session and turn on timed_statistics for just his session?
>
> Thanks for any clever ideas,
>
> Cherie Machler
> Oracle DBA
> Gelco Information Network
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Cherie_Machler_at_gelco.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Igor Neyman
  INET: ineyman_at_perceptron.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Cherie_Machler_at_gelco.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 08 2001 - 13:07:55 CDT

Original text of this message

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