Problem solve Get help with specific problems with your technologies, process and projects.

Analyzing wait events in Oracle

Expert Brian Peasland explains when to analyze wait events in Oracle.

Explain plan shows everything is fine. But the query is still not performing well. What could be the issue and what are the steps to check?
The next step is to determine where the query is spending its time waiting. For that, you'll have to look at the query's wait events. The following URL's show some information on wait events:

Oracle Performance Tuning Using Event

Interpreting Wait Events To Boost System Performance (PowerPoint presentation download)

This is a big topic, so I cannot go into detail here. But the basic idea is to start a trace in your session with wait events enabled, run the query, and then analyze the trace file. The TKPROF utility can help analyze the wait events. You may find that your query is spending a large amount of time performing sorting to disk. You may find that a slow disk unit is causing problems. There could be other causes too, each of which would be a guess at this point. The wait events will eliminate the guesswork.

This was last published in May 2008

Dig Deeper on Oracle database administration

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.