2026-03-12 20:23:15
This commit is contained in:
17
mhouri/loadSPMfromCache.sql
Normal file
17
mhouri/loadSPMfromCache.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
--|-------------------------------------------------------------|
|
||||
--| Author : Mohamed Houri --|
|
||||
--| Date : 08/06/2022 --|
|
||||
--| Scope : Create a SPM baseline from a cursor cache --|
|
||||
--| Usage : @loadSPMfromCache --|
|
||||
--| Remarks : --|
|
||||
--|-------------------------------------------------------------|
|
||||
set serveroutput on
|
||||
declare
|
||||
spm_op pls_integer;
|
||||
begin
|
||||
spm_op := dbms_spm.load_plans_from_cursor_cache (sql_id => '&sqlid'
|
||||
,plan_hash_value => to_number(trim('&plan_hash_value'))
|
||||
);
|
||||
dbms_output.put_line('Plans Loaded into SPB :'||spm_op);
|
||||
end;
|
||||
/
|
||||
Reference in New Issue
Block a user