USE EXPLAIN PLAN
SQL> explain plan for
2 select ename from scott.emp;
Explained.
@$ORACLE_HOME/rdbms/admin/utlxpls.sql
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 3956160932
--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 14 | 84 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 84 | 3 (0)| 00:00:01 |
--------------------------------------------------------------------------
8 rows selected.
SQL> select plan_table_output from table(dbms_xplan.display('plan_table',null,'serial'));
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 3956160932
--------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
--------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 14 | 84 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| EMP | 14 | 84 | 3 (0)| 00:00:01 |
--------------------------------------------------------------------------
8 rows selected.
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9925929/viewspace-976712/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Use the statspack to generate the accurate explain planAI
- 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
- Using Statspack to Record Explain Plan DetailsAI
- 用EXPLAIN PLAN 分析SQL語句AISQL
- 【Explain Plan】10g中的PLAN_TABLE$臨時表AI
- Oracle執行計劃Explain Plan 如何使用OracleAI
- oracle 使用explain plan分析查詢語句OracleAI
- EXPLAIN PLAN and SQL*PLUS AUTOTRACE may not generate actual plansAISQL
- 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
- 使用alter session set current_schema=scott用explain plan for檢視scott使用者的sqlSessionAISQL