Table monitoring , how do oracle count the numbers ?

hi,
i'm looking at all_tab_modifications , just couldn't figure out where those numbers from ,
DB.9208 , table partitioned
looks like it off of what it should be
my question is
1. when does montioring take place , and by how?
2. is the number cumulative from monitoring turn on ? from instance restart ? or between two snaps ?
3. offical doc says like inserts is Approximate number of inserts since the last time statistics were gathered
that means the number recycles after snap taken , it goes on by every DML , but i have insertions against a table which says inserts is 0
4. some says to reflect the newest exec dbms_stats.flush_database_monitoring_info; which is even more confusing for me and makes no difference in my case
thanks
TABLE_NAME                        INSERTS    UPDATES    DELETES TIME
T_GB_RA_PAGING                     0          0    2372389 20081125 005005
T_IU_OVERLOAD                      0          0          0 20081125 005005
T_RAUM                             0          0   13963245 20081125 005005
T_GB_SGSN_DATA                     0          0      33283 20081125 005005
T_IU_SGSN_DATA                     0          0          0 20081125 005005
T_SESSION_MANAGEMENT              82          0  386950042 20081125 005005
T_DATA                            82          0    1595707 20081125 005005
T_USER                            82          0     112562 20081125 005005
T_MOBILITY_MANAGEMENT             82          0  515890902 20081125 005005
T_DIPN                            82          0          0 20081125 005005
T_RAUM                         22409          0          0 20081125 103237
T_SESSION_MANAGEMENT          365547          0          0 20081125 103237Edited by: zs_hzh on Nov 24, 2008 10:35 PM

1. when does montioring take place , and by how?When you create a table, by default, it is set in MONITORING mode.
SQL> create table testtable as select * from all_objects where 1 = 2;
Table created.
SQL> select monitoring from user_tables where table_name='TESTTABLE';
MON
YES
2. is the number cumulative from monitoring turn on ? from instance restart ? or between two snaps ?http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2097.htm#i1591024
<quote>
ALL_TAB_MODIFICATIONS describes tables accessible to the current user that have been modified since the last time statistics were gathered on the tables.
<quote>
3. it goes on by every DML , but i have insertions against a table which says inserts is 0Is your table in MONITORING mode? If not, there will be no records in this view for that table.
4. some says to reflect the newest exec dbms_stats.flush_database_monitoring_info; which is even more confusing for me and makes no difference in my caseIt could be related to answer for #3.
Refer to this small demonstration.
SQL> execute dbms_stats.gather_table_stats(user,'TESTTABLE');
PL/SQL procedure successfully completed.
SQL> select * from all_tab_modifications where table_owner=USER and table_name='TESTTABLE';
no rows selected
SQL> insert into testtable select * from all_objects;
55958 rows created.
SQL> commit;
Commit complete.
SQL> select * from all_tab_modifications where table_owner=USER and table_name='TESTTABLE';
no rows selected
SQL> execute dbms_stats.flush_database_monitoring_info;
PL/SQL procedure successfully completed.
SQL> select table_name, inserts from all_tab_modifications where table_owner=USER and table_name='TESTTABLE';
TABLE_NAME                              INSERTS
TESTTABLE                                55,958
SQL> insert into testtable select * from all_objects;
55958 rows created.
SQL>  select table_name, inserts from all_tab_modifications where table_owner=USER and table_name='TESTTABLE';
TABLE_NAME                              INSERTS
TESTTABLE                                55,958
SQL> execute dbms_stats.flush_database_monitoring_info;
PL/SQL procedure successfully completed.
SQL>  select table_name, inserts from all_tab_modifications where table_owner=USER and table_name='TESTTABLE';
TABLE_NAME                              INSERTS
TESTTABLE                               111,916

Similar Messages

  • How do I count the unique value pairs in two columns of a table?

    I have a table (Table 2) that is populated with data from an imported .csv file. On table 1 I need to count the unique value pairs in two columns of Table 2.
    Here's what I have:
    Date                                        Person
    7/10/2011                         A
    7/12/2011                         W
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         X
    7/12/2011                         Z
    7/14/2011                         Z
    7/15/2011                 X
    7/16/2011                         Z
    I'm focusing on person "X" and can easily count how many days that person shows up but what I want is to see on how many unique days that person shows up.
    Here's the result I'm looking for (Person "X" shows up on 2 different days - 3 times on 7/12/2011 and once on 7/15/2011):
    X                    2
    I can't seem to find a function that allows me to do that. I also am not allowed to modify Table 2 so that leaves me to come up with a solution on Table 1.
    Any ideas would be greatly appreciated.

    Hi John,
    Not being allowed to modify Table 2 is a minor inconvenience. Just copy (using a formula) the necessary two columns onto Table 1.
    Yellow columns may be hidden. The procedure progresses from left to right. All formulas are entered into row 2 then filled down that column to the end of the table. The table must be as long as the list in column A of Table 2.
    A2: =Table 2::A
    Fill right to column B.
    Fill both columns down as far as needed.
    I've used actual Date and Time values in column A, formatted to show only the Date part, but the technique will work with text in these cells, provided all cells representing the same 'date' have exactly the same content.
    C2: =A&B
    This concatenates the contents of each row of columns A and B into a single text string.
    D2: =COUNTIF($C$2:C2,C)
    This counts the number of occurrences of the Date&Name string on the current row from the first regular cell in column C (C2) to the current cell.
    E2: =IF(COUNTIF($B$2:B2,B)=1,MAX($E$1:E1)+1,"")
    This constructs the index of first occurrences of each name, in the order they first occur. The index is used by LOOKUP in column F.
    F2: =IF(ROW()-1>MAX(E),"",LOOKUP(ROW()-1,$E,$B))
    This uses the index value created in E as a search-for value to extract a single copy of the names in column B. The result is a list of all distinct names in the list. Note that spelling differences will be counted as distinct names.The IF statement stops the listing when the last distinct name is extracted.
    G2: =IF(LEN(F)>0,COUNTIFS($B,"="&F,$D,"=1"),"")
    This counts the number of 'first occurrences of distinct Date & Name strings for each name on the list (ie. the number of distinct dates on which each name appears in the original list).
    All of the functions used are described, with at least one example for each, in the iWork formulas and Functions User Guide. You can download the guide, and the Numbers '09 User Guide, via the Help menu in numbers.
    Regards,
    Barry

  • How do you count the multiple columns of a field in a table

    How do you count the multiple columns of a field in a table

    Hi,
    4396bf34-e890-4202-a6b0-4e08c9ff0e89 wrote:
    How do you count the multiple columns of a field in a table
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "Field" isn't a standard database term.  Some people say "field" when they mean "column", but I don't think that's what you mean ("How do you count the multiple columns of a column ..").  Do you want to know how many times a column is used (as opposed to NULL), or the number of different values in a column?  You really need to show what you want.

  • How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?

    How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?
    Also how can it be a line graph without plotting a circle at each value?
    Thanks this is very frustrating

    Make a copy of the table and produce your Line chart or Bar chart from the copy. Sort the copy into the order you want to see in your chart.
    Alternately you could use a Scatter Chart...
    Jerry

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • How do I get the Numbers application iOS 7.0.4 unstuck updating on iPad 2?

    How do I get the Numbers application unstuck in updating on iPad 2?   After the last update of iOS 7 it started acting up. Then weeks ago (in November) I opened the application right after iOS 7.0.4 update and while accessing a file it got stuck, some files are white and I can access them. Other files are gray and I can not open them. The application goes white when it first opens up instead of just opening then there is a delay, then it eventually opens.  It is stuck updating.
    I have tried various things. 1) Rebooting, 2) hard reboot (holding down the off button and home key until the apple icon appears), 3) tried putting it in Airplane mode-reboot-then connect to computer and iTunes-then rebooted. 4) tried opening a file in another application- I get an error message that says : can't open spreadsheet- this spreadsheet is updating, wait for it to finish then try opening. 5) sending spreadsheet- I get an error message that says : this spreadsheet is updating, wait for it to finish then try sending.  None of these have worked.
    I am at my wits end I use these files for my business and I am self-employed, some files I can't access at all, this is very serious for me. If you know how to fix this please help me.  I transferred all of my NECESSARY and IMPORTANT client files to Numbers from Excel, I've been using Numbers successfully for about 1 year.

    Better to post your topic in the developer community >  Developer Forums: Apple Support Communities

  • I use a French bluetooth keyboard how do i lock the numbers for doing calculations? Does anybody know? i.e. the numbers are above the top row of keys and you have to use the shift key to access them.  You can't use the cap lock key to lock the numbers.

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

    How do I lock the numbers on a French keyboard if I'm using a small blue tooth keyboard with no number pad?

  • How does oracle suggest the archive log

    Hi All,
    My question is about user managed backup and recovery.
    For User managed hot database refreshes.
    We  create a new controlfile and do cancel based recovery.
    How does oracle suggest the next archive to apply when we do "recover database using backup controlfile until cancel;"
    I mean we created a new control file ..rt.
    where is the information about the archivelogs stored.
    Thanks,
    Silver

    In the controlfile.
    The "using backup controlfile" means using a backed up controlfile, and you want to fool Oracle into thinking a point in time recovery will happen so don't use what would be the controlfiles current scn time to automatically say the recovery is complete.  If you have created a new controlfile, all it can know about is where the logs should be and compare to what log sequences the datafile headers have.  So it uses the init.ora parameters and what the data file headers have in them to figure it out. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3151992035532#36651366990046
    If you backup controlfile to trace you can see log files that have the incarnation history.  See "Recovering Through a RESETLOGS with a Created Control File"  in Performing User-Managed Recovery: Advanced Scenarios

  • I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?

    I use 2 monitors how can I lock the dock to keep it from sliding over to next monitor?

    I found the answer in the "more like this" area.  Thanks for helping.

  • How do I move the numbers or bullets closer to the list?

    Oh Dreamweaver sages...How do I move the numbers or bullets closer to the list?  Please look at this  http://www.stii.us/whatisst.html  and tell me what you recommend.  Thank you!

    With CSS margins and padding.
    #mainContent li {
      margin-left:10em;
      padding-left:0;
    Also remove the <p> tags from all your <li> tags.
    <ol>
         <li>this is a list item</li>
         <li>this is a list item</li>
         <li>this is a list item</li>    
    </ol>
    Nancy O.

  • Count the numbers of results

    How do you count the number of returned rows in CF? Note not
    the number
    of the row, but the the order by number of each row returned.
    Thanks in advance.

    I dont think I quite understand your question, but...
    #queryname.RecordCount# gives the total number of rows
    returned.
    #queryname.CurrentRow# gives the row number you are working
    on.

  • How do i unistall the numbers prgram?

    how do i unistall the numbers porgram?

    The way you uninstall any other application in Mavericks that was downloaded from the Mac App Store.  See this support document from Apple.
    SG

  • The table name or tcode to count the number of Dimensions and Key Figures

    Hi all,
    Do you have an idea about the table name or tcode to count the number of Dimensions and Key Figures of an Infocube WITHOUT installing the cube from Business Content?
    Thanks in adv.
    Ajay

    Hi,
    You can't do that because there's no active table in the system for the Business Content since it hasn't been installed yet...
    One thing you could do is go to the Business Content Tab, select "Infoproviders by InfoArea" on the left side, look for the Cube or DSO you want to check, right click on it and select "Display Description".
    On the window that opens you'll have a list of all InfoObjects and Key Figures. You also have the option to Display it as Start Schema, where you can see the Dimensions, etc.
    Hope this helps.
    Luis

  • How can i count the word in a cell.

    Dear Experts,
    i want to count the word in cell how can i do this ?
    Isthere any function ?
    plz give logic or command.

    You can ty :
    SQL> var text varchar2(50)
    SQL> exec :text := 'How do I count the number of words in my cell?'
    PL/SQL procedure successfully completed.
    SQL> select text,
      2         sum(case when substr(text,rownum,1)=' '
      3                       and substr(text,rownum-1,1)!=' '
      4                  then 1
      5                  else 0 end) nb_word
      6  from (select rownum,:text||' ' text,length(:text) ln from dual)
      7  connect by level <= ln+1
      8  group by text
      9  /
    TEXT
       NB_WORD
    How do I count the number of words in my cell?
            11
    SQL>  exec :text := 'How     do I count the number of words in my   cell?    '
    BEGIN :text := 'How     do I count the number of words in my   cell?    '; END;
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 1
    SQL> var text varchar2(1000)
    SQL> exec :text := 'How     do I count the number of words in my   cell?    '
    PL/SQL procedure successfully completed.
    SQL> select text,
      2         sum(case when substr(text,rownum,1)=' '
      3                       and substr(text,rownum-1,1)!=' '
      4                  then 1
      5                  else 0 end) nb_word
      6  from (select rownum,:text||' ' text,length(:text) ln from dual)
      7  connect by level <= ln+1
      8  group by text
      9  /
    TEXT
       NB_WORD
    How     do I count the number of words in my   cell?
            11
    SQL> select * from v$version where rownum=1;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
    SQL> Nicolas.
    Well, we can discuss about what limit a word : here space, but there is point, double-point, and so on... And about what is a word : do the punctuation is a word ?
    For example :
    "It's a word !"=>how many words are in this sentence ?
    http://en.wikipedia.org/wiki/Word
    Message was edited by:
    N. Gasparotto

  • MacMini connected to Samsung 193P monitor - how do I brighten the display?

    MacMini connected to Samsung 193P monitor - how do I brighten the display?

    Strange place for it, but try System Preferenes>Universal Access>Seeing>Display, & the Enhance Contrast slider.

Maybe you are looking for

  • Itunes appears in windows, not in itunes.  communication error.

    the exact words that have come up every single time i uninstall/re-install my itunes/ipod softwear are "the softwear required for communicating with the ipod is not installed correctly. please re-install itunes to install the ipods softwear." my cpu

  • No Service on Lumia 920

    Hi i'm new here. I swapped my new Motorla for a friends Lumia 920 and managed to get it unlocked successfully. However when I put in my O2 simcard it shows O2 in the phone tile briefly but then shows "no Service". It shows 5 bars on the signal streng

  • Itunes - we had difficulty download episodes from your feed

    I know I'm not the only person who has encountered this but I tried to create a podcast from our new website http://www.churchatfour.com/talks.html I used the RSS feed http://www.churchatfour.com/2/feed and submitted it to feedburner but got the mess

  • I deleted something on an app and I would like to restore it back to normal

    I clicked on the wrong thing and deleted part of an app I use. I need to know how to make that app go back to normal so I can use it on here

  • Loading an image into CS3 from Lightroom

    Sorry to repeat this request but: I am running Lightroom on a laptop with Windows Vista. If I make changes to an image in the develop module of Lightroom, and then right click on the image, go to Edit in CS3, and Edit a Copy with Lightroom adjustment