Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • telnet listening Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Set Role explaination. Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • handling filenname with space Linux/Unix
  • Generate SSH without password authentication. Linux/Unix
  • Updated LCK.SQL file. Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • Database link password in user_db_links Oracle
  • findobj.sql Oracle
  • Unix command for system configuration Linux/Unix
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • configUOCIOTTO.ora Oracle
  • Search and replace editor command in vi Linux/Unix

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

  • Processes Parameter decision Oracle
  • Find all users who have DML privileges Oracle
  • perf_today.sql Oracle
  • import-export with multiple files Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • This is from Temi 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
  • create user with unlimited quota Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • sql_plan9i.sql Oracle
  • Rman Notes -1 Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Read CSV File using Python Python/PySpark

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme