Steps to enable 10046/10053 trace
spool check.out set timing on alter session set tracefile_identifier='NAME_OF_TRACE'; 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'; ###### Sql query or the code here Ex: select ename from emp where eid=100 ##### select 'close the cursor' from dual; alter session set events '10046 trace name context off'; spool off exit; sample output of Tkprof: Key callouts: Note : 1) session details like sid/serial # 2)Top problematic SQL and Plan hash value 3)read parse excute fetch i.e fetches /cpu /elapsed time/disk(PIO)/Query(LIO)/current/Rows processed 4) Read Row source info for the query Where it's processing more Rows Types of Joins Access paths picking What are cost and cardinality By noticing all these details we will come to know where the issue is and try to fix TKPROF: Release 10.1....