Home > Debug, PL/SQL, Parameters, Scripts, Tuning, trace > How does one turn SQL Trace on for performance capture?

How does one turn SQL Trace on for performance capture?

If you need to capture SQL statements to replay in another instance you can turn trace on and capture in the trace files located in the udump folder.

– turn timing on.
alter session set timed_statistics=true;

– set to unlimited otherwise you may get an incomplete trace file when dump file size limit is reached.

alter session set max_dump_file_size=unlimited;

alter session set events ’10046 trace name context forever, level 12′;

– ******* run all of your processing here *******

alter session set events ’10046 trace name context off’;

Categories: Debug, PL/SQL, Parameters, Scripts, Tuning, trace Tags:
  1. No comments yet.
  1. No trackbacks yet.
6 visitors online now
6 guests, 0 members
Max visitors today: 6 at 12:04 am UTC
This month: 11 at 09-07-2010 12:30 pm UTC
This year: 62 at 07-28-2010 05:49 pm UTC
All time: 62 at 07-28-2010 05:49 pm UTC