Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: optimizer_max_permutations

Re: optimizer_max_permutations

From: Gaja Krishna Vaidyanatha <gajav_at_yahoo.com>
Date: Wed, 18 Oct 2000 10:58:33 -0700 (PDT)
Message-Id: <10653.119673@fatcity.com>


Hi Marc,

Let me give you the explanation of what the parameter does and a recommendation, based on some production sites where I have it implemented and you can take it from there.

OPTIMIZER_MAX_PERMUTATIONS controls the number of tables that the optimizer will consider as the 'driving table' while building the execution plan for a SQL statement. It defaults to a value of 80000. When set to a value below 80000, say between 79000-79999 (does not really matter what value in that range), it forces the optimizer to try up to 4 different tables as the driving table for queries that involve joins. This results, in the optimizer picking the least expensive of the 4 plans that it generates.

Usually, the default behavior is to build a plan with the smallest table as the driving table. The default behavior may not always generate the most suitable plan, especially for packaged applications like SAP, Oracle Apps., PeopleSoft and Baan. The result of setting this parameter to a value below 80000 is a nominal increase in “parse time”, but a significant potential in reduction of “execution time” of SQL statements. Overall, the queries on your system will benefit significantly.

I personally have not set it to 1000, although it seems very low. You might want to approach this in a more conservative fashion. Since I have no experience with the value 1000, and its repercussions, I cannot comment on it, but for the optimizer to consider upto 4 tables, as your driving table, a value of between 79000 and 79999 is adequate. I personally have set it to 79000, a multiple sites in the past 12 months.

Hope that helps,

Gaja


Gaja Krishna Vaidyanatha
Director, Storage Management Products, Quest Software Inc. Office : (972)-304-1170, E-mail : gajav_at_yahoo.com

Author - Oracle Tuning 101 by Osborne McGraw-Hill "Opinions and views expressed are my own and not of Quest" Received on Wed Oct 18 2000 - 12:58:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US