Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Space padding in korn shell Linux/Unix
  • Building Our Own Namespaces with “Create Context” Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • fuser to check who is using diretory Linux/Unix
  • cp_filesystem.sql Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • login.sql Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • cache buffer chain latch Oracle
  • chk_space_SID.ksh Linux/Unix
  • Rman Notes -1 Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Create type and Grant on it. Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Changing unix system clock when Oracle database is running. 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

  • Goldengate document from Porus Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • RAC with RHEL4 and 11g Oracle
  • DBMS_SQL for alter session. Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • Jai Shree Ram 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • move_arch_files.ksh Linux/Unix
  • Search and Replace vi editor command. Linux/Unix
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Very clear article about oracle dataguard Oracle
  • nfs mount command Linux/Unix
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • To find all disk io ( EMC as well as local) Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme