Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • UNderstand and eliminate Latch contention. Oracle
  • Implementing Listener Security Oracle
  • Finding Oracle Patches with opatch Oracle
  • DBMS_JOB all example Oracle
  • proc.sql Oracle
  • Good links for x$ tables in oracle. Oracle
  • My Minimum Tuning Programs Oracle
  • Python class import from different folders Python/PySpark
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • To see how much time or progress of long transaction Oracle
  • switchover for primary database Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • shutdown linux Linux/Unix
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • DBMS_Shared_pool pinning triggers 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

  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • import-export with multiple files Oracle
  • Proc Compilation Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. 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
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • nfs mount command Linux/Unix
  • ext#.sql Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • set_env_dba Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme