<?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: recomendations in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656610#M805563</link>
    <description>Ok,&lt;BR /&gt;&lt;BR /&gt;1- Run the following queries and save the results in a file:&lt;BR /&gt;&lt;BR /&gt;select (bbc.total_waits*100/(cg.value+dbg.value)) "Buff busy ratio ind. &amp;lt;= 0,007"&lt;BR /&gt;from v$system_event bbc,&lt;BR /&gt;v$sysstat cg,  v$sysstat dbg &lt;BR /&gt;where bbc.event='buffer busy waits'&lt;BR /&gt;and cg.name ='consistent gets' &lt;BR /&gt;and dbg.name='db block gets';&lt;BR /&gt;&lt;BR /&gt;select round(((1-(sum(decode(name, 'physical reads', value,0)) / &lt;BR /&gt;(sum(decode(name,'db block gets', value,0))+         &lt;BR /&gt;(sum(decode(name, 'consistent gets', value, 0))))))*100),2)          &lt;BR /&gt;|| '%' "Buffer Cache Hit Ratio &amp;gt; 95%"         &lt;BR /&gt;from v$sysstat;&lt;BR /&gt;&lt;BR /&gt;select wast.count, wast.class, sum( syst.value), wast.count/sum( syst.value)*100 "Ratio &amp;lt; 0,01"&lt;BR /&gt;from v$sysstat syst, v$waitstat wast&lt;BR /&gt;where syst.name in ('db block gets', 'consistent gets') and&lt;BR /&gt;wast.count != 0&lt;BR /&gt;group by wast.count, wast.class&lt;BR /&gt;order by 4 desc&lt;BR /&gt;&lt;BR /&gt;2- You may increase your db_block_buffers/db_cache_size to 64 Mb&lt;BR /&gt;&lt;BR /&gt;3- log_checkpoint_interval should be TWICE the redolog size. Your redolog groups size is: &lt;BR /&gt;&lt;BR /&gt;select group# "Group", bytes / 1024 "Size (Kb)", status from v$log;&lt;BR /&gt;&lt;BR /&gt;log_checkpoint_interval = 2 * Size (Kb)&lt;BR /&gt;&lt;BR /&gt;4- log_checkpoint_timeout should be different than 0 (recomended by Oracle). Set it to 7200 seconds for example (2 hours):&lt;BR /&gt;&lt;BR /&gt;log_checkpoint_timeout = 7200 &lt;BR /&gt;&lt;BR /&gt;5- log_buffer = 1048576 (1Mb is enough. Sizing it above won't give better performance...)&lt;BR /&gt;&lt;BR /&gt;6- Check for fragmentation in your segments:&lt;BR /&gt;&lt;BR /&gt;select count(*), segment_name&lt;BR /&gt;from dba_extents&lt;BR /&gt;where owner not in ('SYS','SYSTEM')&lt;BR /&gt;group by segment_name&lt;BR /&gt;having count(*) &amp;gt; 10&lt;BR /&gt;order by 1 desc&lt;BR /&gt;&lt;BR /&gt;Check for possible free extents to rebuild the indexes in each specific tablespace:&lt;BR /&gt;&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;owner||'.'||segment_name "Name"&lt;BR /&gt;from sys.dba_extents&lt;BR /&gt;where tablespace_name = upper(:p1x)&lt;BR /&gt;union&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;'Free'&lt;BR /&gt;from sys.dba_free_space&lt;BR /&gt;where tablespace_name = upper(:p1x)&lt;BR /&gt;order by 1,2,3&lt;BR /&gt;&lt;BR /&gt;And reduce fragmentation with:&lt;BR /&gt;&lt;BR /&gt;alter index &lt;OWNER&gt;.&lt;SEGMENT_NAME&gt; rebuild&lt;BR /&gt;storage( initial &lt;INIT_SIZE&gt;M next &lt;NEXT_SIZE&gt;M);&lt;BR /&gt;&lt;BR /&gt;alter tablespace :p1x coalesce;&lt;BR /&gt;&lt;BR /&gt;7- Be aware of chaining. Execute the following query results (you may have to run @$ORACLE_HOME/rdbms/admin/utlchain.sql):&lt;BR /&gt;&lt;BR /&gt;select 'ANALYZE table '||owner||'.'||table_name||' LIST CHAINED ROWS;' &lt;BR /&gt;from all_tables &lt;BR /&gt;where owner not in ('SYS', 'SYSTEM')&lt;BR /&gt;order by owner;  &lt;BR /&gt;&lt;BR /&gt;After running the analyze commands, check  system.chained_rows table for troubles:&lt;BR /&gt;&lt;BR /&gt;select count(*), table_name &lt;BR /&gt;from system.chained_rows &lt;BR /&gt;group by table_name&lt;BR /&gt;having count(*) &amp;gt; 50 &lt;BR /&gt;order by 1 desc&lt;BR /&gt;&lt;BR /&gt;8- Run the (1) queries again tomorow and see if something gets better or worse.&lt;BR /&gt;&lt;BR /&gt;9- Finally, you should (and I should ;) ) install statspack for better understanding where the RDBMS spends its time.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes&lt;/NEXT_SIZE&gt;&lt;/INIT_SIZE&gt;&lt;/SEGMENT_NAME&gt;&lt;/OWNER&gt;</description>
    <pubDate>Tue, 25 Oct 2005 05:52:47 GMT</pubDate>
    <dc:creator>Eric Antunes</dc:creator>
    <dc:date>2005-10-25T05:52:47Z</dc:date>
    <item>
      <title>recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656607#M805560</link>
      <description>good night, I have to configure a server hpux 11.11 with oracle 9.2.0.5 enterprise, and I should leave working him in the way but quick possible,  that value I should consider in the parameters of the hp and of the oracle so that the performance is it but good... thank you.. it is very urgent.. I hardly have time neither experience... the server is hpux 11.11, with 2 processors of 1.0 gb and 24 gb of memory.  &lt;BR /&gt;The storage is sam..&lt;BR /&gt;Thank you...</description>
      <pubDate>Mon, 24 Oct 2005 22:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656607#M805560</guid>
      <dc:creator>Fredy Correa</dc:creator>
      <dc:date>2005-10-24T22:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656608#M805561</link>
      <description>Hi Fredy,&lt;BR /&gt;&lt;BR /&gt;Do you want to start with HP-UX or with Oracle tuning?&lt;BR /&gt;&lt;BR /&gt;Starting with Oracle (since this is the database forum), can you give me the following answers:&lt;BR /&gt;&lt;BR /&gt;- Database type (OLTP, Datawarehouse, ...)?&lt;BR /&gt;- Database size (Gb)&lt;BR /&gt;- db_block_size, db_block_buffers (db_cache_size in 9i?), shared_pool_size, log_checkpoint_interval (should be twice the redo logs size in Kb), log_checkpoint_timeout, disk_asynch_io (do you have raw devices?), log_buffer, sort_area_size and db_file_multiblock_read_count&lt;BR /&gt;&lt;BR /&gt;PS: after replying, please check this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#22" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#22&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Tue, 25 Oct 2005 04:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656608#M805561</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-10-25T04:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656609#M805562</link>
      <description>Do you want to start with HP-UX or with Oracle tuning?&lt;BR /&gt;R: with both&lt;BR /&gt;&lt;BR /&gt;Starting with Oracle (since this is the database forum), can you give me the following answers:&lt;BR /&gt;&lt;BR /&gt;- Database type (OLTP, Datawarehouse, ...)?&lt;BR /&gt;R: Datawarehouse&lt;BR /&gt;&lt;BR /&gt;- Database size (Gb)&lt;BR /&gt;R: 950 gb&lt;BR /&gt;&lt;BR /&gt;- db_block_size : 16k &lt;BR /&gt;- db_block_buffers (db_cache_size in 9i?):32 megas&lt;BR /&gt;shared_pool_size :  536870912&lt;BR /&gt;log_checkpoint_interval: 20000000&lt;BR /&gt;log_checkpoint_timeout : 0&lt;BR /&gt;disk_asynch_io : true&lt;BR /&gt;do you have raw devices?: yes&lt;BR /&gt;log_buffer : 32768000&lt;BR /&gt;sort_area_size : 1638400&lt;BR /&gt;db_file_multiblock_read_count : 128&lt;BR /&gt;&lt;BR /&gt;Thanks..</description>
      <pubDate>Tue, 25 Oct 2005 05:05:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656609#M805562</guid>
      <dc:creator>Fredy Correa</dc:creator>
      <dc:date>2005-10-25T05:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656610#M805563</link>
      <description>Ok,&lt;BR /&gt;&lt;BR /&gt;1- Run the following queries and save the results in a file:&lt;BR /&gt;&lt;BR /&gt;select (bbc.total_waits*100/(cg.value+dbg.value)) "Buff busy ratio ind. &amp;lt;= 0,007"&lt;BR /&gt;from v$system_event bbc,&lt;BR /&gt;v$sysstat cg,  v$sysstat dbg &lt;BR /&gt;where bbc.event='buffer busy waits'&lt;BR /&gt;and cg.name ='consistent gets' &lt;BR /&gt;and dbg.name='db block gets';&lt;BR /&gt;&lt;BR /&gt;select round(((1-(sum(decode(name, 'physical reads', value,0)) / &lt;BR /&gt;(sum(decode(name,'db block gets', value,0))+         &lt;BR /&gt;(sum(decode(name, 'consistent gets', value, 0))))))*100),2)          &lt;BR /&gt;|| '%' "Buffer Cache Hit Ratio &amp;gt; 95%"         &lt;BR /&gt;from v$sysstat;&lt;BR /&gt;&lt;BR /&gt;select wast.count, wast.class, sum( syst.value), wast.count/sum( syst.value)*100 "Ratio &amp;lt; 0,01"&lt;BR /&gt;from v$sysstat syst, v$waitstat wast&lt;BR /&gt;where syst.name in ('db block gets', 'consistent gets') and&lt;BR /&gt;wast.count != 0&lt;BR /&gt;group by wast.count, wast.class&lt;BR /&gt;order by 4 desc&lt;BR /&gt;&lt;BR /&gt;2- You may increase your db_block_buffers/db_cache_size to 64 Mb&lt;BR /&gt;&lt;BR /&gt;3- log_checkpoint_interval should be TWICE the redolog size. Your redolog groups size is: &lt;BR /&gt;&lt;BR /&gt;select group# "Group", bytes / 1024 "Size (Kb)", status from v$log;&lt;BR /&gt;&lt;BR /&gt;log_checkpoint_interval = 2 * Size (Kb)&lt;BR /&gt;&lt;BR /&gt;4- log_checkpoint_timeout should be different than 0 (recomended by Oracle). Set it to 7200 seconds for example (2 hours):&lt;BR /&gt;&lt;BR /&gt;log_checkpoint_timeout = 7200 &lt;BR /&gt;&lt;BR /&gt;5- log_buffer = 1048576 (1Mb is enough. Sizing it above won't give better performance...)&lt;BR /&gt;&lt;BR /&gt;6- Check for fragmentation in your segments:&lt;BR /&gt;&lt;BR /&gt;select count(*), segment_name&lt;BR /&gt;from dba_extents&lt;BR /&gt;where owner not in ('SYS','SYSTEM')&lt;BR /&gt;group by segment_name&lt;BR /&gt;having count(*) &amp;gt; 10&lt;BR /&gt;order by 1 desc&lt;BR /&gt;&lt;BR /&gt;Check for possible free extents to rebuild the indexes in each specific tablespace:&lt;BR /&gt;&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;owner||'.'||segment_name "Name"&lt;BR /&gt;from sys.dba_extents&lt;BR /&gt;where tablespace_name = upper(:p1x)&lt;BR /&gt;union&lt;BR /&gt;select file_id, block_id, blocks,&lt;BR /&gt;'Free'&lt;BR /&gt;from sys.dba_free_space&lt;BR /&gt;where tablespace_name = upper(:p1x)&lt;BR /&gt;order by 1,2,3&lt;BR /&gt;&lt;BR /&gt;And reduce fragmentation with:&lt;BR /&gt;&lt;BR /&gt;alter index &lt;OWNER&gt;.&lt;SEGMENT_NAME&gt; rebuild&lt;BR /&gt;storage( initial &lt;INIT_SIZE&gt;M next &lt;NEXT_SIZE&gt;M);&lt;BR /&gt;&lt;BR /&gt;alter tablespace :p1x coalesce;&lt;BR /&gt;&lt;BR /&gt;7- Be aware of chaining. Execute the following query results (you may have to run @$ORACLE_HOME/rdbms/admin/utlchain.sql):&lt;BR /&gt;&lt;BR /&gt;select 'ANALYZE table '||owner||'.'||table_name||' LIST CHAINED ROWS;' &lt;BR /&gt;from all_tables &lt;BR /&gt;where owner not in ('SYS', 'SYSTEM')&lt;BR /&gt;order by owner;  &lt;BR /&gt;&lt;BR /&gt;After running the analyze commands, check  system.chained_rows table for troubles:&lt;BR /&gt;&lt;BR /&gt;select count(*), table_name &lt;BR /&gt;from system.chained_rows &lt;BR /&gt;group by table_name&lt;BR /&gt;having count(*) &amp;gt; 50 &lt;BR /&gt;order by 1 desc&lt;BR /&gt;&lt;BR /&gt;8- Run the (1) queries again tomorow and see if something gets better or worse.&lt;BR /&gt;&lt;BR /&gt;9- Finally, you should (and I should ;) ) install statspack for better understanding where the RDBMS spends its time.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes&lt;/NEXT_SIZE&gt;&lt;/INIT_SIZE&gt;&lt;/SEGMENT_NAME&gt;&lt;/OWNER&gt;</description>
      <pubDate>Tue, 25 Oct 2005 05:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656610#M805563</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-10-25T05:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656611#M805564</link>
      <description>this result of querys..</description>
      <pubDate>Tue, 25 Oct 2005 06:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656611#M805564</guid>
      <dc:creator>Fredy Correa</dc:creator>
      <dc:date>2005-10-25T06:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: recomendations</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656612#M805565</link>
      <description>As I suspected, you have a low Buffer Cache Hit Ratio. It will get better after you increase db_block_buffers/db_cache_size as suggested in point 2.</description>
      <pubDate>Tue, 25 Oct 2005 07:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recomendations/m-p/3656612#M805565</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-10-25T07:15:36Z</dc:date>
    </item>
  </channel>
</rss>

