Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Same PLAN_HASH_VALUE for two different SQL's

854974Apr 13 2011 — edited May 7 2011
Hi,

While I was tuning two similar SQLs, I found the SQLID's are different but the PLAN_HASH_VALUE is same, however its HASH_VALUE is different. May I know how this is possible? Would appreciate if someone can explain the reason.

SQL's :

Both the SQL's are almost same except 'order by' clause.

ORDER BY
T23.OWNER_EMP_ID, T23.SR_AREA

and

ORDER BY
T23.OWNER_EMP_ID DESC, T23.SR_AREA DESC

SQL Details :

sql id plan_hash_value hash_value old_hash_value
fuj9g26dv40m5 2045615068 2612134501 3265038045
0vkx0jjbsxb9x 2045615068 1468968253 1991889131
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2011
Added on Apr 13 2011
9 comments
2,245 views