Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • V$transaction notes for finding XID composition. Oracle
  • Sample WW22 listener.ora Oracle
  • eplan.sql Oracle
  • CPU speed on Linux Linux/Unix
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Mutating Table Error while using database trigger Oracle
  • S3 Basic info AWS
  • Caching sequence in Memory Oracle
  • Read CSV File using Python Python/PySpark
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Drop tempfiles from database Oracle
  • Pending Transaction Neighbors Script Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • My Minimum Tuning Programs 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

  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • This is from Temi Oracle
  • Export With Query Another Example. Oracle
  • V$transaction notes for finding XID composition. Oracle
  • FGA Part-I Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • secure crt settings Linux/Unix
  • How to start CRS manually Oracle
  • Generating XML from SQLPLUS Oracle
  • V$ROLLSTAT status is Full Oracle
  • telnet listening Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • Nice notes on wait events Oracle
  • Roles and Stored Object behaviour Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme