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: Oracle trace file on/off

RE: Oracle trace file on/off

From: Mohan, Ross <MohanR_at_STARS-SMI.com>
Date: Tue, 29 Jan 2002 11:27:41 -0800
Message-ID: <F001.003FF3C5.20020129110415@fatcity.com>

Nice Sleuthing, KD.

-----Original Message-----

Here you go...

<snip>.....

alter session set events '10046 trace name context off' END OF STMT
PARSE #1:c=0,e=2,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=4,tim=2447763926 EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=2447763927

Following is what you see in the trace file when the session is not tracing.....  

Dump event group for level SESSION
TC Addr Evt#(b10) Action TR Addr Arm Life

~

I thank Ross for his nifty hints and his time last night, when I was having a 'brain fart' while testing this...

I learned something new from him... :)

Cheers!

-----Original Message-----
Sent: Tuesday, January 29, 2002 11:06 AM To: Multiple recipients of list ORACLE-L

Send them doggies home, KD, it's a done deal.

;-)

-----Original Message-----

You may turn the trace on or off that way, but how do you interrogate it to find its event settings?

-----Original Message-----
Sent: Monday, January 28, 2002 6:42 PM
To: 'Deshpande, Kirti'; ORACLE-L_at_fatcity.com

ORADEBUG SETORAPID, would make "current session" whatever you like, no?

-----Original Message-----

>From what I know, there is no way to find if a session has turned on the
tracing unless it is your own session. DBMS_SYSTEM.read_ev can you tell you if the current session is tracing or not, but it can not interrogate other sessions.

The only way I know is to check the trace files generated in the udump directory.. but it is not fool-proof.  

And since you can not find out who is tracing at the moment, you can not stop it..

Ross, I sure would like to learn the trick. Can you please post it?? :)

Thanks.

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 Tue Jan 29 2002 - 13:27:41 CST

Original text of this message

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