set serveroutput on VARIABLE cnt NUMBER -- Specifying both the SQL ID and the plan hash value: EXECUTE :cnt := DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE( - sql_id => '5abzqhtfcvr73' - ,plan_hash_value =>7104589 - ,fixed => 'YES' - ,enabled=>'YES'); -- without a specific plan hash value: EXECUTE :cnt := DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE( - sql_id => '5abzqhtfcvr73' - ,fixed => 'YES' - ,enabled=>'YES'); print :cnt; exit
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Thursday, March 15, 2018
How to load a plan from the cursor cache into the SMB
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment