Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • Some useful Unix Commands Linux/Unix
  • How to calculate PROCESSES parameter Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • currwait.sql Oracle
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Set Role explaination. Oracle
  • USER_TABLES.Freelists Oracle
  • Linux CPU info. Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • How to change hostname in Linux Linux/Unix
  • find_longsql.sql Oracle
  • SQL Server: How to see current transactions or requests SQL Server
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle

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

  • Drop all SPM baselines for SQL handle Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Locktree.sql Oracle
  • Vivek Tuning for Row Locks. Oracle
  • Good notes for shared pool Oracle
  • Gathering statistics with DBMS_STATS 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
  • Kill a session dynanically using execute immediate Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • Running select from V$ views from remote server Linux/Unix
  • RAC with RHEL4 and 11g Oracle
  • How to choose Driver table in SQL statement Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • Check Oracle installed products using one command Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme