Currently Executing statement not available in Trace file- Oracle 10g [message #260387] |
Sun, 19 August 2007 07:35 |
orasaket
Messages: 70 Registered: November 2006
|
Member |
|
|
Hi,
I am using Oracle 10g R2 on Linux.
I am tracing session(tkprof) which is executing procedure with many sql queries and DML statements in it.
In the start of the procedure we have a problematic sql statement.
By the time i start tracing the session, the sql query is fired and when i open the trace file i found all the statements excluding the first one, which started EXECUTING by the time i start tracing.
I can not change to code to put dbm_lock.sleep before, or execute immediate 'alter session.. or execute the query from outside
However since many times i faced this problem, i want to know, Is it a normal behavoir of SQL tracing that, currently executing is not recorded in the Trace file? Is there any way around to get it recorded in the trace file?
Thanks and Regards,
OraSaket.
|
|
|
|
|
|
|