Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Transfer SQL Profiles from One database to other database. Oracle
  • Index Range Scan Oracle
  • find checksum of a file. Linux/Unix
  • replace alphabets using sed Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • Oracle Metalink useful notes Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • sqlnet.ora paramters Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • crontab syntax Linux/Unix
  • Good notes for shared pool Oracle
  • oracle 10g on linux Linux/Unix
  • How to stop OCSSD Daemon 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
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • How to find password change date for user Oracle
  • Recovering lost SYS password 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • 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
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Oracle
  • Physical Standby switchover with session active Oracle
  • plan10g.sql good Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Load SPM baseline from AWR Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Add new columns in dataframe Python/PySpark
  • Query to Generate aggregate on every 30 mins. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme