Home » RDBMS Server » Server Administration » Oracle Trace (Oracle 10g, Linux)
Oracle Trace [message #493683] Wed, 09 February 2011 06:29 Go to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Hi,

Currently we are using the trace to check the database performance. The below are the command to activate the trace session:-

SQL> ALTER SESSION SET EVENTS '10046 trace name context forever, level 12';

I want to clear my concepts-- what is "EVENTS 10046" and "context forever"?

Also how can I activate the memory tracing in Oracle?

Please advice.

Thanks-
P
Re: Oracle Trace [message #493686 is a reply to message #493683] Wed, 09 February 2011 06:35 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
If you don't know what is an event and what it means then don't use it.
The standard way to activate trace is
alter session set sql_trace = true;

or use dbms_session (or dbms_monitor if you are a DBA) package:
exec dbms_session.session_trace_enable (true, true)


Regards
Michel
Re: Oracle Trace [message #493835 is a reply to message #493683] Thu, 10 February 2011 03:16 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Thanks for your suggestion.

Still I am very interested what is meant by "'10046 trace name context forever, level 12'.

Is there is any docs form where I can cleadr my concepts or at least any link for the same?

Thanks-
P
Re: Oracle Trace [message #493842 is a reply to message #493835] Thu, 10 February 2011 03:28 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Metalink has notes on events.

Regards
Michel

[Updated on: Thu, 10 February 2011 03:29]

Report message to a moderator

Re: Oracle Trace [message #494392 is a reply to message #493683] Mon, 14 February 2011 03:32 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Hi,
could you please let me know the DOC ID for the same?

Thanks-
P
Re: Oracle Trace [message #494401 is a reply to message #494392] Mon, 14 February 2011 04:59 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Did you search?

Regards
Michel
Re: Oracle Trace [message #494487 is a reply to message #494401] Tue, 15 February 2011 03:27 Go to previous messageGo to next message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
Yes, I have searched, but not able to find the relevant DOC ID.

Thanks-
P
Re: Oracle Trace [message #494490 is a reply to message #494487] Tue, 15 February 2011 03:31 Go to previous messageGo to next message
Michel Cadot
Messages: 68648
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
So forget it.

Regards
Michel
Re: Oracle Trace [message #494492 is a reply to message #494490] Tue, 15 February 2011 03:34 Go to previous message
pokhraj_d
Messages: 117
Registered: December 2007
Senior Member
So forget it.


Thanks for your support.

Thanks-
P
Previous Topic: no. of records in a table: count(*) or num_rows
Next Topic: change attributes by dbms_scheduler
Goto Forum:
  


Current Time: Wed May 08 14:05:36 CDT 2024