set serveroutput on declare l_num_plans PLS_INTEGER; begin l_num_plans := DBMS_SPM.LOAD_PLANS_FROM_SQLSET (sqlset_name=> 'LongRunningSQL1',sqlset_owner=>'DBADMIN' ,basic_filter=>'sql_id=''83fhwyajathc3'' and plan_hash_value=3643960001 '); DBMS_OUTPUT.put_line('Number of plans loaded: ' || l_num_plans); end; / exit
Documented here
Hi Vegard,
ReplyDeleteCould you please share more information on this. When to use this and what is the approach. ?