The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> Oracle Development
|
Oracle Query Optimization - steps, tools, and resources?
Discuss Oracle Query Optimization - steps, tools, and resources? in the Oracle Development forum on Dev Shed. Oracle Query Optimization - steps, tools, and resources? Oracle Development forum discussing administration, Oracle queries, and other Oracle-related topics. Oracle is known as one of the most robust multi-platform relational databases available.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 1st, 2012, 08:21 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 1
Time spent in forums: 3 m 57 sec
Reputation Power: 0
|
|
|
Oracle Query Optimization - steps, tools, and resources?
1. For tuning SQL queries, is the following the general approach:
- Determine which SQL queries are the most active (V$SQLAREA and V$SQL, stats$sql_summary, dba_hist_sql_summary table)
- For the most active:
- - Add statistics to the tables to help with the CBO (Cost-Based Optimizer)
- - Determine EXECUTION PLAN using Oracle’s EXPLAIN utility
- - Interpret the EXECUTION PLAN and use rules-of-thumb based on the information in the PLAN to determine what you need to do (e.g. a) re-ordering tables in join, enabling indexes to eliminate the need for full table scans , b) reducing the number of sorts, merges, and filtering operations required, c) reducing the number of rows that need to be sorted, filtered, or merged, d) add SQL hints to modify the plan)
- - Re-run the EXECUTION PLAN and see if it’s better
- Other:
- - Re-write SQL with Global Temporary Tables
- - Put the SQL into PL/SQL
2. What are the differences are in the following?
- SQL Tuning Wizard (guides you through the whole tuning process, uses Oracle SQL Analyze)
- Oracle Tuning Pack: Oracle Expert (replaces SQL Tuning Wizard?), Oracle Query Tuning (replaces Oracle SQL Analyze?), Oracle Index Tuning Wizard
- Oracle 11g SQL Performance Analyzer (SPA
3. How do we access the above?
4. Does anyone have any recommendations for best documentation (books, online sites) for oracle query tuning, including EXPLAIN PLAN interpretation?
Thanks --
Bill
|

October 1st, 2012, 08:33 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
Quote: | Originally Posted by dunkindecaf 4. Does anyone have any recommendations for best documentation (books, online sites) for oracle query tuning, including EXPLAIN PLAN interpretation?l | The manual?
__________________
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
http://forums.devshed.com/misc.php?do=bbcode#code
Tips on how to ask better questions:
http://tkyte.blogspot.de/2005/06/how-to-ask-questions.html
http://wiki.postgresql.org/wiki/SlowQueryQuestions
http://catb.org/esr/faqs/smart-questions.html
|

October 3rd, 2012, 04:20 AM
|
 |
Humble Learner
|
|
Join Date: Jul 2007
Location: Bangalore, India
|
|
|
check this.
http://books.google.co.in/books?id=lkD7vgygSJEC&printsec=frontcover#v=onepage&q&f=false
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|