LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2010, 06:14 AM   #1
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Understanding Oracle Execution Plans


Hi,
As part of my job I often have to write queries in Oracle (10g) and I am experienced enough to see where I should be using an index where possible etc. Most of the time I just let the CBO come up with the best plan however sometimes it obviously doesn't!
Now, I know in general that full scans of large tables aren't good however I don't fully understand an execution plan - ie, I could not look at a complex piece of code, look at it's plan and say "oh, the reason that is performing badly there is because the SBO has chosen to use nested loops rather than a hash join, so if I hint it then it will run quicker!" - this ultimately is where I'm trying to get to!!

Does anyone have any suggestions as to what might be worth reading or doing? I need to understand in what situations a particular action is taken and when another action may be better etc...

Thanks
 
Old 03-30-2010, 11:26 PM   #2
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
Performance Tuning Guide
10g Release 2 (10.2)
B14211-03

Around 6 MB.

End
 
Old 03-31-2010, 01:42 AM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

It's a fairly complex subject, there are no easy "one-size-fits-all" answers. As I'm sure you know, a table-scan can actually be "optimal" under some circumstances ... and is often well-neigh unavoidable under others. As you also know, indexes can improve queries under some circumstances ... and trash the performance of updates and inserts under others.

Oracle has tons of really great information, including the "Performance Tuning Guide" AnanthaP suggested.

These links might help:
http://wiki.oracle.com/page/Performance+Tuning
http://download.oracle.com/docs/cd/B...b14211/toc.htm
http://www.orafaq.com/wiki/Oracle_da...nce_Tuning_FAQ

Good luck!
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Oracle-Sun Plans Missing MySQL LXer Syndicated Linux News 0 09-12-2009 02:50 AM
LXer: Oracle breaks silence on Sun plans in ad LXer Syndicated Linux News 0 09-11-2009 03:12 AM
TNS communication errors with oracle, need help understanding my routes boyd98 AIX 0 10-21-2008 12:45 PM
problem in understanding step by step execution of n-code files Najia Iqbal Programming 5 04-06-2006 12:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration