FAST DUAL執行計劃?
今天發現select sysdate from dual ,它的執行計劃與以前不一樣,結果如下:
http://www.itpub.net/518843.html
SQL> select sysdate from dual ;
Execution Plan
----------------------------------------------------------
0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1)
1 0 FAST DUAL (Cost=2 Card=1)
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
0 consistent gets
0 physical reads
0 redo size
408 bytes sent via SQL*Net to client
431 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
發現邏輯讀與物理讀都是0,這個是10g的新特性。
FAST DUAL
Description
Provides a more efficient implementation for statements which select a single-row result from DUAL such as SYSDATE, USER or arithmetic calculations
Versions
This operation is implemented in the following versions
|
Example
This example was developed using Oracle 10.2.0.1 on Linux
This example does not require any table definitions
The statement
SELECT SYSDATE FROM dual;
generates the following execution plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 FAST DUAL
If the "_fast_dual_enabled" parameter is set to FALSE (default TRUE) then the FAST DUAL operation is disabled. For example
ALTER SESSION SET "_fast_dual_enabled" = FALSE;
Now the statement
SELECT SYSDATE FROM dual;
generates the following execution plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 TABLE ACCESS (FULL) OF 'DUAL'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-82829/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle10g的FAST DUAL執行計劃OracleAST
- 執行計劃-1:獲取執行計劃
- 10G FAST DUAL 的優化AST優化
- 執行計劃
- 分析執行計劃優化SQLORACLE的執行計劃(轉)優化SQLOracle
- oracle sqlprofile 固定執行計劃,並遷移執行計劃OracleSQL
- 【sql調優之執行計劃】獲取執行計劃SQL
- SYBASE執行計劃
- MySQL 執行計劃MySql
- MySQL執行計劃MySql
- sql 執行計劃SQL
- ORACLE執行計劃Oracle
- 【執行計劃】Oracle獲取執行計劃的幾種方法Oracle
- 【Oracle】-【索引-HINT,執行計劃】-帶HINT的索引執行計劃Oracle索引
- 分析執行計劃最佳化SQLORACLE的執行計劃(轉)SQLOracle
- 【PG執行計劃】Postgresql資料庫執行計劃統計資訊簡述SQL資料庫
- oracle 固定執行計劃Oracle
- Oracle sql執行計劃OracleSQL
- explain執行計劃分析AI
- mysql執行計劃explainMySqlAI
- mysql explain 執行計劃MySqlAI
- MySQL執行計劃解析MySql
- 分割槽 執行計劃
- 執行計劃繫結
- SQL Server執行計劃SQLServer
- 執行計劃詳解
- 啟動執行計劃
- SQL的執行計劃SQL
- 執行計劃的理解.
- min ? max ? 執行計劃?
- 檢視執行計劃
- SQL執行計劃分析SQL
- 如何看懂執行計劃!
- 閱讀執行計劃
- 執行計劃執行步驟原則
- MySQL執行計劃解析(四)MySql
- Explain執行計劃詳解AI
- mongodb執行計劃解釋MongoDB