February 14, 2013
A couple of days ago I noticed that an interesting set of search keywords were used to access this blog. The search keywords:
What does it mean when a select statement in Oracle is using 100% cpu
I had two thoughts when I first saw that set of search keywords:
- Well Done!
- What an inconsiderate Oracle developer!
I feel a bit conflicted about the two first thought answers. Think about the above bullet points for a moment.
I was interested enough in the keywords that were phrased in the form of a question, that I went though the search keywords used to access this blog for the last two weeks, and found the following related search keywords:
- ora-01861 Oracle causing cpu 100% usage
- Oracle one session 100% cpu
- Oracle cpu utilisation 100%, is it a good or bad sign
- Oracle database server cpu utilization is 100
Interesting, and possibly thought provoking. I recalled an article that I wrote on this blog roughly three years ago.
Possible related thoughts of a temporarily rogue DBA:
- I fixed your problem without changing the execution plan… take a look at the EXPLAIN PLAN output for yourself.
- I fixed your problem without changing the execution plan… the server is more efficient now that we have consolidated three more database instances onto the server.
- I fixed your problem without changing the execution plan… that PGA_AGGREGATE_TARGET parameter was clear on the other side of 100 MB, so I set it to 10 MB.
- I fixed your problem without changing the execution plan… a group of the guys in the office found a way to load the game Doom on the server.
- I fixed your problem without changing the execution plan… I took half of the hard drives out of the array and moved the server to a 10 Mb hub.
Took a close look at the bulletpointed search terms. If someone were to ask you one of the following questions, how would you respond if you were earnestly attempting to help the person?
- What does it mean when a Select statement in Oracle is using 100% CPU?
- The server admin reported that the Oracle database server cpu utilization hits 100% too frequently, what should I do about the problem?
- Oracle is throwing an ORA-01861 error, and that is causing 100% CPU usage. What should I do?
Share your thoughts.
Summary of Suggestions/Causes Shared by Readers (Last Updated February 14, 2013):
- Intended or unintended Cartesian product between row sources – does the query have a DISTINCT clause. (Rodger)
- Intended or unintended data type conversions – is the data model storing numbers or date values in VARCHAR2 columns. (Jeremy Kendrick)