執行計畫出現COLLECTION ITERATOR PICKLER FETCH

來源:互聯網
上載者:User

執行計畫出現COLLECTION ITERATOR PICKLER FETCH

今天在使用explain plan for查看sql執行計畫時,出現了如下奇怪的執行計畫

  1. SQL> explain plan for select * from test where object_id = 100;
  2. Explained.
  3. SQL> select * from table(dbms_xplan.display());
  4. 14 rows selected.
  5. Execution Plan
  6. ----------------------------------------------------------
  7. Plan hash value: 2137789089
  8. ---------------------------------------------------------------------------------------------
  9. | Id | Operation            | Name | Rows | Bytes | Cost (%CPU)| Time |
  10. ---------------------------------------------------------------------------------------------
  11. | 0 | SELECT STATEMENT        |    | 8168 | 16336 |    29 (0)| 00:00:01 |
  12. | 1 | COLLECTION ITERATOR PICKLER FETCH| DISPLAY | 8168 | 16336 |    29 (0)| 00:00:01 |
  13. ---------------------------------------------------------------------------------------------
  14. Statistics
  15. ----------------------------------------------------------
  16.     14 recursive calls
  17.     12 db block gets
  18.     55 consistent gets
  19.     0 physical reads
  20.     0 redo size
  21.        1414 bytes sent via SQL*Net to client
  22.     519 bytes received via SQL*Net from client
  23.     2 SQL*Net roundtrips to/from client
  24.     1 sorts (memory)
  25.     0 sorts (disk)
  26.     14 rows processed 

經過排查,發現是在使用explain plan for之前執行過set autotrace on,關閉autotrace後執行計畫就顯示正常,一點小知識,記錄以供參考。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.