今天发现一个PLAN_HASH_VALUE=0的SQL,查了下PLAN_HASH_VALUE为0原因,记录一下 根据 文档 ID 1587381.1,这是正常现象,主要发生在以下语句: 不带查询的INSERT/DELETE语句,这种SQL不需要访问路径,没有执行计划 使用绑定变量的select语句,已进行解析但还没有实际执行,执行计划会延迟到执行时生成。 参考 Reasons for a...
这两个hash_value 是数据库内部使用的一个hash值 hash_value 具体可对应到 v$sql 的hash_value plan_hash_value 则对应到执行计划相关表的hash值
You generated the execution plan for the following query in the plan table and noticed that the nested loop join was done. After actual execution of the query, you notice that the hash join was done in the execution plan:SQL> SELECT product_nameFROM order_items o, product_infornation p...