You know that Query optimizer is responsible to determine the best execution/explain plan. In many cases you may be astonished that the data is same in both database and you have gather statistics but both database give different execution plan. The possible reason for it it the variation of initialization parameter between two database. Now [...]
Archive for the ‘Index And CBO’ Category
Parameters that enable and control Query Optimizer Features
Posted in Index And CBO, Performance Tunning, tagged Database, Oracle, Oracle Database, Query optimizer, sql on January 19, 2011 | Leave a Comment »
Choosing an Optimizer Goal
Posted in Index And CBO, Performance Tunning, tagged Database, Oracle Forms, Parameter, Query optimizer, sql on January 19, 2011 | Leave a Comment »
By default, the goal of the query optimizer is the best throughput. This means that it chooses the least amount of resources necessary to process all rows accessed by the statement. Oracle can also optimize a statement with the goal of best response time. This means that it uses the least amount of resources necessary [...]
Optimizer Operations while executing SQL statement
Posted in Index, Index And CBO, Performance Tunning, tagged Oracle, Oracle Database, Query optimization, sql on January 19, 2011 | Leave a Comment »
Whenever you write an sql query, the query can be executed in many different ways, such as full table scans, index scans, nested loops, and hash joins. The query optimizer checks the various ways and determines the most efficient way to execute a SQL statement after considering many factors related to the objects referenced and [...]
ORA-01450: maximum key length (3215) exceeded
Posted in Administration, Index And CBO, Performance Tunning, tagged Database, Index, ORA-01450, Oracle, Rebuild, table on January 4, 2011 | 2 Comments »
Error Description Whenever I try to rebuild index online then it fails with message ORA-00604: error occurred at recursive SQL level 1 along with ORA-01450: maximum key length (3215) exceeded. Below is the scenario. SQL> create table tab1(a varchar2(3000),b varchar2(2000)); Table created. SQL> create index tab1_I on tab1(a,b); Index created. SQL> alter index tab1_I rebuild [...]
Optimizer_mode – ALL_ROWS or FIRST_ROWS?
Posted in Index And CBO, Performance Tunning, tagged Index on December 30, 2010 | Leave a Comment »
Out of all Oracle RDBMS modules, optimizer code is actually the most complicated code and different optimizer modes seem like jack while lifting your car in case of a puncture. This paper focuses on how optimizer behaves differently when you have optimizer mode set to ALL_ROWS or FIRST_ROWS. Possible values for optimizer_mode = choose/ all_rows/ [...]
