Loading topic
EXPLAIN PLAN and DBMS_XPLAN.DISPLAY from the previous chapter, and that you know what a join, an index and a primary key are. Here you will learn what each column of a plan means and how the indentation encodes a tree. You will also learn the rule for the order i5 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY, and that you know a plan is a tree of operations with an Id column. You need a schema such as HR. For the V$ examples you also need privileges on the dynamic performance views. The chapter covers the format argumen5 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY, and that you know how to read plan indentation and execution order from the earlier chapters. You should also know the difference between an access path and a join.5 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY and that you can read a plan as a tree. It also assumes you know what a B-tree index is and what its leading column means. If you can find the operation with the deepest indentation and say that it runs first, you have enough b6 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY, and that you know the plan table columns and the Predicate Information section. It covers the last block of a plan, the Note section. It is short, but it often explains why a plan looks the way it does4 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY, and that you can read the basic columns of a plan table. It also assumes you know what a bind variable is. The goal is to learn when an estimated plan can be trusted and when you need the plan of a cursor that actually ran.6 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY. That means you know the Id, Operation and Name columns, the indentation rules, and the difference between access and filter predicates. You also need SELECT privilege on V$SQL, V$SQL_PLAN, V$SESSION6 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY, read the operation tree, and run DBMS_XPLAN.DISPLAY_CURSOR. It also assumes you can select from V$SQL and V$SESSION. The goal here is to read the runtime columns that ALLSTATS LAST adds, and to5 min readDBMS_XPLAN.DISPLAY_CURSOR and the GATHER_PLAN_STATISTICS hint, and that you know the Starts, E-Rows, A-Rows, Buffers and A-Time columns by name. Here you will learn to compare them to find the operation where the optimize5 min readEXPLAIN PLAN and DBMS_XPLAN.DISPLAY_CURSOR, and that you know the basic access paths (full scan, index range scan) and join methods (nested loops, hash join). It also assumes you know what the Predicate Inf6 min read