Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Generating XML from SQLPLUS Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Absolute file number and relative file number Oracle
  • Parallel DML Oracle
  • Rman Notes -1 Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Oracle Identifiers Oracle
  • Roles and Stored Procs II Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix
  • process id based files and processes Linux/Unix
  • PLSQL Table Syntax 2 Oracle
  • pvm_pre_change.sql Oracle
  • scripts to take listener.log backup Linux/Unix

DBMS_Shared_pool pinning triggers

Posted on 02-May-2007 By Admin No Comments on DBMS_Shared_pool pinning triggers

How to pin a stored procedure/functions ?

1.You can pin procedures and triggers with the dbms_shared_pool procedure.

Either procedures or packages can be pinned with the ‘P’ flag, which is

the default value (so you can leave it out). Triggers are pinned with

‘R’ and anonymous plsql blocks need any letter other than [p,P,r,R] as a

flag. Refer to dbmspool.sql for more documentation. Here is an example:

execute dbms_shared_pool.keep(owner.trigger, ‘R’)

Oracle, SQL scripts

Post navigation

Previous Post: TOP-N Sql to find Nth max or Top N rows
Next Post: Find nth max and min.

Related Posts

  • How to find where datafile is created dbf_info.sql Oracle
  • USE_NL and INDEX hints example Oracle
  • findobj.sql Oracle
  • Formatter Explain plan Output 1 Oracle
  • Set Role explaination. Oracle
  • Order by with ROWNUM Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Optimizer SORT Operations Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • To Find Orphan OS processes. Linux/Unix
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • First Entry in RAC Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme