Tuesday, June 14, 2011

CPU Used for Sorts Wait

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

I/O found on temporary tablespace may indicate sort operations are consuming CPU time of the statement.
CPU Used for Sorts

Description
What to do next
In the Activity workspace, examine temporary tablespace overtime I/O consumption for the statement and for the programs activating the statement.
Advice
To reduce the I/O consumption for the sort operation, consider the following solutions:
n   Change the SORT_AREA_SIZE to a higher value.
If you are using PGA settings, you can change the PGA_Aggregated_Target, so as to avoid sort and hash area size problems. You can either change the values for a specific session using the Alter Session command, or for the entire instance.
n   Try to solve the problem at the statement level by one of the following options:
Add an index to prevent a sort.
If your statement has an Order by clause that has columns for a single table, check whether you can add an index. In some cases, you may get an index recommendation that prevents a sort. If you are considering adding an index, you must check the effect of that index.
To analyze that effect, launch to the What if workspace.
Identify the heavy sort or hash consumer step.
Run a statement with statistics_level=all. Click the Run & Compare tab. Examine the LAST_TEMPSEG_SIZE and MAX_TEMPSEG_SIZE in the extended


   
Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: