<?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>Question Re: Oracle table statistics in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152776#M3248161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fidel, does this job (collecting statistics ) have any frequent of running or it automatically trigger once statistics become old?.... In my case i have tables which are updating rapidly&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 11:00:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-12T11:00:03Z</dc:date>
    <item>
      <title>Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaq-p/9152769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All Members,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way where we can check whether current statistics in table are outdated in oracle? In OTN i found using view "&lt;SPAN style="color: #000000; font-family: tahoma,verdana,sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #f2f2f2;"&gt;DBA_TAB_MODIFICATIONS" we can gather timestamps of statistics&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: tahoma,verdana,sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #f2f2f2;"&gt;But can we use this to compare the quality of statistics in DB tables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: tahoma,verdana,sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #f2f2f2;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: tahoma,verdana,sans-serif; font-size: 11px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #f2f2f2;"&gt;Shanaka.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 06:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaq-p/9152769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T06:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152770#M3248155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;Hi Shanaka,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;As far as I know that the DBA_TAB_MODIFICATIONS table used to collect quality of statistics value by SAP, also. There's only one exception that at the first step, without paying an attention to the DBA_TAB_MODIFICATIONS records, the system creates new statistics by using "&lt;STRONG&gt;-f stats -t all&lt;/STRONG&gt;" parameters. At the second and further steps, new stats will be created for the tables that are need to be collected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;In short, because of the DB20 transaction reflects DBA_TAB_MODIFICATIONS table to store quality of the table stats, both values should be same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;In addition to the information above, you can read the notes, below;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;&lt;A class="urLnkFunction urVt1" href="https://service.sap.com/sap/support/notes/588668" title="Right mouse click to add this SAP Note to your browser favorites"&gt;&lt;SPAN class="urTxtH1" id="header_data"&gt;Note 588668 - FAQ: Database statistics&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="urLnkFunction urVt1" href="https://service.sap.com/sap/support/notes/408527" title="Right mouse click to add this SAP Note to your browser favorites"&gt;&lt;SPAN class="urTxtH1" id="header_data"&gt;Note 408527 - Checking the statistics using DBA_TAB_MODIFICATIONS&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orkun Gedik &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152770#M3248155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152771#M3248156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Statistics do not get outdated, you only need to collect new statistics, when the data changes significantly. Thus the trigger is not the last_analyzed field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="urLnkFunction urVt1 active_link" href="https://service.sap.com/sap/support/notes/588668" title="Right mouse click to add this SAP Note to your browser favorites"&gt;&lt;SPAN class="urTxtH1" id="header_data"&gt;588668 - FAQ: Database statistics&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152771#M3248156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152772#M3248157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Shanaka Chandrasekera wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear All Members,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way where we can check whether current statistics in table are outdated in oracle?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;First you have to define "OUTDATED" and this is the main problem a lot of people has.&lt;/P&gt;&lt;P&gt;do you mean that the statistics were calculated long time ago? (to be define what is "long time ago)&lt;/P&gt;&lt;P&gt;of do you mean that the table content has changed a lot? (also to be define what "a lot" means)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first point should NOT be used (see note &lt;A href="http://service.sap.com/sap/support/notes/825653"&gt;825653 - Oracle: Common misconceptions&lt;/A&gt; point 7)&lt;/P&gt;&lt;P&gt;The second one is already used by BRCONNECT as already mentioned and, by defaut, it check that the change is bigger than 50%. for details check the documentation &lt;SPAN class="SAPXDPTitle "&gt;&lt;A href="http://help.sap.com/saphelp_nw73/helpdata/en/46/ce3317a5171827e10000000a1553f6/content.htm"&gt;Internal Rules for Update Statistics&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152772#M3248157</guid>
      <dc:creator>fidel_vales</dc:creator>
      <dc:date>2012-11-12T08:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152773#M3248158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Orkun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in note 588668 question number 28 is relevant to my query thanks for sharing this and note 408527 can use to create user define threshold to collect statistic on rapidly updating tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will check them .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Shanaka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152773#M3248158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152774#M3248159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks both Michal and Fiel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michal, yest i meant those statistics which are calculated long time ago.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my knowledge what oracle do is it keeps on analyzing statistics and once it realize current statistics were collected long time ago it automatically update current statistics ... If this is the normal method then there can be situation if tables are updating rapidly statistics can become old very soon ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shanaka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 10:26:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152774#M3248159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T10:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152775#M3248160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Shanaka Chandrasekera wrote:&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;To my knowledge what oracle do is it keeps on analyzing statistics and once it realize current statistics were collected long time ago it automatically update current statistics ... If this is the normal method then there can be situation if tables are updating rapidly statistics can become old very soon ..&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Oracle has a job (10g) or "autotask" (11g) that keeps looking the tables for "stalle" statistics. It is basically the same as BRCONNECT does. That is the reason why SAP deactivate that job (and that the job calculate histograms some times where it is not needed and ....)&lt;/P&gt;&lt;P&gt;This means that you should not have such job working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the date when statistics were calculated is not "important" and should not be a focus of any analysis (if the table do not changes why calculate statistics?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 10:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152775#M3248160</guid>
      <dc:creator>fidel_vales</dc:creator>
      <dc:date>2012-11-12T10:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152776#M3248161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fidel, does this job (collecting statistics ) have any frequent of running or it automatically trigger once statistics become old?.... In my case i have tables which are updating rapidly&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152776#M3248161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152777#M3248162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Shanaka Chandrasekera wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Fidel, does this job (collecting statistics ) have any frequent of running or it automatically trigger once statistics become old?.... In my case i have tables which are updating rapidly &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do you mean the oracle job?&lt;/P&gt;&lt;P&gt;if so, it MUST NOT RUN in SAP systems. &lt;/P&gt;&lt;P&gt;You should run instead BRCONNECT (from DB13) once per day.&lt;/P&gt;&lt;P&gt;And again, it does NOT look at the date of the statistics but how much the table has changed (for that it needs the DBA_TAB_MODIFICATIONS, that is also used by BRCONNECT)&lt;/P&gt;&lt;P&gt;check note &lt;A href="http://service.sap.com/sap/support/notes/974781"&gt;974781 Oracle internal maintenance jobs&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152777#M3248162</guid>
      <dc:creator>fidel_vales</dc:creator>
      <dc:date>2012-11-12T11:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle table statistics</title>
      <link>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152778#M3248163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fidal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running those jobs in DB13 daily and not from oracle. I'll initially check these notes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for those information provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for valuable replies &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1050/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:48:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oracle-table-statistics/qaa-p/9152778#M3248163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T11:48:48Z</dc:date>
    </item>
  </channel>
</rss>

