select dbmsinfo('_bio_cnt'),dbmsinfo('_dio_cnt'),dbmsinfo ('_cpu_ms'),dbmsinfo('_et_sec');
run the query;
select dbmsinfo('_bio_cnt'),dbmsinfo('_dio_cnt'),dbmsinfo ('_cpu_ms'),dbmsinfo('_et_sec');
and subtract the first set of dbmsinfo values from the second. The difference is the query time. _bio_cnt is the number of messages to and from the client (usually not very interesting), _dio_cnt is the disk IO count, _cpu_ms is the CPU time in milliseconds, and _et_sec is the wall clock time in seconds. All are for your session only.
|