11GR2的delete全表的執行計劃變化
delete from wxh_tbd;
73338 rows deleted.
Execution Plan
----------------------------------------------------------
Plan hash value: 3904056193
---------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------------
| 0 | DELETE STATEMENT | | 73338 | 358K| 154 (1)| 00:00:01 |
| 1 | DELETE | WXH_TBD | | | | |
| 2 | INDEX FULL SCAN| SYS_C0016055 | 73338 | 358K| 154 (1)| 00:00:01 |
---------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------------
| 0 | DELETE STATEMENT | | 73338 | 358K| 154 (1)| 00:00:01 |
| 1 | DELETE | WXH_TBD | | | | |
| 2 | INDEX FULL SCAN| SYS_C0016055 | 73338 | 358K| 154 (1)| 00:00:01 |
---------------------------------------------------------------------------------
Statistics
----------------------------------------------------------
218 recursive calls
81526 db block gets
255 consistent gets
1 physical reads
30513272 redo size
1133 bytes sent via SQL*Net to client
1268 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
8 sorts (memory)
0 sorts (disk)
73338 rows processed
rollback
Rollback complete.
delete /*+ full(a) */ from wxh_tbd a;
73338 rows deleted.
Execution Plan
----------------------------------------------------------
Plan hash value: 1781138943
------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------
| 0 | DELETE STATEMENT | | 73338 | 358K| 285 (1)| 00:00:01 |
| 1 | DELETE | WXH_TBD | | | | |
| 2 | TABLE ACCESS FULL| WXH_TBD | 73338 | 358K| 285 (1)| 00:00:01 |
------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------
| 0 | DELETE STATEMENT | | 73338 | 358K| 285 (1)| 00:00:01 |
| 1 | DELETE | WXH_TBD | | | | |
| 2 | TABLE ACCESS FULL| WXH_TBD | 73338 | 358K| 285 (1)| 00:00:01 |
------------------------------------------------------------------------------
Statistics
----------------------------------------------------------
127 recursive calls
228792 db block gets
1103 consistent gets
0 physical reads
45173944 redo size
1134 bytes sent via SQL*Net to client
1285 bytes received via SQL*Net from client
4 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
73338 rows processed
可以看到新的執行計劃邏輯讀更少。原因不清楚為什麼
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-711754/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11gr2全外連線優化執行計劃優化
- 11gr2全外連線最佳化執行計劃
- 11gr2全外連線優化執行計劃(二)優化
- 11gr2全外連線優化執行計劃(三)優化
- 執行計劃變化的處理
- 11g改變了DELETE語句的執行計劃delete
- 11gr2全外連線最佳化執行計劃(三)
- 11gr2全外連線最佳化執行計劃(二)
- PostgreSQL執行計劃變化SQL
- 分析執行計劃優化SQLORACLE的執行計劃(轉)優化SQLOracle
- 分析執行計劃最佳化SQLORACLE的執行計劃(轉)SQLOracle
- 執行計劃-5:第一個子操作的變化
- 一條SQL語句的執行計劃變化探究SQL
- 累計的力量,delete全表掃描導致程式執行時間過長。delete
- Oracle訪問表的執行計劃Oracle
- sql執行計劃變更和刪除快取中執行計劃的方法SQL快取
- oracle 執行計劃變更Oracle
- 分割槽表與堆表執行計劃的不同
- alter session force parallel query與執行計劃變化SessionParallel
- 計算表掃描中執行計劃的COST
- 執行計劃變化導致CPU負載高的問題分析負載
- [20131121]奇怪的執行計劃變化.txt
- sql執行計劃是否改變SQL
- 使用hint改變執行計劃
- 【優化】Oracle 執行計劃優化Oracle
- 檢視sql 執行計劃的歷史變更SQL
- oracle分割槽表執行計劃Oracle
- 10月份計劃表(每日執行)
- 執行計劃-資料訪問方式(全表掃描與4種索引的方式)索引
- SQL的執行計劃SQL
- 執行計劃的理解.
- SQLServer統計監控SQL執行計劃突變的方法SQLServer
- 【MySQL】MySQL的執行計劃及索引優化MySql索引優化
- MySQL 5.5 檢視分割槽表的執行計劃MySql
- 【執行計劃】Oracle獲取執行計劃的幾種方法Oracle
- 【Oracle】-【索引-HINT,執行計劃】-帶HINT的索引執行計劃Oracle索引
- 【執行計劃】Oracle 11gR2使用Full outer Joins執行計劃完成全外連線查詢Oracle
- SQL優化案例-改變那些CBO無能為力的執行計劃(一)SQL優化