<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pinning objects in the library cache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969967#M758071</link>
    <description>Hi Subodh,&lt;BR /&gt;usualyy are pinned the package and function most used and that required large portion of memory. Good practice is to pin them when the datasbe ha sbeen reboot to avoid to invalidate object making this online.&lt;BR /&gt;Usually a set of Oracle package are pinned to increase perfomance:&lt;BR /&gt;--- SYS USER&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.STANDARD');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SYS_SQL');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_LOCK');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SQL');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_APPLICATION_INFO');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_OUTPUT');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_PIPE');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_ALERT');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_STANDARD');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_UTILITY');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SQL');     &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;plus your package/function/cursors.&lt;BR /&gt;&lt;BR /&gt;to identify most used/loaded objects:&lt;BR /&gt;&lt;BR /&gt;clear column&lt;BR /&gt;col Stmt for a50&lt;BR /&gt;select&lt;BR /&gt;  sql_text "Stmt",&lt;BR /&gt;  count(*),&lt;BR /&gt;  sum(sharable_mem) "Mem",&lt;BR /&gt;  sum(users_opening) "Open",&lt;BR /&gt;  sum(executions) "Exec"&lt;BR /&gt;from&lt;BR /&gt;  v$sql&lt;BR /&gt;group by&lt;BR /&gt;  sql_text&lt;BR /&gt;having&lt;BR /&gt;  sum(sharable_mem) &amp;gt; 5000000&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
    <pubDate>Wed, 28 Mar 2007 03:16:48 GMT</pubDate>
    <dc:creator>Arturo Galbiati</dc:creator>
    <dc:date>2007-03-28T03:16:48Z</dc:date>
    <item>
      <title>Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969962#M758066</link>
      <description>Hi Gurus,&lt;BR /&gt;Can anybody tell me if we can pin SELECT statements to the library cache using dbms_shared_pool or they should be converted to PL/SQL blocks to pin them?&lt;BR /&gt;&lt;BR /&gt;Please help me in this regard.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Subodh</description>
      <pubDate>Tue, 27 Mar 2007 06:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969962#M758066</guid>
      <dc:creator>Subodh deshpande_1</dc:creator>
      <dc:date>2007-03-27T06:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969963#M758067</link>
      <description>Hi,&lt;BR /&gt;I believe the syntax is:&lt;BR /&gt;execute dbms_shared_pool.keep('package');&lt;BR /&gt;Keep an eye on your hit ratio!&lt;BR /&gt;&lt;BR /&gt;Interesting doc:&lt;BR /&gt;&lt;A href="http://www.apress.com/ApressCorporate/supplement/1/92/1590590228-994.pdf" target="_blank"&gt;www.apress.com/ApressCorporate/supplement/1/92/1590590228-994.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please also read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt; on how to reward any useful answers given to your questions.&lt;BR /&gt;&lt;BR /&gt;You have only awarded points to 1 of 9 answers !</description>
      <pubDate>Tue, 27 Mar 2007 06:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969963#M758067</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-27T06:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969964#M758068</link>
      <description>This question is 100% about Oracle (allthough you failed to indicate that) and has nothing to do with HP-UX or other attributes of the box it run on.&lt;BR /&gt;I recommend you seek help through Oracle support, or an Oracle specific forum. If you do, be sure to specify the  exact version.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Mar 2007 06:23:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969964#M758068</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-27T06:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969965#M758069</link>
      <description>Thanx a lot peter, however it is for a package, i wanna know how to pin a SELECT statement&lt;BR /&gt;example&lt;BR /&gt;SELECT USERNAME FROM DBA_USERS;&lt;BR /&gt;somethin of that sort.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Subodh</description>
      <pubDate>Tue, 27 Mar 2007 06:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969965#M758069</guid>
      <dc:creator>Subodh deshpande_1</dc:creator>
      <dc:date>2007-03-27T06:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969966#M758070</link>
      <description>Hi,&lt;BR /&gt;I don't thing you can pin an individual select statement. The closest is probably the cursor pin.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://www.unix.org.ua/orelly/oracle/bipack/ch12_02.htm" target="_blank"&gt;http://www.unix.org.ua/orelly/oracle/bipack/ch12_02.htm&lt;/A&gt; Section 12.2.4.2</description>
      <pubDate>Tue, 27 Mar 2007 06:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969966#M758070</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-03-27T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pinning objects in the library cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969967#M758071</link>
      <description>Hi Subodh,&lt;BR /&gt;usualyy are pinned the package and function most used and that required large portion of memory. Good practice is to pin them when the datasbe ha sbeen reboot to avoid to invalidate object making this online.&lt;BR /&gt;Usually a set of Oracle package are pinned to increase perfomance:&lt;BR /&gt;--- SYS USER&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.STANDARD');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SYS_SQL');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_LOCK');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SQL');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_APPLICATION_INFO');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_OUTPUT');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_PIPE');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_ALERT');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_STANDARD');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_UTILITY');&lt;BR /&gt;exec dbms_shared_pool.keep('SYS.DBMS_SQL');     &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;plus your package/function/cursors.&lt;BR /&gt;&lt;BR /&gt;to identify most used/loaded objects:&lt;BR /&gt;&lt;BR /&gt;clear column&lt;BR /&gt;col Stmt for a50&lt;BR /&gt;select&lt;BR /&gt;  sql_text "Stmt",&lt;BR /&gt;  count(*),&lt;BR /&gt;  sum(sharable_mem) "Mem",&lt;BR /&gt;  sum(users_opening) "Open",&lt;BR /&gt;  sum(executions) "Exec"&lt;BR /&gt;from&lt;BR /&gt;  v$sql&lt;BR /&gt;group by&lt;BR /&gt;  sql_text&lt;BR /&gt;having&lt;BR /&gt;  sum(sharable_mem) &amp;gt; 5000000&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 28 Mar 2007 03:16:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pinning-objects-in-the-library-cache/m-p/3969967#M758071</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2007-03-28T03:16:48Z</dc:date>
    </item>
  </channel>
</rss>

