Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Error Handling in Proc Oracle
  • export import with parameter file. Oracle
  • Drop database in Oracle 10g Oracle
  • How to calculate PROCESSES parameter Oracle
  • Running select from V$ views from remote server Linux/Unix
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Facts about SCN and Rollback Segment Oracle
  • standard Monitoring – 1 Oracle
  • Find total file sizes Linux/Unix
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Good notes on Oracle Events Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Python class import from different folders Python/PySpark
  • Building Our Own Namespaces with “Create Context” Oracle
  • Removing Blank lines from file using grep Linux/Unix

load SPM baseline from cursor cache

Posted on 05-Jun-2025 By Admin No Comments on load SPM baseline from cursor cache
set serveroutput on
accept v_sqlid prompt 'SQLID:'
accept v_phv prompt 'PHV:'
var pvm number
begin
:pvm := dbms_spm.load_plans_from_cursor_cache(sql_id=>'&v_sqlid', plan_hash_value=>&v_phv, fixed =>'NO', enabled=>'YES');
end;
/
EXEC dbms_output.put_line('Number of plans loaded: ' || :pvm);
Oracle, SQL scripts

Post navigation

Previous Post: Drop all SPM baselines for SQL handle

Related Posts

  • Check Oracle installed products using one command Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Index Range Scan Oracle
  • Changing the Global Database Name Oracle
  • Processes Parameter decision Oracle
  • Good notes for shared pool Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Rman Notes -1 Oracle
  • oracle fast start failover best practice Oracle
  • Recovering lost SYS password Oracle
  • get_vmstat.ksh Linux/Unix
  • database trigger failing Oracle
  • online_bkup.sql Oracle
  • SAN Linux/Unix
  • Read CSV file using PySpark Python/PySpark

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme