Skip to Main Content

SQL & PL/SQL

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!

Failed to generate same hash plan from another DB with the same schema and indexes by SQL patch

user6643416Sep 3 2022 — edited Sep 3 2022

Screenshot 2022-09-03 at 12.10.23 PM.pngAbove show the outcome and differences. As outlines from the left is used to apply for SQL patch on the right and the outcome on the right shows that optimiser has added on with NO_ACCESS to both OUTLINE_LEAF thus 4 ACCESS HINTS to the leafs were became Unused or ignored shown in the Hint Report. How could I make further changes to direct optimiser to follow the same hash plan on the left?
I have attached both source and target plans in text format. The target DB was using all outlines copied from source DB but different plan was generated.
SQLID_Plans.zip (4.61 KB)
Thanks.

Comments
Post Details
Added on Sep 3 2022
1 comment
109 views