Oracle query execution time

后端 未结 4 577
暖寄归人
暖寄归人 2021-01-03 18:31

I would like to get the query execution time in Oracle. I don\'t want the time Oracle needs to print the results - just the execution time.

In MySQL it is easy to ge

4条回答
  •  無奈伤痛
    2021-01-03 19:02

    I'd recommend looking at consistent gets/logical reads as a better proxy for 'work' than run time. The run time can be skewed by what else is happening on the database server, how much stuff is in the cache etc.

    But if you REALLY want SQL executing time, the V$SQL view has both CPU_TIME and ELAPSED_TIME.

提交回复
热议问题