Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Convert multiple rows to single column Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • Good RAC & Standby Notes Oracle
  • move_arch_files.ksh Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • find the files that are 1 day old. Linux/Unix
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • Order by with ROWNUM Oracle
  • handling filenname with space Linux/Unix
  • eplan.sql Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • UTL_FILE test program Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. 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

  • oradebug ipcrm ipcs Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • tblwopk.sql /* Find Tables Without PK */ Oracle
  • sess1.sql Oracle
  • Drop tempfiles from database Oracle
  • How to check current redo log progress redo_progress.sql Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Find total file sizes Linux/Unix
  • Wait Based Tuning Step by step with SQL statement Oracle
  • scripts to take listener.log backup Linux/Unix
  • Read CSV File using Python Python/PySpark
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Flowers Resize datafiles Oracle
  • Good links for x$ tables in oracle. Oracle
  • Find long Running Transaction Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme