Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 1st, 2012, 08:21 AM
dunkindecaf dunkindecaf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 1 dunkindecaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old October 1st, 2012, 08:33 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,685 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 53 m 13 sec
Reputation Power: 284
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

Reply With Quote
  #3  
Old October 3rd, 2012, 04:20 AM
debasisdas's Avatar
debasisdas debasisdas is offline
Humble Learner
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Location: Bangalore, India
Posts: 279 debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1142847 Folding Title: Super Ultimate Folder - Level 3
Time spent in forums: 2 Months 3 Days 4 h 48 m 5 sec
Reputation Power: 118
Send a message via ICQ to debasisdas Send a message via AIM to debasisdas Send a message via MSN to debasisdas Send a message via Yahoo to debasisdas Send a message via Google Talk to debasisdas Send a message via Skype to debasisdas
check this.

http://books.google.co.in/books?id=lkD7vgygSJEC&printsec=frontcover#v=onepage&q&f=false

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Oracle Query Optimization - steps, tools, and resources?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap