用pl/sql在看sql的执行计划的时候,“耗费”与“基数”没有数值,不知道是什么原因!
恳请各位的大侠出手帮忙!

解决方案 »

  1.   

    收集过统计信息吗?用sqlplus看呢?
      

  2.   


    SQL> set autot on;
    SQL> select * from dual;D
    -
    X
    执行计划
    ----------------------------------------------------------
    Plan hash value: 272002086--------------------------------------------------------------------------
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    --------------------------------------------------------------------------
    |   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
    --------------------------------------------------------------------------
    统计信息
    ----------------------------------------------------------
             24  recursive calls
              0  db block gets
              6  consistent gets
              3  physical reads
              0  redo size
            404  bytes sent via SQL*Net to client
            385  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processedSQL>