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!

how can I stop the hard parse on a specific sql_id ?

James SuNov 29 2023

We have a complicated SQL which involves many joins and views. Each time the hard parse takes around 1 minute while the execution is only 10+ seconds. How can I stop the hard parse from happening? I tried creating a sql baseline and set it to "fixed", but the hard parse still happens. I also tried dbms_spm.configure('AUTO_CAPTURE_SQL_TEXT',v_sql_text,FALSE) but the sql text is too big to fit into the varchar2 parameter.

This post has been answered by Mohamed Houri on Nov 30 2023
Jump to Answer
Comments
Post Details
Added on Nov 29 2023
26 comments
1,128 views