<?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: Oracle explain plan changed after export in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454311#M848211</link>
    <description>I did not use the RECORDLENGTH option in the export. My understanding of this parm is that is just performs a write in chunks of the size specified.</description>
    <pubDate>Tue, 04 Jan 2005 10:22:22 GMT</pubDate>
    <dc:creator>Dave Chamberlin</dc:creator>
    <dc:date>2005-01-04T10:22:22Z</dc:date>
    <item>
      <title>Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454302#M848202</link>
      <description>Hello,&lt;BR /&gt;    I have just rebuilt my 8.1.7 database , to go from 4K to 8K blocksize. I used export/import and had only minor problems. Both databases use the RULE based optimizer. Today a problem turned up - a query that ran fine before the rebuild, now hangs. A look at the explain plan shows the query using a different index in the new database than it did in the old (I still have the old database up under an assumed name and the query runs great...). Can anyone give me an idea of what is going on? Thanks</description>
      <pubDate>Mon, 03 Jan 2005 18:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454302#M848202</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2005-01-03T18:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454303#M848203</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;RBO selects an execution plan based on available access paths and the ranking of those access paths. Chapter 4 in the Oracle8i Designing and Tuning for Performance provides a list of the access paths, their ranking, and an example of each under the section titled: Rule-Based Optimizer (RBO). &lt;BR /&gt;You can look at the explain plan to find out why the optimizer 'thinks' it has chosen the execution with the best rank. &lt;BR /&gt;&lt;BR /&gt;Are the parameters in init.ora the same for both the database. And what is the parameter DB_FILE_MULTIBLOCK_READ_COUNT set to.&lt;BR /&gt;&lt;BR /&gt;DB_FILE_MULTIBLOCK_READ_COUNT initialization parameter determines the maximum number of database blocks read in one I/O operation during a full table scan. The setting of this parameter can reduce the number of I/O calls required for a full table scan, thus improving performance. The total number of I/Os needed to perform a full table scan depends on such factors as the size of the table, the multiblock read count, and whether parallel execution is being utilized for the operation. &lt;BR /&gt;The optimizer is more likely to choose a full table scan over an index if the value of this parameter is high. The maximum value is always less than the operating system's maximum I/O size expressed as Oracle blocks ((max I/O size)/DB_BLOCK_SIZE). If you set this parameter to a value greater than the maximum, Oracle uses the maximum. &lt;BR /&gt;If using RBO (rule based optimizer), the optimizer will not consider the selectivity of index when determining the execution path (unless it is unique index). &lt;BR /&gt;&lt;BR /&gt;The maximum value of the overall multiblock read factor is calculated as:    &lt;BR /&gt;  &lt;BR /&gt;    (db_block_size * db_file_multiblock_read_count)  &lt;BR /&gt;   &lt;BR /&gt;The value of db_file_multiblock_read_count is limited by the multiblock read factor in the operating system level.    &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&lt;BR /&gt;Indira A&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jan 2005 22:50:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454303#M848203</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-01-03T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454304#M848204</link>
      <description>hi Dave,&lt;BR /&gt;&lt;BR /&gt;quite difficult to troubleshoot. On each environment, I would set SQLTRACE ON, generate the trace file and run a TKPROF report and compare.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Tue, 04 Jan 2005 00:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454304#M848204</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-01-04T00:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454305#M848205</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;What kind of export/import did you do? Can you post the export full instruction you used here?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Tue, 04 Jan 2005 06:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454305#M848205</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-04T06:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454306#M848206</link>
      <description>simply : block size incresing changes cost for full table scan. They are less expensive so they are more often used.&lt;BR /&gt;It will be the same increasing db_file_multiblock_read_count parameter.&lt;BR /&gt;&lt;BR /&gt;One other thing, using export/import has re-organized your DB. So tables/indexes are now contiguous and reading big data in them are now sequential reads when they where random reads. This may lower costs on large reads.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jan 2005 06:48:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454306#M848206</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-04T06:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454307#M848207</link>
      <description>Dave&lt;BR /&gt;&lt;BR /&gt;You say you run rule based optimizer. Could you confirm you don't have stats on the tables (otherwise CBO will be used).&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Tue, 04 Jan 2005 07:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454307#M848207</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-01-04T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454308#M848208</link>
      <description>The db_multiblock_read_count is 16 for both databases. This would equate to the new database having twice the max IO as the old. Still not huge compared to the max. My value for scsi_maxphys (maxiosize) is 1M. No tables were analyzed (I am looking at dba_tables where last_analyzed is not null). Is there a better way to check this? The table is an Oracle apps table (INV.MTL_MATERIAL_TRANSACTIONS) and has several M rows. It has the same indexes as before. Question - how can CBO be used if the initora file specfies RULE? The export was done as per various documents on MetaLink. I preconfigured an empty database by creating needed tablespaces and datafiles. Then used a named pipe, to connect the export to the import. The indexes were created by generating an indexfile prior to the main export/import. This was broken into scripts, etc.</description>
      <pubDate>Tue, 04 Jan 2005 09:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454308#M848208</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2005-01-04T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454309#M848209</link>
      <description>You used RECORDLENGTH export option?</description>
      <pubDate>Tue, 04 Jan 2005 10:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454309#M848209</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-04T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454310#M848210</link>
      <description>last_analyzed=null is sufficent to tell table is not analyzed.&lt;BR /&gt;optimizer_mode parameter set to RULE is sufficent to tell you are using RBO.&lt;BR /&gt;&lt;BR /&gt;Now, even if you are using RBO, it may be possible that import/export procedure has rebuild index that were invalid.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Jan 2005 10:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454310#M848210</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-01-04T10:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454311#M848211</link>
      <description>I did not use the RECORDLENGTH option in the export. My understanding of this parm is that is just performs a write in chunks of the size specified.</description>
      <pubDate>Tue, 04 Jan 2005 10:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454311#M848211</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2005-01-04T10:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454312#M848212</link>
      <description>You followed note 1011167.7?&lt;BR /&gt;&lt;BR /&gt;Maybe Fred is right: use adadmin (as apps user - usualy appsmgr) to compile all database objects.</description>
      <pubDate>Tue, 04 Jan 2005 11:02:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454312#M848212</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-04T11:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454313#M848213</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;Did you also verify that the indexes do not have statistics.  I remember an issue with 8i and Apps 11.0 where rebuilding indexes with the parallel option which set the parallel degree on the indexes - that caused the CBO to be used even with the RBO set at the db level.  &lt;BR /&gt;&lt;BR /&gt;Check for dba_indexes for indexes with a value for degree greater than 1.&lt;BR /&gt;&lt;BR /&gt;You can correct with &lt;BR /&gt;alter index &lt;INDEX name=""&gt; noparallel;&lt;BR /&gt;&lt;BR /&gt;If that does not do it please post the old and new execution plans.&lt;BR /&gt;&lt;BR /&gt;Patti&lt;/INDEX&gt;</description>
      <pubDate>Tue, 04 Jan 2005 11:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454313#M848213</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-01-04T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454314#M848214</link>
      <description>I used ML doc 1011167.7 as a starting point for the export (I precreated tablespaces and datafiles to minimize downtime). I have already run scripts to compile all invalid objects after the process. I have attached a screen shot showing the explain plan (new). The old is identical except for the index MLT_MATERIAL_TRANSACTIONS_N2 is used instead of N1. Both indexes are composite: the N1 index has INVENTORY_ITEM_ID first, N2 has TRANSACTION_SOURCE_ID first.</description>
      <pubDate>Tue, 04 Jan 2005 11:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454314#M848214</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2005-01-04T11:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454315#M848215</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;Sorry about the delay...&lt;BR /&gt;&lt;BR /&gt;Try to put the inventory_item_id condition first and to use organization_id column in the query (I always use it in my queries to INV tables), like this:&lt;BR /&gt;&lt;BR /&gt;"...&lt;BR /&gt;where msi.inventory_item_id = :b3 and&lt;BR /&gt;msi.organization_id = :bn and&lt;BR /&gt;mmt.inventory_item_id = msi.inventory_item_id and&lt;BR /&gt;...&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;Finaly, if you use a date interval in this query it may execute via MLT_MATERIAL_TRANSACTIONS_N1:&lt;BR /&gt;&lt;BR /&gt;"...&lt;BR /&gt;mmt.transaction_date between :p_date_from and :p_date_to and&lt;BR /&gt;...&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Wed, 05 Jan 2005 04:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454315#M848215</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-01-05T04:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454316#M848216</link>
      <description>Have you looked at the trace file created by an actual run of the query, not just the plan from SQL Navigator?  On my system the index on transaction_source_id is more selective than  inventory_item_id, so the plan does appear to be the correct one.  A level 12 trace would give you better information as to where the time is being spent.&lt;BR /&gt;&lt;BR /&gt;Also check out metalink note 70008.1 - this gives an explaination of the problems with using parallel index rebuilds.  It should be fixed in 8.1.7, but I would make sure all the indexes are set to noparallel just in case.&lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Wed, 05 Jan 2005 09:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454316#M848216</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-01-05T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle explain plan changed after export</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454317#M848217</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;You can also issue an 'alter session set db_file_multiblock_read_count = 8' and see if that changes the explain plan for the query as well.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Wed, 05 Jan 2005 18:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/oracle-explain-plan-changed-after-export/m-p/3454317#M848217</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2005-01-05T18:58:28Z</dc:date>
    </item>
  </channel>
</rss>

