<?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: 9i optimizer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473891#M847066</link>
    <description>On Metalink there is a patch that came out recently that addresses this issue.  I've noticed this same behavior at times.  &lt;BR /&gt;&lt;BR /&gt;On another not - The optimizer really pays attention to how much data it needs to read.  Have you looked at your MULTIBLOCK_READ_COUNT?  Is this the standard setting of 8?  &lt;BR /&gt;&lt;BR /&gt;I've found that the higher you set this - the more full table scans you get.&lt;BR /&gt;&lt;BR /&gt;Also run &lt;BR /&gt;Select count(*), claim_number &lt;BR /&gt;from claim&lt;BR /&gt;group by claim_number;&lt;BR /&gt;&lt;BR /&gt;What's your spread look like?&lt;BR /&gt;&lt;BR /&gt;Do the same and tell me how many rows have a data_source of 4000.&lt;BR /&gt;&lt;BR /&gt;Did you gather stats / anaylze the index after you created it?  If not - the cost&lt;BR /&gt;optimzer is not going to use it.  While you're at it do an analyze of 25 or 30% &lt;BR /&gt;or so of the table too.&lt;BR /&gt;&lt;BR /&gt;OK - one more (just an fyi - its not going to &lt;BR /&gt;make a diff whether or not you're full table scanning).&lt;BR /&gt;&lt;BR /&gt;Be careful using the feature that will manage your user's PGA.  While this worked fine 9.2.0.4 - it will reduce 9.2.0.5 to about half speed for 9.2.0.5 if you're under a substantial load.  This is a real monster to watch for.  Please check and make sure that it's turned off.  If you need I can post back later with the exact settings on that.  Just let me know.</description>
    <pubDate>Sat, 29 Jan 2005 14:03:02 GMT</pubDate>
    <dc:creator>TwoProc</dc:creator>
    <dc:date>2005-01-29T14:03:02Z</dc:date>
    <item>
      <title>9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473887#M847062</link>
      <description>Hello All,&lt;BR /&gt;We just migrated to 9.2.0.5 from 8.1.7.4.  I created a new index.  Wrote a simple query:&lt;BR /&gt;&lt;BR /&gt;select claim_number&lt;BR /&gt;from claim&lt;BR /&gt;where data_source = 4000;&lt;BR /&gt;&lt;BR /&gt;Oracle used the index perfectly.  I used dbms_stats to analyze the tables and indexes.  Now Oracle no longers uses the index.  It does a full table scan.  The claim table is a 9 gig table.  With the index it runs in seconds.  Without it runs in minutes.  Does anyone have any experience with the 9.2.0.5 optimizer?  I don't want to use the RULE hint.  We have other queries that are having the same problem.  This is the simpliest one.  I've heard that the 9.2.0.6 has some fixes for the optimizer.  But I'd like to work this out before having to apply a patch if possible.&lt;BR /&gt;&lt;BR /&gt;Things I've tried.  Using gather_stats instead.  Changed the optimizer to 8.1.7.  Just analyzed the tables not the indexes.  None of these worked.  It only uses the index right after creation.  Once the table is analyzed then oracle no longer uses the index.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 28 Jan 2005 16:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473887#M847062</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2005-01-28T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473888#M847063</link>
      <description>&lt;BR /&gt;Wow, that almost sounds like too big a bug to be! Surely the world would be screaming?&lt;BR /&gt;I wonder what extra trigger there might be in your application to make it do that. Or, maybe indeed many more customers are suffering but did not dril down as nicely as you did.&lt;BR /&gt;Did you clean out your initXXX.ora in case it gathered a setting with this surprise effect?&lt;BR /&gt;&lt;BR /&gt;At any rate, this is very unlikely to be an hpux specific problem. Sure it could be port specific, but more liekly it is generic. Therefor I would recommend to ask the question in an Oracle newsgroup, forum, asktom, ...&lt;BR /&gt;&lt;BR /&gt;Hope this helps a tiny bit,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Jan 2005 16:47:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473888#M847063</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-01-28T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473889#M847064</link>
      <description>I'm not expecting it to be just on HP-UX.  I've asked this question here because my questions always are answered here.  I've tried oracle's forum and haven't had nearly as much luck.  As for the init.ora file I'm reading up on all the different parameters.  There's many new ones.  I've opened an iTAR with Oracle and as usual they want me to apply the patch before going any farther.  They tell me there's been a lot of optimizer fixes in the latest patch.  The patch wouldn't be an immediate fix.  But I am downloading it and testing it on another server.</description>
      <pubDate>Fri, 28 Jan 2005 16:53:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473889#M847064</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2005-01-28T16:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473890#M847065</link>
      <description>How many rows is the 'claim' table?  &lt;BR /&gt;&lt;BR /&gt;How many of those rows are associated with the 'data_source' column equal to 4000?  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Fri, 28 Jan 2005 17:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473890#M847065</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2005-01-28T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473891#M847066</link>
      <description>On Metalink there is a patch that came out recently that addresses this issue.  I've noticed this same behavior at times.  &lt;BR /&gt;&lt;BR /&gt;On another not - The optimizer really pays attention to how much data it needs to read.  Have you looked at your MULTIBLOCK_READ_COUNT?  Is this the standard setting of 8?  &lt;BR /&gt;&lt;BR /&gt;I've found that the higher you set this - the more full table scans you get.&lt;BR /&gt;&lt;BR /&gt;Also run &lt;BR /&gt;Select count(*), claim_number &lt;BR /&gt;from claim&lt;BR /&gt;group by claim_number;&lt;BR /&gt;&lt;BR /&gt;What's your spread look like?&lt;BR /&gt;&lt;BR /&gt;Do the same and tell me how many rows have a data_source of 4000.&lt;BR /&gt;&lt;BR /&gt;Did you gather stats / anaylze the index after you created it?  If not - the cost&lt;BR /&gt;optimzer is not going to use it.  While you're at it do an analyze of 25 or 30% &lt;BR /&gt;or so of the table too.&lt;BR /&gt;&lt;BR /&gt;OK - one more (just an fyi - its not going to &lt;BR /&gt;make a diff whether or not you're full table scanning).&lt;BR /&gt;&lt;BR /&gt;Be careful using the feature that will manage your user's PGA.  While this worked fine 9.2.0.4 - it will reduce 9.2.0.5 to about half speed for 9.2.0.5 if you're under a substantial load.  This is a real monster to watch for.  Please check and make sure that it's turned off.  If you need I can post back later with the exact settings on that.  Just let me know.</description>
      <pubDate>Sat, 29 Jan 2005 14:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473891#M847066</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-01-29T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473892#M847067</link>
      <description>Here's the layout of the data_source column:&lt;BR /&gt;&lt;BR /&gt;  COUNT(*) DATA_SOURCE&lt;BR /&gt;---------- -----------&lt;BR /&gt;  18534528        4000&lt;BR /&gt;  16376369        4001&lt;BR /&gt;   2727251        4002&lt;BR /&gt;   1273410        4003&lt;BR /&gt;   6024692        4004&lt;BR /&gt;&lt;BR /&gt;I tried setting multiblock read count down from 32 to 8.  That didn't do anything.  Since this cardinality of this data is so low maybe I should use a bitmap index instead.</description>
      <pubDate>Mon, 31 Jan 2005 14:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473892#M847067</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2005-01-31T14:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473893#M847068</link>
      <description>I do know that patch 9.2.0.6 came out and is supposed to fix a lot of optimizer issues.  But this company won't want to install that for another 6 months or so.</description>
      <pubDate>Mon, 31 Jan 2005 14:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473893#M847068</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2005-01-31T14:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473894#M847069</link>
      <description>Be careful with a bitmap index.  This should only be created for tables that get very little in the way of updates during the day.  The reason is that the *WHOLE* table and INDEX will be locked in their entirety until the calculation of the new bitmap is complete.&lt;BR /&gt;&lt;BR /&gt;I like bitmap indexes but, they can usually only be used on lookup tables, charts of accounts, etc - things that don't change often.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jan 2005 19:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473894#M847069</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-01-31T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473895#M847070</link>
      <description>Well, short of using bitmap indexes, delete the statistics for the index.  That should force the query to use the index as it will default to the RULE optimizer settings.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 31 Jan 2005 19:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473895#M847070</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2005-01-31T19:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473896#M847071</link>
      <description>I think you could also try partitioning that table on the data_source column.  Try it on a test system first, since the optimizer can go completely mad with partitioned tables.  But if it works you may be able to remove the index altogether.  Also, I know its tempting to be critical of Oracle support but they may be right.</description>
      <pubDate>Mon, 31 Jan 2005 22:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473896#M847071</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2005-01-31T22:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473897#M847072</link>
      <description>Take a look at your settings for optimizer_index_caching and&lt;BR /&gt;optimizer_index_cost_adj.&lt;BR /&gt;You can use these to influence the 'cost' assigned to index reads.  Metalink note 243269.1 has more details but basically&lt;BR /&gt;setting optimizer_index_cost_adj to a value lower than the default of 100 will make index read appear less expensive.&lt;BR /&gt;These parameters are session modifiable so you can play with then in sqlplus without bouncing the db.&lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Tue, 01 Feb 2005 08:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473897#M847072</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-02-01T08:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: 9i optimizer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473898#M847073</link>
      <description>Thanks Pat.  I was thinking about that feature also.  I'm just having different results on all my instances.  I run the same gather stats on all instances.  But some instances are using nested_loops for this particular query while other instances are using HASH_JOIN.  I don't understand what could be causing this.</description>
      <pubDate>Mon, 07 Feb 2005 10:55:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/9i-optimizer/m-p/3473898#M847073</guid>
      <dc:creator>mangor</dc:creator>
      <dc:date>2005-02-07T10:55:15Z</dc:date>
    </item>
  </channel>
</rss>

