out-of-date statistics - expected behavior?

If a table is monitored, 0 rows, collect stats, insert 100 rows < do not commit >, flush the pool followed, the show 100 inserted rows and dba_Tab_statistics STALE watch dba_tab_modifications = YES (as BLAND is based on lines changed as a percentage of 10% against the collected statistics)

Now, lines to restore the 100, drain the pool monitoring, we still see as obsolete statistics.   Is this expected behavior?   It simply means that the table will have its stats are gathered again in the next window of collection if this isn't really a problem but just so I know its expected.

SQL > drop table t1;

Deleted table.

SQL >

SQL > create table t1 select * from dba_objects where rownum = 0;

Table created.

SQL > exec dbms_stats.gather_table_stats (ownname = > user, tabname = > 'T1');

PL/SQL procedure successfully completed.

SQL >

SQL > SELECT table_name, num_rows, stale_stats OF SYS. DBA_TAB_STATISTICS where table_name = 'T1 ';

TABLE_NAME, NUM_ROWS STA

------------------------------ ---------- ---

T1                                      0 NO

SQL >

SQL > insert into t1

2 Select * from dba_objects

3 where rownum < 101;

100 rows created.

SQL >

SQL > execute DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO;

PL/SQL procedure successfully completed.

-We can see that the lines were chosen as changed since we emptied the pool monitoring

SQL > select table_name, DBA_TAB_MODIFICATIONS inserts

2 where table_name = 'T1 '.

3;

TABLE_NAME INSERTS

------------------------------ ----------

T1                                    100

-the stats are now obsolete and

SQL > SELECT table_name, num_rows, stale_stats OF SYS. DBA_TAB_STATISTICS where table_name = 'T1 ';

TABLE_NAME, NUM_ROWS STA

------------------------------ ---------- ---

T1                                      0 YES

-Check the rows are in the table

SQL > select count (*) from t1;

COUNT (*)

----------

100

SQL > rollback;

Complete restoration.

-Check the lines are gone

SQL > select count (*) from t1;

COUNT (*)

----------

0

-Rinse the monitoring

SQL > execute DBMS_STATS. FLUSH_DATABASE_MONITORING_INFO;

PL/SQL procedure successfully completed.

SQL >

- but the tab_modifications and therefore statistics are still showing stale even if 100 inserts restored

SQL > select table_name, inserts, updates, deletes DBA_TAB_MODIFICATIONS

2 where table_name = 'T1 '.

3;

UPDATES OF INSERTIONS DELETIONS TABLE_NAME

------------------------------ ---------- ---------- ----------

T1                                    100          0          0

SQL >

SQL > SELECT table_name, num_rows, stale_stats OF SYS. DBA_TAB_STATISTICS where table_name = 'T1 ';

TABLE_NAME, NUM_ROWS STA

------------------------------ ---------- ---

T1                                      0 YES

SQL >

I think what you describe is a reasonable behavior.

When you run ROLLBACK, Oracle built more DML to reverse the effect of the previous DML and commits the batch as a single transaction. You can almost say that while SQL has a ROLLBACK command, Oracle does not work. It might be better if in your example DBA_TAB_MODIFICATIONS showed 100 insertions as well as 100 deletions.

Also, don't forget that there are more statistics than the number of rows. Scopes can have been allocated, high waters moved. The ROLLBACK will affect not the latter, so that they are definitely outdated.

Tags: Database

Similar Questions

  • How out-of-date statistics affects the decisions of the optimizer

    Hello

    We use Oracle 11.1 RAC. The optimizer_dyanmic_sampling parameter is set to 2. We do not voluntarily automatic grouping statistics. We have tables with stale statistics. I'm not asking if we need to collect statistics for these or not. My questions are: what can the optimizer due when he meets obsolete statistics? The optimizer can choose to use dynamic sampling of these tables with stale statistics? If yes how can I determine when this happens?

    Thank you

    Richard

    Published by: rbrieck on November 30, 2011 10:50

    I think that bland applies only to decide whether to collect statistics. The optimizer uses information, given in the context where it is running, which can include data access information in more modern versions. Missing statistics affect the optimizer - are stale? Only when he decides to collect.

  • Adobe Acrobat plug of keeps showing that is out of date, even after the update or reinstall.

    Other users have reported similar problems. My particular case: Running Firefox - date (42.0) - Windows 7 (as so far). Firefox has constantly watch the Adobe Acrobat Reader plug-in is not up-to-date. I tried to update and reinstalled Acrobat. I just had request Acrobat update which has been a success and also updated to Firefox. Firefox still has reports that Acrobat is obsolete. Firefox reports that the current add-on is 15.9.20069.28170, but clicking on update now button on the Add you check page contains links to a page of Adobe update with the version number 2015.009.20069. When I search (Google) for the latest version, I've reached a page that lists all versions, updates, etc.. The latest version is 2015.009.20069. According to the Panel, the version of Adobe Acrobat Reader is installed on the computer is 15.009.20077!

    As far as I can tell it's working properly, updated regularly. I don't know where the 28170 number comes from or why page Add on reports that Acrobat is out of date, unless the version update of the Acrobat Reader software is not actually update the Add On from Firefox portion.

    Any suggestion or comment?

    My suggestion is to ignore the information from the website of checker plugin and use the built-in functionality of Adobe to check updates. In your DC of Adobe Reader or Adobe Acrobat DC:

    Help menu > check for updates

    While the site checker plugin uses data provided by Adobe, there seems to be some discrepancies between the program and the version number of plugin that have not yet been resolved.

  • Is there a way to disable Firefox from telling me that Adobe Flash Player is out of date?

    We run a program that does not allow students to update programs or make other changes. The problem is that Firefox thinks that it NEED to update Flash Player whenever there is a new version. It is simply not feasible with as many computers as we support. 99% of the time, the update is not necessary.

    Is there a way to disable Firefox from telling me that Adobe Flash Player is out of date?

    You can disable the blocking of modules in Firefox and remove the file blocklist.xml in the profile folder.

    Disable these prefs.
    Extensions.blocklist.Enabled = change this pref to false
    Extensions.blocklist.URL = delete the url if Firefox can't find the server where this file is sent from

  • On the OWN website of mozilla, I get the message "Your Firefox is out of date and may contain a security risk!' but I just download and install the latest version?

    I have the latest version of firefox to date (15/10/2014 v32) and I still get messages while on various sites Internet (Youtube, Google, Gmail), telling me that your Firefox is out of date and may contain a security risk.

    I have not even this message on the support pages of mozilla.org?

    I tried the subject: config reset the useragent (s) fix, but it does not work.
    I tried browsing in safe mode and still get the error.

    Why this false/positive happening?

    Thank you

    Hello your useragent (information, the browser sends to websites to identify its version) - apparently by mistake - shows this:

    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20140923 Firefox/4.0.0; xs-A30GTmfXR3o;CkHZPf;
    

    probably some kind of unwanted software has crashed it. Please refer to this article in order to reset the user agent settings in firefox:
    Sites Internet says that Firefox is obsolete or incompatible, even if it's the latest version

    in case this is not enough, please try to reset the whole browser:
    Firefox - modules to reset and refresh settings

  • Did you know that your Internet Explorer is out of date?

    Hello
    When I go to this site http://www.sickkids.ca/ , I get this error message, please advice.

    Did you know that your Internet Explorer is out of date?

    To get the best possible experience using our website, we recommend that you upgrade to a newer version or other web browser. A list of web browsers most popular are found below.

    It probably gives you this warning because your Firefox is very obsolete. Please read www.getfirefox.com to see how to upgrade to the latest version of Firefox (14.0.1 right now)

  • Hi, I am told by a website mFirefox is out of date so I can't get all the features. I continue to download an update, but it continues still to be. Could you please help me. Thank you.

    Hi, I am told by a website mFirefox is out of date so I can't get all the features. I continue to download an update, but it continues still to be. Could you please help me. Thank you.

    Download the latest version of Firefox to:

    Uninstalling Firefox

    Install Firefox on Windows

    Check and tell if its working.

  • Disable the Structure (bug or expected behavior?)

    Why a disable_structure does not have a wire not connected to anything?
    ... and allows a thread with a free end.

    because it is not possible to put the wire in the structure!
    Wire (not not connected what whatsoever) is always behind the structure.

    Why this behavior? is this a bug? ... or expected behavior?

    It is common to all structures. If you attempt to drag any structure exclusively around the wires (broken or not), the son will stay below. There are already ideas for this in general (see for example here.)

    If this should be changed, it must be done at the global level for all structures. There are arguments for both sides, and sometimes one is better than the other. Maybe we should be able to select what we need-based (e.g. using ctrl - drag to include the son and the plain of sliding to keep the current behavior).

  • Insists on the fact of XP Antivirus is Out of Date, but I have the latest definitions?

    I am operating XP with Security Essentials and the system insists on the fact that my antivirus is out of date, even though I have updates?

    Have analyzed and checked for viruses many times but cannot solve this problem?

    Check the PC date and time.

    Right click on the clock in the system tray. Select adjust Date and time.

    Check and correct the month, day, year, hour, minutes and time zone.

    Reboot if you have changed all the foregoing.

    Prior security software?

    No matter what security software installed again?

    A possible reason for this problem is that you have installed entirely or partially on the PC security software conflict. Remove all other computer security software.

    You may need to use a cleaning tool to remove your prior security software:

    http://social.answers.Microsoft.com/forums/en-us/msestart/thread/407bf6da-C05D-4546-8788-0aa4c25a1f91

    Be sure to check this post:

    Checklist for installation of Microsoft Security Essentials

    If this fails to solve the problem, open an email support incident:

    To open an email support incident, start here:

    https://support.microsoftsecurityessentials.com/

  • Windows Security Center still shows my old Trend Micro antivirus program. I get security alerts saying that my antivirus program is out of date.

    My current antivirus program is Spysweeper, but when I click on the windows security shield it still shows my old AntiVir of Trend Micro.  I get windows security alerts saying that my antivirus program is out of date, although I update every day and analyze daily with Spysweeper and it works fine.

    Start > run > cmd [Enter]
    net stop winmgmt [Enter]
    CD /d %windir%\system32\wbem [Enter]
    repository.old repository ren [Enter]
    net start winmgmt [Enter]

    It may take a minute or two to complete while WMI rebuilt the database. MS - MVP - Elephant Boy computers - don't panic!

  • Here is a list of the driver updates that do not install for one reason or another: Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller your driver is out of date.

    Here is a list of the driver updates that do not install for one reason or another:

    Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller

    Your driver is out of date.

    The installed driver date 30/05/2012

    New driver Date 18/09/2012

    After the next driver update > the following message appears:

    This driver downloaded successfully.

    You want to install it now?

    Yes. Then was the following result:

    Please update your Windows update Agent version.

    You can download the latest version by clicking here.

    If the Microsoft FixIt solution above does not solve your problem.

    Check on the Intel site.

    For example: http://www.intel.com/p/en_US/support/detect

  • Activating Windows emits the error "the link is out of date.

    Original title: Windows activation problems.

    I had problems with the activation of windows 8 and so I gave my laptop to a computer repair shop business to help me to activate. Although, on the Panel, it is activated, I still get notifications for windows activation and when I click on "activate windows", I get a message about settings pc saying "the link is out of date": it is a real problem because right now I can't customize my account or lock screen. Please what can I do.

    Can you choose another country like the United States and try this phone number?

    or

    Direct activation number: (888) 725-1047

    1-800-936-5700

  • incompatible data types: expected NUMBER got LONG

    Version 3.2.20.09

    Hello

    I use SQL Developer and want to see trigger body using as a function but unfortunately its data type is long so that I get the error message, is there a way by which I can see the bodies of trigger...

    Example query

    TRIGGER_BODY

    SELECT TRIGGER_BODY FROM user_triggers

    WHERE TRIGGER_BODY LIKE '% HEAR. "

    Error

    ORA-00932: inconsistent data types: expected NUMBER got LONG

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Error on line: column 2: 7

    This isn't a matter of SQL Developer.  Access quick, but partial, the answer is that the display of a LONG column in SQL * more / developer SQL can be done by issuing just one

    1000 long - value (or some other, more)

    You are referencing a LONG in a WHERE clause, however, is absolutely forbidden as I know.  Maybe something new (System invisible columns generated in LONG columns in the data mirrored dictionary?) are available in 12 c, but disapproval of LONG was announced in Oracle 8 in favour of the LOBs.

    Anyway, if you do not want to ask this question in the forum of PL/SQL, see solution code of Laurent Schneider in this old debate...

    Search long data type in the column

  • Adobe Flash Player is out of date popup panel

    Periodically, I get a group of pop up on my desk that says that my Adobe Flash Player is out of date.  I check their site, and I am currently with version: 17.0.0.134.

    Some examples of signs.  These panels are legitimate? Thank you!!

    HACK_ADOBE_FLASH_2.png

    HACK_ADOBE_FLASH_1.png

    Doubtful that they are legitimate. your system is infected with malware, or visiting infected websites.

    Download only the updates of the Flash Player from adobe.com and macromedia.com site:

    P.S. your installed Flash Player version 17.0.0.134 is up-to-date, so you get all these notifications from Adobe.

  • ORA-00932: inconsistent data types: expected DATE receipt NUMBER to call OIC OCIStmtExecute OBIEE 11g

    Hi friends,

    I get this error: ORA-00932: inconsistent data types: expected DATE got the NUMBER to the call of the OIC OCIStmtExecute when I'm putting the filter on the date column condition.

    "Sun Time". " Day' < = cast (MAX ("Sun time" "." ")) Date day")) and"Sun Time ". "' Day ' > = TIMESTAMPADD (SQL_TSI_MONTH,-1, cast (MAX ("Sun time".) "Day") as date). "

    I sank the date max, but if I get the above error. I think max (date) creates the problem.

    Please suggest your opinion on that.

    Thank you.

    Thank you for your suggestions.

    I used the variable, and it helped.

    "Sun Time". " Date' <= valueof(maxdate)="" and="" "dim-time"."date"="">= TIMESTAMPADD (SQL_TSI_MONTH-1, VALUEOF (Maxdate))

Maybe you are looking for