Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CPU time,IO wait time and sql elapsed time

Sekar_BLUE4EVERJan 1 2018 — edited Jan 2 2018

Hi guys,I am trying to understand how Oracle wait interface calculates the CPU time and IO time and the relation between them,

Suppose I execute a query

Elapsed time - Total time spent executing the query

CPU time - Time spent on CPU by the query

I/O time -  Time spent doing I/O for the query, that is to read the blocks from disk to memory(like db sequential read and scattered read)

  • suppose a query is in CPU and now it goes to read a block from the disk , Is the time spent reading the block added to I/O time metric or CPU time metric as the query  was in CPU
  • Does doing I/O needs some CPU and is the CPU time  included in I/O wait time metric?
  • Elapsed time = CPU time + I/O time. Is my understanding right?
  • DB time is the total time spent in the database including CPU plus time taken to do the I/O operations. Is this right?

Thanks

This post has been answered by Stefan Koehler on Jan 1 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2018
Added on Jan 1 2018
3 comments
3,101 views