How to understand if the table update or obsolete?

Hello Experts

I use the following to understand that the picture is up-to-date or out-of-date. However, it is said that the picture is not expired, but when I check the number of lines of user_tables is does not not to the actual number of lines. The difference is 272132. Is this normal? Normally, about 50000 rows are inserted in the table of responses a day.

My other question is, are there other ways to ensure that statistics on the table are updated or not? What do you think?

Connected to:

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

With partitioning, OLAP, Data Mining and Real Application Testing options

SQL > select stale_stats from the user_tab_statistics where table_name = "ANSWERS";

STA

---

NO.

SQL > select num_rows from user_tables where table_name = 'RESPONSES;

NUM_ROWS

----------

18525435

SQL > select count (*) responses;

COUNT (*)

----------

18797567

Note: by the way what do I do in order to write the code in code view? I used {code}, but it doesn't work.

Thanks in advance.

Hello

The NUM_ROWS in USER_TAB_STATISTICS will be updated when you GATHER STATISTICS on the table. Check the column LAST_ANALYZED in USER_TAB_STATISTICS, which indicates if the STATISTICS were gathered again on the RESPONSES of the Table. If collect you statistics on the RESPONSE table now then NUM_ROWS will reflect the most accurate value.

Normally after 'significant' DML (INSERT / UPDATE/DELETE) on a table, it is recommended to collect statistics.

DBMS_STATS documentation describes this http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_stats.htm#CIHBIEII

In addition,

Use the Advanced Editor and > to select image formatting.

Demonstration of Table statistics collection adding...

IMPLEMENT...

> drop table tst

table deleted TST.

> format table_name col A10

> alter session set NLS_DATE_FORMAT = "dd-mm-yyyy HH24:mi:ss.

session the changed VALUE.

> create table tst (c number)

table created TST.

> insert in TCT select level c. from dual connect by level<>

99 inserted rows.

> validation

committed.

We will collect statistics on the TST table...

> exec ('HR', 'TST') SYS.dbms_stats.gather_table_stats

anonymous block filled

> select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

TCT 99 04/12/2013-17:58:51

NUM_ROWS account (about) the correct number of rows.

We will insert several lines and check the statistics.

> insert in TCT select level c. from dual connect by level<>

999 inserted rows.

> validation

committed.

> select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

TCT 99 04/12/2013-17:58:51

NOTE: The NUM_ROWS and LAST_ANALYZED have not changed... YET.

> exec ('HR', 'TST') SYS.dbms_stats.gather_table_stats

anonymous block filled

> select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

TST 1098 17:58:52 04/12/2013

Now we have complete and up-to-date statistics.

Hope it will be useful.

VR,

Sudhakar

Tags: Database

Similar Questions

  • How do I get the table cells?

    It's my get code that any object in propagation.

    Int32 childCount = parent-> GetChildCount();

    for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

    {

    InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

    ChildUIDRef = UIDRef: GetUIDRef (child);

    TextFrame table

    }

    How do I get the table cells?

    You can access the table using ITableModel and GridAddresscell.

    But to get to the ITableModel since ITextModel implies some complexity.

    Few things to understand:

    -L'interface that corresponds to the written document is ITextModel

    -The recommended method to iterate tables in a story done by ITextStoryThreadDictHier

    -Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()

    -Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.

    Once you have ITableModel you can get ITableCell as follows:

    ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell

    You can refer to SnipperRunner (SnpManipulateTextModel).

    Download text template table model:

    InterfacePtr textModel (storyUIDRef, UseDefaultIID());

    InterfacePtr textStoryDictHier (textModel, UseDefaultIID());

    NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary

    Now loop the dicthier to iterate through all the threads dicts.

    InterfacePtr textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID());

    InterfacePtr tableModel (textStoryThreadDict, UseDefaultIID());

    If (tableModel) / / the storythreaddict represents a table

    {

    You are now in a table

    }

  • How can I disable the Agent updates from HP running?

    HP pavilion D4100Y

    Windows XP SP2 or 3 (not sure)

    No error message

    No recent changes

    Problem: The program "HP updates Agent" run frequently and on no particular schedule, certainly not the one I chose.  He takes over my computer for hours and using most of the CPU, fluctuating between 13% and 87% to 1 etc.3% at 6%, etc.. The computer crashes and I can not use it for something else. On the HP updates screen, I put updates on 'NEVER', but that did not work.  The programs always run. In the Windows Task Manager window, the program is called "Agent updates from HP".

    I find nothing on this problem in the base of support.

    How can I disable the Agent updates from HP running?

    Select your Start button, in the search box type 'msconfig' then msconfig.exe under programs.

    Look under the tabs "Services" and "Boot". Uncheck update HP agent, select 'Apply' and close.

  • How can I load the security updates that Belarc suggests?

    HOW CAN I LOAD THE SECURITY UPDATES BELARC SUGGESTS?

    Hello jobtoo,

    You may have already solved this problem, but my suggestion would be to contact Belarc support.

    You can use the link below:
    e-mail: * address email is removed from the privacy *

    http://www.Belarc.com/contact.html

    Thank you!

  • How to set up the Java Update automatically?

    Anyone have any suggestions on how to automatically configure the Java Update?

    Thanks in advance for your suggestions :>

    Control Panel > Java > update. ;)

  • How can I get the windows update? X8024400A error)

    I did a restore after my pro windows xp crashed now can't do windows update! How can I get the windows update? I get an error from the site Web has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem. X8024400A error)

    Please help me!

    I could not download my favorite Antivirus unable to get updates.  Only a few site I couldn't even. It seemed to get worse until:

    I fould a place that gave me these instructions:

    1. Reregister the BITS files and Windows Update files. To do this, type the following commands at a command prompt. Press ENTER after you type each command.

      • Regsvr32.exe atl.dll
      • Regsvr32.exe urlmon.dll
      • Regsvr32.exe mshtml.dll
      • Regsvr32.exe shdocvw.dll
      • Regsvr32.exe browseui.dll
      • Regsvr32.exe jscript.dll
      • Regsvr32.exe vbscript.dll
      • Regsvr32.exe scrrun.dll
      • Regsvr32.exe msxml.dll
      • Regsvr32.exe msxml3.dll
      • Regsvr32.exe msxml6.dll
      • Regsvr32.exe actxprxy.dll
      • Regsvr32.exe softpub.dll
      • Regsvr32.exe wintrust.dll
      • Regsvr32.exe dssenh.dll
      • Regsvr32.exe rsaenh.dll
      • Regsvr32.exe gpkcsp.dll
      • Regsvr32.exe sccbase.dll
      • Regsvr32.exe slbcsp.dll
      • Regsvr32.exe cryptdlg.dll
      • Regsvr32.exe oleaut32.dll
      • Regsvr32.exe ole32.dll
      • Regsvr32.exe shell32.dll
      • Regsvr32.exe initpki.dll
      • Regsvr32.exe c:\windows\system32\wuapi.dll
      • Regsvr32.exe c:\windows\system32\wuaueng.dll
      • Regsvr32.exe wuaueng1.dll
      • Regsvr32.exe c:\windows\system32\dllcache\wucltui.dll
      • Regsvr32.exe c:\windows\system32\wups.dll
      • Regsvr32.exe wups2.dll
      • Regsvr32.exe wuweb.dll
      • Regsvr32.exe qmgr.dll
      • Regsvr32.exe qmgrprxy.dll
      • Regsvr32.exe c:\windows\system32\wucltux.dll
      • Regsvr32.exe c:\windows\system32\muweb.dll
      • Regsvr32.exe c:\windows\system32\wuwebv.dll
    2. Reset Winsock. To do this, type the following command at a command prompt and press ENTER:
      netsh winsock reset
    3. If you are running Windows XP or Windows Server 2003, you must set the proxy settings. To do this, type the following command at a command prompt and press ENTER:
      Proxycfg.exe d
    4. Restart the BITS service and the Windows Update service. To do this, type the following commands at a command prompt. Press ENTER after you type each command.
      • net start bits
      • net start wuauserv
    5. If you are running Windows Vista or Windows Server 2008, erase the BITS queue. To do this, type the following command at a command prompt and press ENTER:
      Bitsadmin.exe/Reset /allusers
    6. Install the latest Windows Update Agent. For more information, click on the number below to view the article in the Microsoft Knowledge Base:
      949104 (http://support.microsoft.com/kb/949104/) how to obtain the latest version of the Windows Update Agent to help manage updates on a computer
    7. Restart the computer.

    After doing these, well most of them work. When I clicked on OK, but some are not. All of this worked!   I was able to update.  I was about to throw my computer!

    I don't know the tip you give here would have worked more quickly.  I just couldn't not here. Something was originally internet Exployer of do not leave me here.

    I had to work on him. Now everything seems to work very well. I have sort of my breatgh again and wory that error could haoppen again.

    1 million for your help thanks. It's great to have a place like this with pro like you here.  Much appreciated by a non pro like me.  Great place to learn more about computers.

  • How to turn off the constant updates for Vista?

    disable the update

    How to turn off the constant updates for Vista? I'm fed up with them. every day the computer has so much more to do than what I want to do. I put Windows Update automatic to advise me when there are updates available. Update told me that everything is up to date. I turn on the next time and it will automatically download the new 6 * important * uopdates.  XP has never used a parasite like this stuff constantly new download.  HOW CAN I GET RID OF HIM?

    Thank you

    The updates released this week are updated for security. If ignore them, your computer is vulnerable to malicious software.

    http://TechNet.Microsoft.com/en-us/security/bulletin/MS11-Sep

    http://TechNet.Microsoft.com/en-us/security/bulletin

  • How can I install the latest update to the Bluetooth radio adapter generic Bluetooth? The version I have is 6.1.7601.17889

    How can I install the latest update to the Bluetooth radio adapter generic Bluetooth?  The version I have is 6.1.7601.17889

    Hi George,.

    Click on the link mentioned below, if it's an HP computer.

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01590950&cc=us&DLC=en&LC=en&product=4314711&tmp_track_link=ot_search

    Good day!

    Answer please if you have any questions.

  • How to find all the table names in all modules in EBS R12?

    How to find all the table names of all the modules in EBS R12?

    In addition, you can go to http://etrm.oracle.com, you select the version of the EBS, select "FND Data" or "S/n data", select the Type of the object TABLE and you will get all the tables of EBS in module.

  • How can I get the latest update?

    How can I get the latest update?

    10.8.5 Mac can only support up to 2014 of CC Illustrator (version 18) than the more recent who's CC 2015 (v 19) need Mac OS 10.9 or later version. You may need to check if there is a possibility of update of the OS by Apple. Please visit: system requirements | Adobe Illustrator

  • I have 6 of Lightroom. How can I get the latest update?

    I have 6 of Lightroom. How can I get the latest update?

    You suggest to completely uninstall Lightroom and reinstall it from this link: Install Photoshop Lightroom

    After the installation of this update 6.4

    You catalogs and editions would be unchanged even after reinstallation.

  • New Adobe program updates are not appearing in the creative cloud, how do I download the new updates?

    As we pretty much all know any new updates to the Adobe programs has been released.

    I downloaded the updates on my desktop, but on my computer laptop Creative Cloud not gives me the opportunity to update and says that all programs are "up to date".

    How can I download the new updates on my laptop?

    Hello

    Please, try the following steps:

    Kind regards

    Sheena

  • How can I remove the Adobe Update icon in the menu bar?

    How can I remove the Adobe Updater menu bar icon? It is pixelated and looks broken. Any help is appreciated.

    Screen Shot 2015-01-30 at 1.10.25 PM.png

    I found this thread, but it does not work. When I click the Updater icon, then click on 'Open updater', it opens up the creative cloud instead. I have not found a way to remove the updater from creative cloud icon.

    Remove Adobe Updater for OS X menu bar?

    Does not work ^^

    Anyone know how to remove it?

    Thank you!

    Found, thanks to messages later in this thread, as I mentioned in the op. Here's what they suggest (you must use Photoshop):

    1. in Photoshop, select help > updates:

    2. click on 'Preferences' in the lower-right.

    3. uncheck the "Notify me of new updates on the menu bar". Then click on 'Ok '.

    I hope that help anyone!

  • How can I get the free update to CS6?

    How can I get the free update to CS6 promised when I bought CS 5.5 student edition?  I bought 5.5 right before 6 is out and part of the package was that the upgrade was free when 6 is out.

    I don't know if a promotion that has been designated two years ago is still in force today, but you can check with Adobe Support by chat or phone and find out.  If the upgrade is still valid then they should be able to direct to the acquisition.

    Here is a link to a page with options to help make contact:

    http://www.Adobe.com/support/download-install/supportinfo/

  • How to find out the Windows Update Agent version I am running

    Anyone know how I can find out which version of the Windows Update Agent I use?  I checked everything and no menu where only allows me to check the version.  This link http://support.microsoft.com/kb/949104 tell me how to get the latest version, but it is not to tell me how do I know if I am running on the latest version.
     
    And what makes it reset my of update windows components?  I read this link (http://support.microsoft.com/kb/971058#appliesto) and understand how to reset components, but I'm not clear on how this will affect my windows update.

    I have Windows Vista Home, SP2.

    Thank you very much!

    Ohanna Hello,

    Thank you for using the Microsoft answers Forums.

    Determine the current Version of WUA:

    Determine the version of Windows Update Agent (WUA) before using it. The current version of WUA is determined by the version of the c:\windows\system32\wuaueng.dll that runs in the current installation of Windows \System32 directory. If the c:\windows\system32\wuaueng.dll is version 5.4.3790.1000 or a later version, WUA is installed. A version earlier than 5.4.3790.1000 indicates that the Software Update Services (SUS) 1.0 is installed.

    When a call is made for SUS 1.0 using the API INTERFACE, an HRESULT of WU_E_AU_LEGACYSERVER is returned.

    You can also use the IWindowsUpdateAgentInfo::GetInfo method to retrieve the latest version of file of the c:\windows\system32\wuapi.dll that runs on a computer. The IWindowsUpdateAgentInfo interface is not supported in WUA 1.0.

    For more information, see update the Windows Update Agent.

    Thank you.

    UDAY $012 please let me know that whether the solution worked or not, I thank you and appreciate your comments.

Maybe you are looking for

  • HP 110-210: fake Clientx643.0 10.0

    My question is simple: what is "false 10.0 Clientx643.0" and I have to get rid of him.

  • How to calculate the standard deviation of a certain number of points?

    Hi, I have a request that I acquire signals of strength and Pu, then on a table. I need to calculate the standard deviation and the mean each a number of points, 1000 for example. I have problems with this, if you can help me I would be grateful. Tha

  • BlackBerry Torch 9800 Blackberry Smartphones constantly turn off, won't stay

    I would like to apologize in advance if this question has been asked before, I tried looking for a solution to this problem, but I can't seem to find the right answer. Today, after a full day of use my phone normally & no problem my phone turn off au

  • Microsoft Intellipoint has stopped working

    Since September 30, when I installed Windows Live Essentials 2010 and some Windows updates, on each connection I get at least two boxes of message saying "Microsoft Intellipoint has stopped working". I have a 1000 keyboard Microsoft Wireless and a Mi

  • WOL on Lenovo IdeaPad S10e

    Hi all I've been looking around various forums, but have not been able to find an answer to the following question. Is the Lenovo IdeaPad s10e (4187-5LG) off Wake On Lan full support? I was able to wake him from sleep mode and sleep, but not complete