Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • proc.sql Oracle
  • plan10g.sql good Oracle
  • Export Oracle data and Compress at same time Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • good note for shared pool tunnig Oracle
  • Database logon trigger issue Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • Wait.sql Oracle
  • PLSQL Table Syntax 2 Oracle
  • Jai Shree Ram Oracle
  • tracksqltime.sql Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • tab.sql Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle 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

  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • create PLAN_TABLE command. Oracle
  • Oracle Identifiers Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • online_bkup.sql Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ 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 (149)
  • MYSQL (5)
  • Oracle (394)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Important Script Method for tuning Oracle
  • perf_today.sql Oracle
  • plan10g.sql good Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Clean up Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme