Create sql baseline from cursor cache
DECLARE
oracle configurationintermediate
by OracleDba
12 views
DECLARE
123456789101112131415
DECLARE
l_plans_loaded PLS_INTEGER;
BEGIN
l_plans_loaded := DBMS_SPM.load_plans_from_cursor_cache(
sql_id => '&sql_id');
END;
/
-- Create baseline with a particular hash value
DECLARE
l_plans_loaded PLS_INTEGER;
BEGIN
l_plans_loaded := DBMS_SPM.load_plans_from_cursor_cache(
sql_id => '&sql_id', plan_hash_value => '&plan_hash_value');
END;
/Please to add comments
No comments yet. Be the first to comment!