Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • backspace in SQL Plus not working then..? Linux/Unix
  • Unix split command to split files Linux/Unix
  • executing Function from SQLPLUS prompt Oracle
  • fuser to check who is using diretory Linux/Unix
  • find_longsql.sql Oracle
  • Database logon trigger issue Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Find nth max and min. Oracle
  • Goog notes on X$ tables Oracle
  • runon_allcdbs_find_pdbs.sh Linux/Unix
  • Error Handling in Proc Oracle
  • Oracle Internal Good Websites 1 Oracle

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
Next Post: MYSQL for Oracle DBA

Related Posts

  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Oracle Material from OTN Oracle
  • proc.sql Oracle
  • cur_sql.sql Oracle
  • Jai Shree Ram Oracle
  • oradebug ipcrm ipcs Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • ORA-3136 Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Load SPM baseline from AWR Oracle
  • Flowers Resize datafiles Oracle
  • Clean up Oracle
  • Getting started with notebook Python/PySpark
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme