<?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: CBO bug in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914169#M824282</link>
    <description>2 questions :&lt;BR /&gt;&lt;BR /&gt;1) is your test environment a recent copy of your production data ?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; Yes&lt;BR /&gt;&lt;BR /&gt;2) have you any differences in init.ora parameters (that can influence performance) ?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; No</description>
    <pubDate>Mon, 01 Aug 2005 20:06:00 GMT</pubDate>
    <dc:creator>ericfjchen</dc:creator>
    <dc:date>2005-08-01T20:06:00Z</dc:date>
    <item>
      <title>CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914163#M824276</link>
      <description>This is Oracle 9.0.1.4. We have 2 environments. One SQL execution plan is fine &lt;BR /&gt;on the TEST environment, but it is very bad on the Production. Both database &lt;BR /&gt;are CBO. We analyze the realted tables on the Production but still bad. If we &lt;BR /&gt;add hint /*+ rule */, it becomes good. Besides hint, how can we do? Can we use &lt;BR /&gt;SQL profile to fix the execution plan? Or export the related tables' statistic &lt;BR /&gt;from the TEST and import to the PRODUCTION?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Eric&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jul 2005 19:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914163#M824276</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-07-24T19:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914164#M824277</link>
      <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;2 questions :&lt;BR /&gt;&lt;BR /&gt;1) is your test environment a recent copy of your production data ?&lt;BR /&gt;&lt;BR /&gt;2) have you any differences in init.ora parameters (that can influence performance) ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Mon, 25 Jul 2005 02:46:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914164#M824277</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-07-25T02:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914165#M824278</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;please find attached Metalink doc :35934.1 "Cost Based Optimizer - Common Misconceptions and Issues"&lt;BR /&gt;&lt;BR /&gt;This may help to understand the behaviour of the query in your production database.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Mon, 25 Jul 2005 02:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914165#M824278</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2005-07-25T02:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914166#M824279</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if you are sure you want to do it..&lt;BR /&gt;&lt;BR /&gt; dbms_stats is the way to do it!&lt;BR /&gt;&lt;BR /&gt;if you need any further guidance, let us know.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 25 Jul 2005 03:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914166#M824279</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-07-25T03:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914167#M824280</link>
      <description>Eric,&lt;BR /&gt;If you can not find an init.ora parameter that accounts for the difference in execution plans then you could use dbms_stats to export the table statistics from test and import them into the production database.  &lt;BR /&gt;&lt;BR /&gt;I've done this a couple of times when minor differences in the number of records caused execution plans in my production database to change.  Importing the test statistics did solve the problem.  You just need to remember to re-import the old statistics if you regularly run gather schema statistics in production.&lt;BR /&gt;&lt;BR /&gt;Stored Outlines are designed for this type of issue but I have not had any luck with them when the code is from sqlforms applications.&lt;BR /&gt;&lt;BR /&gt;Patti</description>
      <pubDate>Mon, 25 Jul 2005 09:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914167#M824280</guid>
      <dc:creator>Patti Johnson</dc:creator>
      <dc:date>2005-07-25T09:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914168#M824281</link>
      <description>How to use dbms_stats to export the table statistics from testing to production?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 01 Aug 2005 20:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914168#M824281</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-08-01T20:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914169#M824282</link>
      <description>2 questions :&lt;BR /&gt;&lt;BR /&gt;1) is your test environment a recent copy of your production data ?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; Yes&lt;BR /&gt;&lt;BR /&gt;2) have you any differences in init.ora parameters (that can influence performance) ?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; No</description>
      <pubDate>Mon, 01 Aug 2005 20:06:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914169#M824282</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-08-01T20:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914170#M824283</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;To copy the statistcis from one database to another you need to&lt;BR /&gt;&lt;BR /&gt;1. Create the holding table using DBMS_STATS&lt;BR /&gt; SQL&amp;gt; exec dbms_stats.create_stat_table('user1','STATS'); &lt;BR /&gt;This command creates the holding table for statistics. The table that is created is owned by user1 and called STATS (user1.STATS). &lt;BR /&gt; &lt;BR /&gt;2. Move the statistics to the STATS holding table&lt;BR /&gt;exec dbms_stats.export_table_stats('user1','EMP',NULL,'STATS',NULL,TRUE);&lt;BR /&gt;This populates the holding table user1.STATS with statistics gathered on the user1.EMP table, and includes any indexes and places them in the user1.STATS table. &lt;BR /&gt;&lt;BR /&gt;3. Then Export the data in the STATS table using exp on the source database&lt;BR /&gt;       %exp user1/password tables=STATS file=expstat.dmp  &lt;BR /&gt; &lt;BR /&gt;4. Then Import on the new database, run import: &lt;BR /&gt;      %imp user1/password file=expstat.dmp full=y log=implog.txt   &lt;BR /&gt;&lt;BR /&gt;5. Populate the data dictionary in the new database. &lt;BR /&gt;     SQL&amp;gt; exec dbms_stats.import_table_stats('user1','EMP',NULL,'STATS',NULL,TRUE); &lt;BR /&gt;&lt;BR /&gt;Attached is Metalink Note:117203.1 which describes the steps to copy the statistics from one database to another database using DBMS_STATS&lt;BR /&gt;&lt;BR /&gt;IA &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Aug 2005 21:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914170#M824283</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2005-08-01T21:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914171#M824284</link>
      <description>Check and make sure your kernel parameters and, swap memory, cpus are the same or better in production.&lt;BR /&gt;&lt;BR /&gt;Also, I see people supposedly test stuff allot of times and then they put it in production with allot more users and a much larger database and wonder why its slow.  Hopefully this is not your case ;).</description>
      <pubDate>Mon, 01 Aug 2005 23:07:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914171#M824284</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2005-08-01T23:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: CBO bug</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914172#M824285</link>
      <description>thanks</description>
      <pubDate>Fri, 19 Aug 2005 03:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cbo-bug/m-p/4914172#M824285</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-08-19T03:27:05Z</dc:date>
    </item>
  </channel>
</rss>

