Using EXPLAIN and SQL PLAN MANAGMENT (Developer and DBA)
Finding and fixing problem queries has a lot to do with using the tools that are available. Different tools need to be used for different situations. The tools covered in this chapter are Oracle’s provided utilities: SQL TRACE (deprecated, but still works in 11g), TKPROF, EXPLAIN PLAN, and STORED OUTLINES (also known as PLAN STABILITY). With Oracle 10g, these tools were enhanced, including the addition of the DBMS_MONITOR and DBMS_SESSION packages and TRCSESS. The SQL tracing options ...