User Tools

Site Tools


adaptiveplans

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
adaptiveplans [2015/07/22 13:40] z0hpvkadaptiveplans [2025/03/08 22:24] (current) – external edit 127.0.0.1
Line 6: Line 6:
 <code>SELECT * FROM TABLE(DBMS_XPLAN.display_cursor(format => 'adaptive'));</code> <code>SELECT * FROM TABLE(DBMS_XPLAN.display_cursor(format => 'adaptive'));</code>
 Use the following to also see the expected and actual cardinalities.\\ Use the following to also see the expected and actual cardinalities.\\
 +You will also need to add the GATHER_PLAN_STATISTICS hint to the SQL query.
 <code>SELECT * FROM TABLE(DBMS_XPLAN.display_cursor(format => 'adaptive allstats last'));</code> <code>SELECT * FROM TABLE(DBMS_XPLAN.display_cursor(format => 'adaptive allstats last'));</code>
 With an adaptive plan you may see differences between the estimated rows (E-Rows) and actual rows (A-Rows).\\ With an adaptive plan you may see differences between the estimated rows (E-Rows) and actual rows (A-Rows).\\
  
-The v$SQL view has a new column called IS_RESOLVED_ADAPTIVE_PLAN.\\ +The V$SQL view has a new column called IS_RESOLVED_ADAPTIVE_PLAN.\\ 
-This column can have a value of N, Y or null.\\+This column can have a value of null, Y or N\\
   * Null : Non-Adapative Plan   * Null : Non-Adapative Plan
   * Y    : Adaptive Plan and a final plan has been selected   * Y    : Adaptive Plan and a final plan has been selected
adaptiveplans.1437572411.txt.gz · Last modified: 2025/03/08 22:23 (external edit)