Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tracing for specific SQL ID

Charles MMay 12 2020 — edited May 13 2020

Hi All -

I am helping the team with a performance issue. Oracle has asked to do some tracing on the SQL. We know the SQL ID that we want to trace, but it runs as part of an application process. Thus, we are not able to run it directly. So, for example, MOS has asked us to do the following:

alter session set tracefile_identifier='10046_10053_&your_name';

alter session set timed_statistics = true;

alter session set statistics_level=all;

alter session set max_dump_file_size = unlimited;

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

alter session set events '10053 trace name context forever, level 1';

-- /*Run SQL-s here*/ ------

select 'Verify Close' from dual;

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

alter session set events '10053 trace name context off';

Is it possible to enable the tracing for the SQL/SQL ID that will run as part of the nightly process?

Thanks in advance!

DB Version 12.2.0.1

Regards,

Charles

This post has been answered by Arsalan Dehghanisariyarghan on May 12 2020
Jump to Answer
Comments
Post Details
Added on May 12 2020
9 comments
7,034 views