Factor that can cause the execution plan of a query to change

          

Factor that can cause the execution plan of a query to change


Oracle - Explain the factor that can cause the execution plan of a query to change. posted by Babu Kunwar
<<Previous   Next>>

Explain the factor that can cause the execution plan of a query to change.

Execution plans are the steps that the database will go through while executing queries. They are generated via the explain plan or set auto trace commands. The execution plans can and do change as the underlying optimizer inputs change. Execution plan can differ or change with respect to two factors:

Different Schema
Different Cost

Different Schemas can affect the Execution plan to change on the basis of the following factors: Firstly if the execution and explain plan happen to be on different databases. Secondly if two users differs in statement. For example the user explaining the statement is different from the user running the statement. Which means that two users might be pointing to different objects in the same database, which results in different execution plans. Thirdly when schema changes between the two operations.

Different Cost can also lead a user to change the execution plan.



Write your comment - Share Knowledge and Experience


<<Previous   Next >> 
More links
Oracle/PLSQL indexes

What is an Index? Explain how to create an Index.
What is Function-Based Index? Create a Function-Based Index.........

Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring