<?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: How to determine SGA (shared_pool) fragmented in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084574#M811628</link>
    <description>Run these commands please:&lt;BR /&gt; &lt;BR /&gt;getconf KERNEL_BITS &lt;BR /&gt; &lt;BR /&gt;kmtune -q shmmax&lt;BR /&gt;kmtune -q dbc_max_pct&lt;BR /&gt;kmtune -q dbc_min_pct&lt;BR /&gt; &lt;BR /&gt;SGA gets reloaded only when needed.  The more its reloaded the worse your performance.  You can observe this by monitoring 'lmon', I believe.  If 'lmon' is often running then the SGA is being reloaded.</description>
    <pubDate>Fri, 03 Oct 2003 07:39:42 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-10-03T07:39:42Z</dc:date>
    <item>
      <title>How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084569#M811623</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;I am just encountered a memory fragmentation problem (ORA-04031).  Is there any way to track this fragmentation symptom before the problem happen ??  I am wondering whether I can develop some monitoring scripts to check the status of the shared_pool / SGA fragmentation is periodic basis.&lt;BR /&gt;&lt;BR /&gt;By the way, I am using Oracle 8.1.7.0 EE (Unix version)&lt;BR /&gt;&lt;BR /&gt;Please help,&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Chris,</description>
      <pubDate>Thu, 02 Oct 2003 23:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084569#M811623</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2003-10-02T23:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084570#M811624</link>
      <description>1. Utilize dbms_shared_pool package available with 7.0.13 and higher.&lt;BR /&gt;   This package allows you to display the sizes of objects in the shared pool,&lt;BR /&gt;   and mark them for PINNING in the SGA in order to reduce memory&lt;BR /&gt;fragmentation.&lt;BR /&gt;&lt;BR /&gt;2. Increase the SHARED_POOL_SIZE&lt;BR /&gt;   You need to change SHARED_POOL_SIZE because the default tends to be a low&lt;BR /&gt;   estimate when utilizing the procedural option.  As discussed earlier, one&lt;BR /&gt;   needs to shutdown/startup when changing the SHARED_POOL_SIZE.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 23:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084570#M811624</guid>
      <dc:creator>Hari Kumar</dc:creator>
      <dc:date>2003-10-02T23:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084571#M811625</link>
      <description>Diagnostic tools :&lt;BR /&gt;The V$SHARED_POOL _RESERVED dictionary view&lt;BR /&gt;The supplied package and procedure: &lt;BR /&gt;DBMS_SHARED_POOL&lt;BR /&gt;ABORTED_REQUEST_THRESHOLD&lt;BR /&gt;Guidelines: Set the parameter SHARED_POOL_RESERVED_SIZE&lt;BR /&gt;&lt;BR /&gt;The explanation of some of the Coloumns of V$SHARED_POOL_RESERVED is as follows -------&lt;BR /&gt;&lt;BR /&gt;REQUEST_FAILURES &lt;BR /&gt; NUMBER &lt;BR /&gt; Number of times that no memory was found to satisfy a request (that is, the number of times the error ORA-4031 occurred)  &lt;BR /&gt; &lt;BR /&gt;LAST_FAILURE_SIZE &lt;BR /&gt; NUMBER &lt;BR /&gt; Request size of the last failed request (that is, the request size for the last ORA-4031 error) &lt;BR /&gt; &lt;BR /&gt;ABORTED_REQUEST_THRESHOLD &lt;BR /&gt; NUMBER &lt;BR /&gt; Minimum size of a request which signals an ORA-4031 error without flushing objects &lt;BR /&gt; &lt;BR /&gt;ABORTED_REQUESTS &lt;BR /&gt; NUMBER &lt;BR /&gt; Number of requests that signalled an ORA-4031 error without flushing objects &lt;BR /&gt; &lt;BR /&gt;LAST_ABORTED_SIZE &lt;BR /&gt; NUMBER &lt;BR /&gt; Last size of the request that returned an ORA-4031 error without flushing objects from the LRU list &lt;BR /&gt;&lt;BR /&gt;The script gives wasted shared pool stats------&lt;BR /&gt;select&lt;BR /&gt;avg(v.value) shared_pool_size,&lt;BR /&gt;greatest(avg(s.ksmsslen) - sum(p.ksmchsiz), 0) spare_free,&lt;BR /&gt;to_char(&lt;BR /&gt;100 * greatest(avg(s.ksmsslen) - sum(p.ksmchsiz), 0) / avg(v.value),&lt;BR /&gt;'99999'&lt;BR /&gt;) || '%' wastage&lt;BR /&gt;from&lt;BR /&gt;x$ksmss s,&lt;BR /&gt;x$ksmsp p,&lt;BR /&gt;v$parameter v&lt;BR /&gt;where&lt;BR /&gt;s.inst_id = userenv('Instance') and&lt;BR /&gt;p.inst_id = userenv('Instance') and&lt;BR /&gt;p.ksmchcom = 'free memory' and&lt;BR /&gt;s.ksmssnam = 'free memory' and&lt;BR /&gt;v.name = 'shared_pool_size'&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 23:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084571#M811625</guid>
      <dc:creator>Hari Kumar</dc:creator>
      <dc:date>2003-10-02T23:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084572#M811626</link>
      <description>Hi Mohan,&lt;BR /&gt;&lt;BR /&gt;Thanks for your input and advice.  According to Metalink, the problem could be fixed in some version of Oracle....and probably I need to patch up my version (8.1.7.0).&lt;BR /&gt;&lt;BR /&gt;However, I am just wondering whether a regular reboot of the database would help.&lt;BR /&gt;&lt;BR /&gt;By the way, the database is a data warehouse.  (I have already double the shared_pool_size from 44MB to 90MB today).  The symoptom did seem to fixed temporarily.  I really worry the when it will be happen next time......anything I can for pre-caution ?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 03 Oct 2003 06:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084572#M811626</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2003-10-03T06:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084573#M811627</link>
      <description>Hope you have done it to 8.1.7.2, which is a patch for memory leak in 8.1.7.0,fine.&lt;BR /&gt;&lt;BR /&gt;The formula for the shared pool calculation is:&lt;BR /&gt;(Max session memory * number of concurrent users) + Total shared SQL areas + PLSQL sharable memory + Minimum 30% free space. &lt;BR /&gt;&lt;BR /&gt;You please check my previous answer for using SHARED_POOL_RESERVED_AREA ,which can be one of the solution.&lt;BR /&gt;&lt;BR /&gt;For more information , &lt;BR /&gt;under TUNING SHARED POOL from &lt;BR /&gt;Oracle Tuning for Performance guide---&lt;BR /&gt;&lt;A href="http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch19_mem.htm#1671" target="_blank"&gt;http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76992/ch19_mem.htm#1671&lt;/A&gt;</description>
      <pubDate>Fri, 03 Oct 2003 07:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084573#M811627</guid>
      <dc:creator>Hari Kumar</dc:creator>
      <dc:date>2003-10-03T07:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084574#M811628</link>
      <description>Run these commands please:&lt;BR /&gt; &lt;BR /&gt;getconf KERNEL_BITS &lt;BR /&gt; &lt;BR /&gt;kmtune -q shmmax&lt;BR /&gt;kmtune -q dbc_max_pct&lt;BR /&gt;kmtune -q dbc_min_pct&lt;BR /&gt; &lt;BR /&gt;SGA gets reloaded only when needed.  The more its reloaded the worse your performance.  You can observe this by monitoring 'lmon', I believe.  If 'lmon' is often running then the SGA is being reloaded.</description>
      <pubDate>Fri, 03 Oct 2003 07:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084574#M811628</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-10-03T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084575#M811629</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;you can use this SQL script (attached) to see your shared pool utilisation&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Fri, 03 Oct 2003 07:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084575#M811629</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2003-10-03T07:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084576#M811630</link>
      <description>UNIX shared memory fragmentation should only occur if you are using 32-bit applications.  Are you?  &lt;BR /&gt;&lt;BR /&gt;The HP Response Center can send you a program called "shminfo", which will show you your shared memory layout, and you can check for fragmentaion.  Call them.&lt;BR /&gt;&lt;BR /&gt;This whole problem should go away (in HP-UX), if you run 64-bit applications, because of the large Shared Memory space.</description>
      <pubDate>Fri, 03 Oct 2003 08:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084576#M811630</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-10-03T08:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084577#M811631</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ORA-4031 means your are hard parsing too much (not using bind sqls). Increasing shared pool size might fix the problem for now, but long run, you will hit the problem again and in fact, sql parsing time shoots up alluding to increase in cpu usage.&lt;BR /&gt;&lt;BR /&gt;Identify the sqls that isn't using bind variables and fix it. Run statspack report for a interval of 15 mins and check the hard parses, soft parses and execute to parse ratio, this should give you an idea.&lt;BR /&gt;&lt;BR /&gt;Reserve some space of shared_pool to pin huge packages, procedures etc. look at shared_pool_reserved_size parameter and dbms_shared_pool packaged for pinning objects.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Stan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2003 12:51:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084577#M811631</guid>
      <dc:creator>Stan_17</dc:creator>
      <dc:date>2003-10-03T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084578#M811632</link>
      <description>hi,&lt;BR /&gt;*&lt;BR /&gt;If you are planning for a patch, think only 8.1.7.4.&lt;BR /&gt;*&lt;BR /&gt;nothing else!&lt;BR /&gt;*&lt;BR /&gt;If you are planning for an upgrade, 9i release 2 + latest patches or even 10G.&lt;BR /&gt;*&lt;BR /&gt;hope this helps too!&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Fri, 03 Oct 2003 13:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084578#M811632</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-10-03T13:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine SGA (shared_pool) fragmented</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084579#M811633</link>
      <description>There's two types of SGA fragmentation: internal (caused by Oacle), and kernel (caused by multiple 32bit applications using the same memory map). If the issue is that stop/restart of a 32bit Oracle instance errors with not enough memory, it is a kernel condition and you'll need ipcs and shminfo.&lt;BR /&gt;For ipcs, use ipcs -bmop&lt;BR /&gt;For shminfo, get a copy from ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/programs/shminfo/ and read the docs that come with the package. shminfo will show all the other items that are scattered through the 32bit shared memory map. 64bit Oracle will have no practical limits (or fragmentation issues) but for 32bit apps, Memory Windows is the only workaround.</description>
      <pubDate>Fri, 03 Oct 2003 16:11:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-determine-sga-shared-pool-fragmented/m-p/3084579#M811633</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-10-03T16:11:36Z</dc:date>
    </item>
  </channel>
</rss>

