当我像这样查询我的表时select * from mytable,有时(我查询PLSQL开发人员或SQL导航器中的表)查询会快速返回结果,有时需要25-26秒.当然,这不会影响业务交易的表现.我追踪了两种状态并给出了以下结果:
快速时间:
select *
from
mytable
call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.64 1.14 0 169184 0 100
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 3 0.64 1.14 0 169184 0 100
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: …Run Code Online (Sandbox Code Playgroud)