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!

Do I need to fix plan after sql patch

svmsApr 23 2021

Hello.
I use dbms_sqldiag.create_sql_patch with hint that contains SEL$07BDC5B4 query block for TBL@SEL$5. It's different for different sql text. Do I need to fix plan with dbms_spm.load_plans_from_cursor_cache after creating patch? if so how I can reproduce changing sql_id (and query block name) without changing sql query. I tried alter system flush shared_pool; DBMS_SHARED_POOL.PURGE; restarting database with no success: sql_id is getting restored in v$sql after calling sql.
Thanks in advance.

This post has been answered by James Su on Apr 27 2021
Jump to Answer
Comments
Post Details
Added on Apr 23 2021
5 comments
226 views