Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • logminer and my_lbu Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • checking redhat linux version Linux/Unix
  • How to hide author name in WordPress BLOG PHP/MYSQL/Wordpress
  • Histogram information Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • plan10g.sql good1 Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • find_longsql.sql Oracle
  • Reading parameter file and printing Linux/Unix
  • SAN Linux/Unix
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • Wait Based Tuning Step by step with SQL statement Oracle
  • Formatter Explain plan Output 1 Oracle
  • Wait.sql 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

Related Posts

  • How to calculate PROCESSES parameter Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • ORA-3136 Oracle
  • sesswait.sql 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
  • Updated LCK.SQL file. Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • telnet listening Linux/Unix
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Database logon trigger issue Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme