Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: 'alter session set sql_trace=true' bug or feature ?
VC wrote:
> Hello Niall,
>
> ["Niall Litchfield" ]
>
>>for l_record in (select sysdate from all_objects) loop >> >>null; >>end loop; >>dbms_output.put_line( (dbms_utility.get_time - l_start)/100 >>||'seconds....' ); >>end; >>/
Sorry if I missed something in this thread sofar, but what is actually your problem? If you turn on tracing, then your goal is not to measure elapsed wallclock time for the complete query, but rather create a trace file with explain plan, waits etc.
So while an massivly increased response time might bother you, it doesn't render sql_trace useless.
Except, and this hasn't been mentioned in this thread (or i missed it), when the elapsed time in sql*plus is the same as you find in the resulting trace file.
Regards,
Holger Received on Tue Dec 23 2003 - 06:42:19 CST