Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Which table to check whether my SQL_TRACE is on for the user
This may sound simplistic, but you can use the name of a trace file
(contains the v$process.spid) to link back to the session. I have tested it
on unix and nt and the file is written as the statements are executed and
are not buffered until the process terminates. For example I had a process
with a spid of 1234 and in the udump directory is a trace file named
dba92_ora_1234.trc. Note that this is in dedicated server mode and I have
not tested it in mts.
I realize that this is not necessarily a 100% bulletproof method, but it is simple and should cover most situations.
Dan Fink
-----Original Message-----
Sent: Thursday, August 08, 2002 9:08 AM
To: Multiple recipients of list ORACLE-L
user
Some folks in Oracle kernel development have assured me that it is impossible to compute this. There's a SET_bool_param_in_session, but no GET_bool_param_in_session. The most recent note I got indicated that the guys in development still believe it's impossible to write the GET function...
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events:
- Hotsos Clinic, Oct 1-3 San Francisco, Oct 15-17 Dallas, Dec 9-11
Honolulu
- 2003 Hotsos Symposium on OracleR System Performance, Feb 9-12 Dallas
- Next event: NCOAUG Training Day, Aug 16 Chicago
-----Original Message-----
John.Hallas_at_vodafone.co.uk
Sent: Thursday, August 08, 2002 9:24 AM
To: Multiple recipients of list ORACLE-L
user
Dave,
That table show which global paremeters are set
The question was "how do you tell when a session has sql trace set, ie.
is
it capturing all information to a trc file in the udump area"
I do not know the answer myself, somebody has suggested it is held in
the
memory structure and that seems a good bet to me
John
-----Original Message-----
Sent: 08 August 2002 14:53
To: Multiple recipients of list ORACLE-L
user
Shows up for me.
SQL> show parameter sql_trace
NAME TYPE VALUE ------------------------------------ ------- --------- sql_trace boolean FALSESQL> Dave
-----Original Message-----
Sent: Thursday, August 08, 2002 8:33 AM
To: Multiple recipients of list ORACLE-L
user
Dear 'New Bee',
If I remember correctly, I read an reply by Steve Adams that this trace
flag
is in the PGA (??) so not possible to find.
O Wise Men/Women ... please correct me if I am wrong ... Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
Sent: Wednesday, August 07, 2002 11:08 PM
To: Multiple recipients of list ORACLE-L
user
Hi Dave,
Thanks but the command does not work.
In SQLPLUS,
SQL> alter SESSION SET SQL_TRACE=TRUE
2 /
Session altered.
SQL> SHOW PARAMETER SQL_TRACE
unknown SHOW option "PARAMETER"
unknown SHOW option "SQL_TRACE"
I am using Oracle Database 8.1.6. Any other suggestions ? Thanks.
Regds,
New Bee
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Farnsworth, Dave
INET: DFarnsworth_at_Ashleyfurniture.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).
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: Cary Millsap
INET: cary.millsap_at_hotsos.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).
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 Thu Aug 08 2002 - 11:08:37 CDT