请问同一条SQL,分别执行两次(相隔一段时间),为什么会出现不同的执行计划。并且第二次的运行时间相对长很多,另外最好能解析该执行计划,谢谢!!
SQL 〉explain plan for select * from tssp0_inf_contract_5 a,tssp0_inf_bus b,tssp0_inf_identify_v1 c,tssp0_inf_account d
where a.vc_bus_id = b.vc_bus_id
and b.vc_bus_id = c.vc_bus_id
and a.vc_account_id = d.vc_account_id
and a.vc_node_id = 'JD-006'
and c.vc_identify_id = 'SB-0000000011'
SQL 〉select * from table(dbms_xplan.display);
#######################################################################
PLAN_TABLE_OUTP
--------------------------------------------------------------------------------------------------------
Plan hash value: 2600685752