Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • MYSQL for Oracle DBA MYSQL
  • How to change hostname in Linux Linux/Unix
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Drop tempfiles from database Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Linux CPU info. Linux/Unix
  • find_pk.sql /* Find Primary Key */ Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • .profile Linux/Unix
  • V$ROLLSTAT status is Full Oracle
  • CPU speed on solaris Linux/Unix
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • Renaming the column name 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

  • New OFA for 11g Oracle
  • cache buffer chain latch Oracle
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • Good notes on Oracle Events Oracle
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Oracle Internal Good Websites 1 Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • ext#.sql Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • note id 373303.1 Linux/Unix
  • Transfer SQL Profiles from One database to other database. Oracle
  • switchlogfile.sh Linux/Unix
  • tblwopk.sql /* Find Tables Without PK */ Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme