oracle explain plan for的用法
zzj@rac1>EXPLAIN PLAN FOR SELECT * FROM T_USER;
Explained.
zzj@rac1>SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------
Plan hash value: 2508602004
----------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 23 | 1817 | 4 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| YANG_T | 23 | 1817 | 4 (0)| 00:00:01 |
----------------------------------------------------------------------------
Note
-----
- dynamic sampling used for this statement (level=2)
12 rows selected.
Explained.
zzj@rac1>SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------
Plan hash value: 2508602004
----------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 23 | 1817 | 4 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| YANG_T | 23 | 1817 | 4 (0)| 00:00:01 |
----------------------------------------------------------------------------
Note
-----
- dynamic sampling used for this statement (level=2)
12 rows selected.
從下面的查詢結果中可以看出使用EXPLAIN PLAN FOR 檢視執行計劃時oracle是沒有執行要檢視執行計劃的sql 語句的。
PL/SQL Developer使用explain plan(F5)功能。
相關文章
- Oracle EXPLAIN PLAN用法OracleAI
- explain plan 的用法AI
- ORACLE EXPLAIN PLAN的總結OracleAI
- Explain PlanAI
- explain plan VS execution planAI
- USE EXPLAIN PLANAI
- Explain for the Statistics of Execution PlanAI
- Oracle執行計劃Explain Plan 如何使用OracleAI
- oracle 使用explain plan分析查詢語句OracleAI
- Oracle 執行計劃(Explain Plan) 說明OracleAI
- Oracle 執行計劃(Explain Plan) 說明OracleAI
- (轉)oracle效能工具包Explain plan、Autotrace、TkprofOracleAI
- 配置oracle 解釋執行計劃--explain planOracleAI
- Use the statspack to generate the accurate explain planAI
- explain plan 學習記錄AI
- 【Explain Plan】10g中的PLAN_TABLE$臨時表AI
- Error: cannot fetch last explain plan from PLAN_TABLEErrorASTAI
- Using Statspack to Record Explain Plan DetailsAI
- 用EXPLAIN PLAN 分析SQL語句AISQL
- toad顯示explain plan的問題AI
- oracle explain plan for獲取執行計劃並不可靠.OracleAI
- EXPLAIN PLAN FOR 和 SET AUTOTRACE之間的差別AI
- 【Explain Plan】檢視SQL的執行計劃AISQL
- EXPLAIN PLAN and SQL*PLUS AUTOTRACE may not generate actual plansAISQL
- autotrace explain plan 相關引數解釋AI
- MySQL 的 EXPLAIN 語句及用法MySqlAI
- mysql效能分析之explain的用法MySqlAI
- MySQL中explain的幾點用法MySqlAI
- set autot traceonly與explain plan for的一點小區別AI
- 使用EXPLAIN PLAN來檢視執行計劃AI
- TOAD中檢視執行計劃(Explain Plan)AI
- [MySql]explain用法及實踐MySqlAI
- 【最佳化】explain plan for 方式存取執行計劃AI
- mysql explain用法和結果的含義MySqlAI
- 【執行計劃】格式化EXPLAIN PLAN的輸出結果AI
- [20171201]關於explain plan.txtAI
- oracle execution planOracle
- 11G新特性,explain plan 可以評估出索引大小AI索引