- Be able to read execution plan
- visual approach to assist understanding
- pay attention to the Predicate Information section
- Obtaining the execution plan
- dbms_xplan.display_curosr
- Cardinality
- cardinality = selectivity * ( number of input rows)
- COST
- using dbms_xplan.display_cursor to obtain E-row vs A-row ( set statistical_level=all; or using /* gather_plan_statistics */ )
- AWR, ADDM, ASH and wait interface - able to identify the offensive SQLs
- bind variable peeking and plan instability
- 10046 trace & tkprof
- 10053 trace
- join method and join order
- Able to check table indexes and table column statistics ( HISTOGRAM)
- Using top-n query to show the data distribution
- Talk to lead developers
- Fix a bad query or method of improvement
- hints,
- gather stats,
- explore parallelism,
- plan stability: sql profile( sqlt coe* script) and sql plan baseline (sqlt coe* script)
No comments:
Post a Comment