Use the statspack to generate the accurate explain plan
Get the snapshot with level=>6
-------------------------------------------
exec statspack.snap(i_snap_level => 6);
exec statspack.snap(i_snap_level => 6);
Generate the report
------------------------------
@?/rdbms/admin/spreport.sql
To find out the "old hash value" of the problem sql statement.
Then run the following script. to generate the report according to the specific Hash Value as input
@?/rdbms/admin/sprepsql.sql
-------------------------------------------
exec statspack.snap(i_snap_level => 6);
exec statspack.snap(i_snap_level => 6);
Generate the report
------------------------------
@?/rdbms/admin/spreport.sql
To find out the "old hash value" of the problem sql statement.
Then run the following script. to generate the report according to the specific Hash Value as input
@?/rdbms/admin/sprepsql.sql
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12361284/viewspace-548648/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- USE EXPLAIN PLANAI
- Using Statspack to Record Explain Plan DetailsAI
- EXPLAIN PLAN and SQL*PLUS AUTOTRACE may not generate actual plansAISQL
- Explain PlanAI
- explain plan VS execution planAI
- Script: Script to Simplify the Use of Explain Plan (Doc ID 1019631.6)AI
- Oracle EXPLAIN PLAN用法OracleAI
- Explain for the Statistics of Execution PlanAI
- explain plan 的用法AI
- oracle explain plan for的用法OracleAI
- ORACLE EXPLAIN PLAN的總結OracleAI
- explain plan 學習記錄AI
- Error: cannot fetch last explain plan from PLAN_TABLEErrorASTAI
- 用EXPLAIN PLAN 分析SQL語句AISQL
- 【Explain Plan】10g中的PLAN_TABLE$臨時表AI
- Oracle執行計劃Explain Plan 如何使用OracleAI
- oracle 使用explain plan分析查詢語句OracleAI
- toad顯示explain plan的問題AI
- Oracle 執行計劃(Explain Plan) 說明OracleAI
- autotrace explain plan 相關引數解釋AI
- Oracle 執行計劃(Explain Plan) 說明OracleAI
- EXPLAIN PLAN FOR 和 SET AUTOTRACE之間的差別AI
- 使用EXPLAIN PLAN來檢視執行計劃AI
- TOAD中檢視執行計劃(Explain Plan)AI
- (轉)oracle效能工具包Explain plan、Autotrace、TkprofOracleAI
- 配置oracle 解釋執行計劃--explain planOracleAI
- 【Explain Plan】檢視SQL的執行計劃AISQL
- 【最佳化】explain plan for 方式存取執行計劃AI
- [20171201]關於explain plan.txtAI
- set autot traceonly與explain plan for的一點小區別AI
- 11G新特性,explain plan 可以評估出索引大小AI索引
- autotrace 和explain plan for可能導致執行計劃錯誤AI
- * Recommended Method for Obtaining a Formatted Explain Plan [ID 235530.1]AIORM
- oracle explain plan for獲取執行計劃並不可靠.OracleAI
- 檢視執行計劃方法總結之一:explain plan命令AI
- 【執行計劃】格式化EXPLAIN PLAN的輸出結果AI
- 使用 EXPLAIN PLAN 獲取SQL語句執行計劃 (R0.1)AISQL
- Statspack之一-Statspack簡介