Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle Trace

Status
Not open for further replies.

varajan

Technical User
Oct 5, 2001
42
0
0
IN
Is there a way to enable Oracle Trace - something similar to ODBS Trace ?
 
Yes, you can do it for one session like this:

dbms_system.set_sql_trace_in_session(SID,SerialNb,true);
where you may find SID and SerialNB in v$session:
SELECT SID, SERIAL# SerialNb FROM v$session;

And you also can do it for all sessions like this (under SYS):

alter system set events '10046 trace name context forever, level 4'

and then you can disable the traces with the folloowing command:

alter system set events '10046 trace name context off'

You will find the trace files in the $ORACLE_BASE/admin/$ORACLE_SID/udump directory (this settings could be changed in the init.ora file).

Greetings,
Alain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top