QuestionQ51

VerifiedTuning SQL Statements

A complex SELECT statement with 15 bind variables has an unusually long execute phase.

Review this SQL trace extract for the query:

Question Image

What is the query doing that causes the execute phase to take so long?

Explanation

The execute call is CPU-bound: its CPU time (29.31 seconds) nearly equals its elapsed time (29.40 seconds), with no physical disk reads and no logical buffer reads recorded. Parsing takes no measurable time, and rows returned to the client are accounted for during fetch calls rather than this execute time. Oracle documents CPU as CPU time for the call and ELAPSED as total elapsed time; DISK, QUERY, and CURRENT represent physical and logical buffer reads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!