What causes BUFFER GETS and PHYSICAL READS in INSERT operation to be high?

Hi All,
Am performing a huge number of INSERTs to a newly installed Oracle XE 10.2.0.1.0 on Windows. There is no SELECT statement running, but just INSERTs one after the other of 550,000 in count. When I monitor the SESSION I/O from Home > Administration > Database Monitor > Sessions, I see the following stats:
BUFFER GETS = 1,550,560
CONSISTENT GETS = 512,036
PHYSICAL READS = 3,834
BLOCK CHANGES = 1,034,232
The presence of 2 stats confuses. Though the operation is just INSERT in database for this session, why should there be BUFFER GETS of this magnitude and why should there by PHYSICAL READS. Aren't these parameters for read operations? The BLOCK CHANGES value is clear as there are huge writes and the writes change these many blocks. Can any kind soul explain me what causes there parameters to show high value?
The total columns in the display table are as follows (from the link mentioned above)
1. Status
2. SID
3. Database Users
4. Command
5. Time
6. Block Gets
7. Consistent Gets
8. Physical Reads
9. Block Changes
10. Consistent Changes
What does CONSISTENT GETS and CONSISTENT CHANGES mean in a typical INSERT operation? And does someone know which all tables are involved in getting these values?
Thank,
...

Flake wrote:
Hans, gracias.
The table just have 2 columns, both of which are varchar2 (500). No constraints, no indexes, neither foreign key references are in place. The total size of RAM in system is 1GB, and yes, there are other GUI's going on like Firefox browser, notepad and command terminals.
But, what does these other applications have to do with Oracle BUFFER GETS, PHYSICAL READS etc.? Awaiting your reply.Total RAM is 1GB. If you let XE decide how much RAM is to be allocated to buffers, on startup that needs to be shared with any/all other applications. Let's say that leaves us with, say 400M for the SGA + PGA.
PGA is used for internal stuff, such as sorting, which is also used in determing the layout of secondary facets such as indexes and uniqueness. Total PGA usage varies in size based on the number of connections and required operations.
And then there's the SGA. That needs to cover the space requirement for the data dictionary, any/all stored procedures and SQL statements being run, user security and so on. As well as the buffer blocks which represent the tablespace of the database. Since it is rare that the entire tablespace will fit into memory, stuff needs to be swapped in and out.
So - put too much space pressure on the poor operating system before starting the database, and the SGA may be squeezed. Put that space pressure on the system and you may enbd up with swapping or paging.
This is one of the reasons Oracle professionals will argue for dedicated machines to handle Oracle software.

Similar Messages

  • Buffer gets and logical reads

    Hello !
    Does the counter of event buffer gets include the logical reads ?
    Does the mertic buffer gets include the event of reading from undo buffer ?
    Thanks and regards,
    Pavel
    Edited by: Pavel on Jun 27, 2012 3:08 AM
    Edited by: Pavel on Jun 27, 2012 3:35 AM
    Edited by: Pavel on Jun 27, 2012 4:13 AM

    Hi,
    buffer gets = number of times a block was requested from buffer cache. A buffer get always request in a logical read. Depending on whether or not a copy of the block is available in the buffer cache, a logical read may or may not involve a physical read. So "buffer gets" and "logical reads" are basically synonyms and are often used interchangeably.
    Oracle doesn't have a special "undo buffer". Undo blocks are stored in rollback segments in UNDO tablespace, and are managed in the same way data blocks are (they're even protected by redo). If a consistent get requires reading from UNDO tablespace, then statistics counters will show that, i.e. there will be one more consistent get in your autotrace.
    For more information and some examples, see a thread at askTom:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:549546900346542976
    Best regards,
    Nikolay

  • Most buffer gets and disk reads on table "CRMD_BRELVONAI"

    hello friends,
    we have to much buffer gets and disk reads on this table. se11 says:
    2 indexes on this table:
    first:
    OBJKEY_A -
    Index CRMD_BRELVONAI~1 exist on DB ORACLE
    second:
    OBJKEY_B-
    Index not exist on DB ORACLE
    Has anbody created the second index and good experience? OSS has no information.
    thanks,
    christoph

    Ho Christioph,
    If you double click on secondary index OBJECT_B you will get to index screen. Note that secondary index OBJECT_B as been set to <b>No database index</b>.
    For your information, here is a copy of the related documentation.
    Create the index in the database (selection)
    Whether an index improves or worsens performance often depends on the database system. You can therefore set whether an index defined in the ABAP Dictionary should be created in the database.
    This makes it easier to install a platform-specific customer system.
    You can set this option as follows:
    <b>Index in all database systems:</b> The index is always created in the database.
    <b>In selected database systems:</b> The index is created depending on the database system used. In this option, you must specify the databases in which the indexes are to be created. You can do this either on an inclusive (list of systems on which it should be created) or an exclusinve (list of systems on which it should not be created) basis. In either case, you can list up to four different database systems.
    <b>No database index:</b> The index is not created in the database. If you set this option for an index that already exists in the database, it is deleted when you activate the table in the ABAP Dictionary.
    Note: Unique indexes have an extra function, and must therefore always be created in the database. The database system prevents entries or index fields being duplicated. Since programs may rely on this database function, you cannot delete unique indexes from the database.
    Hopping this answer your question.
    Sincerely,
    Alain Gauthier

  • Consistent gets and physical reads

    Hi all,
    I am tuning a DM SQL query, by comparing execution plans with STAR TRANSFORMATION enabled or disabled. I got the following results:
    STAR TRANSFORMATION ON
    74889 consistent gets
    254365 physical reads
    STAR TRANSFORMATION OFF
    1945892 consistent gets
    168028 physical reads
    I thought a physical read would be counted as a logical read as well, because the data block would be read from disk (1 physical IO), placed in the buffer cache and then read from there (1 more logical IO or consistent get).
    So, one physical IO does not cause a logical IO?
    Thanks!
    Edited by: user10634835 on 12-Jul-2011 08:40

    But shouldn't consistent gets be >= physical reads (Since, as per my understanding, 1 PIO causes at least 1 LIO)? In this case it is not.
    74889 consistent gets
    254365 physical readsJust clarifying for my knowledge.
    regards

  • Parrallel query and physical reads

    Hi I have ran a query in uing OPQ degree 12 several time, but in subsiquent runs, im still seeing physical reads, should the data not be cached after the first run..
    ie, run 4 is shown below:
    Statistics
             33  recursive calls                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
              0  db block gets                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
           4866  consistent gets                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
           3146  physical reads                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
              0  redo size                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
        7373850  bytes sent via SQL*Net to client                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
         293742  bytes received via SQL*Net from client                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
          26668  SQL*Net roundtrips to/from client                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
              2  sorts (memory)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
              0  sorts (disk)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
         400002  rows processed  

    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1027523970333
    parallel query may use direct io, it may not use direct io.
    parallel query may use the buffer cache, it may bypass it.
    And in the next followup.
    Tom, in what conditions parallel query would entirely bypass buffer cache? Thanks.
    Followup June 15, 2005 - 10am Central time zone:
    when it does direct IO to read the blocks.
    "

  • Difference between "Physical Read Total IO Requests Per Sec" and "Physical Read IO Requests Per Sec"

    What is the difference between "Physical Read Total IO Requests Per Sec" and "Physical Read IO Requests Per Sec" metrics in dba_hist_sysmetric_summary?

    From docs (Reference, Statistics Descriptions)   :
    physical read IO requests : Number of read requests for application activity (mainly buffer cache and direct load operation) which read one or more database blocks per request. This is a subset of "physical read total IO requests" statistic.
    physical read total IO requests : Number of read requests which read one or more database blocks for all instance activity including application, backup and recovery, and other utilities.

  • My computer, running on Lion, randomly flashes with crazy lights and colors. Doesn't happen often, but when it does it's totally random. What causes this problem and how can I solve it?

    My MacBook Pro, running on Lion, randomly flashes with crazy lights and colors. Doesn't happen often, but when it does it's totally random. It looks like the Northern LIghts!!!
    What causes this problem and how can I solve it?

    Really? Oh I get it. You're the kind of person who goes on tech message boards to make jokes - or friends.
    Well, I'm trying to solve this problem - which is a rather annoying way to spend a Saturday.
    SO either help or don't reply.

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • High user input output (I/O) and physical reads

    Hi guys
    Recently we have noticed that our database performance degraded significantly. as we looked around in grid control we noticed that the user IO and Physical reads are really high which cause the database to be laggy.
    at first we thought it was memory problem, so we added 2gb to sga. we have set sga to be automatic and it's been like this for the past 2 years.
    how do i trouble shoot this problem. i haven't found any troubleshooting guide for it yet.
    please instruct me on how to solve it
    database: 10.2.0.4 sparc
    regards
    Sina

    Top 5 Timed events
    db file sequential read          23,582          679          29          46.3     User I/O
    CPU time                                        626                    42.7     
    db file scattered read     3,089     70     23     4.8     User I/O
    db file parallel write     3,478     28     8     1.9     System I/O
    log file parallel write     4,201     24     6     1.7     System I/O
    SGA Memory Summary
    SGA regions     Begin Size (Bytes)     End Size (Bytes) (if different)
    Database Buffers     2,768,240,640     2,835,349,504
    Fixed Size     2,050,240     
    Redo Buffers     14,721,024     
    Variable Size     3,657,439,040     3,590,330,176
    Process Memory Summary
         Category     Alloc (MB)     Used (MB)     Avg Alloc (MB)     Std Dev Alloc (MB)     Max Alloc (MB)     Hist Max Alloc (MB)     Num Proc     Num Alloc
    B     Other     569.22     0     2.62     3.14     22     24     217     217
         Freeable     101.63     0.00     0.77     0.45     3          132     132
         SQL     91.51     45.35     0.44     0.76     4     78     209     192
         PL/SQL     12.50     5.57     0.06     0.07     0     4     217     217
         JAVA     5.40     5.38     1.08     0.09     1     2     5     5
    E     Other     603.20          3.03     3.62     22     24     199     199
         SQL     115.21     64.78     0.60     1.67     21     78     191     182
         Freeable     112.31     0.00     0.83     0.43     3          135     135
         PL/SQL     13.89     5.94     0.07     0.12     1     4     199     199
         JAVA     8.93     8.89     1.12     0.23     2     2     
    for some reason i can't paste a table into this post but if you want i can email you above tables

  • What are the advantages and disadvantages of the Joint operation

    Hi, I am currently trying what out the advantages and disadvantages of the Joint Operation ... any help would be appreciated

    The advantage of join operations are that joins allow
    retrieval or data from more than one table at a
    time.
    A disadvantage of join operations is that the SQL
    statement may be more complicated to write and read
    than multiple simple selects.
    Another advantage is that fetching data from multiple
    tables in a single SQL statement is that using a join
    is likely to be more efficient than using several
    simple SQL statements with procedural logic
    performing the work of the join.
    There are basic three types of join operations in
    Oracle: nested loop, hash join, and sort/merge.
    You can find descriptions of these operations in the
    Oracle Performance and Tuning manual.
    HTH -- Mark D Powell --
    Thanks for the information Mark ... Much Appreciated

  • When attempting to install Acrobat IX i get the following error "Error 1335" "pcw-cab-acr 11007" saying the file is corrupt.  What causes this error and how do I fix it?

    Has anyone else found this error?

    I have found a temporary solution, allowing the previous version of iTunes (v. 11.1.3 (x64) in my case) to be re-installed.  It will allow you to re-establish use of iTunes until the Apple software engineers fix the most recent disasterous upgrade (v. 11.1.4).  Please see and follow the procedure in the following article:http://smallbusiness.chron.com/reverting-previous-version-itunes-32590.html   The previous version works beautifully.

  • Quicktime causes buffer overrun and does not work

    I just tried to update to Quicktime 7 (7.0.4). It installs fine.
    When I visit the movie trailers page on Apple.com
    I try to play a clip and I get an error message that says buffer overun (trying to play keynote address in wuicktime application)
    or an error message that says plugin performed an illegal operation and then it crashes my firefox browser.
    It seems there are a lot of bugs with quicktime 7, I have tried standalone downloads of 7.0.3 and 7.0.2, they don't work either.
    I have tried installing in safe mode and the installler will not work. what next?
    do I actually have to reinstall windows to get it to work or do i have to go through the hassle of manually attempting to clear all of the clutter off of the hard drive and tinker with registry settings and try again?
    Is there an explanation from APPLE to rectify these problems or will I just have to give up using your product?
    Is there going to be a fix or is apple not supporting quicktime for windows anymore?
    Too bad version 6 was messed with. It worked perfectly.

    I'm having the exact same problem, since the upgrade this week.
    iTunes does an immediate shutdown when it’s clicked. No errors are reported.
    I automatically thought of Quicktime and when I clicked on it, I get a immediate shutdown as-well, but in Quicktime’s case I get an error window that states “Buffer Overflow error”.
    I’ve tried to uninstall Quicktime from the Add/Remove programs in the Control panel. It flashes, does not report any errors and appears to be removing the program (Quicktime). But, when all is finished Quicktime remains in the Add/Remove programs list and it has not been removed.
    Just to see what would happen, I installed Quicktime all by itself, and then tried to removed it VIA Control Panel. Same experiences (Quicktime remains in the Add/Remove programs list and it has not been removed).
    I’ve removed iTunes a couple of times and tried to re-install (using defaults). Same problem exists (i.e. ‘Buffer Overflow error’).
    I reinstall DirectX. Same problem exists (i.e. ‘Buffer Overflow error’).
    Can Quicktime be removed manually? (i.e. delete files\directories, and Registry edits)?
    Or is this just a nightmare to perform?
    Does anyone have any other thoughts I can try?
    AMD 3300+   Windows XP   512mb memory, CD writer, SATA and IDE HD's, On board Mobo video (S3).

  • TS3899 What causes "Cannot  get mail" The connection to the server failed.

    Although my email messages are still being downloaded to my iPhone 6, I recently started to systematically get the following error message: "Cannot Get Mail. The connection to the server failed."
    What could be the cause of this error, which only appeared after updating the iOS to 8.3.
    Thanks.

    Usually there is not a password, SSL is set wrong, the server name is wrong, or the Port is wrong.
    Go toSettings > Mail, Contacts,Calendars, then the Mail Account and see if the Incoming Server is some form of STP server specified, then that a password is set, and the if that is all correct go to Advanced and see how SSL is set.

  • I had a problem for over a year and now it's fixed. Does anyone know what caused the problem and what fixed it?

    Here's the original problem
    http://support.mozilla.org/en-US/questions/890221?esab=a&s=&r=2&as=s
    It seems to have finally been fixed in firefox 22 (or 21). I'd love to know what the original cause of the problem was and whether it was fixed by firefox or OS X

    I dont think any bugs were filed like this, likely something Apple fixed.

  • What causes unexpected shutdown and restarts

    ok last night my IPhone was really hot so I looked at it and it said 20% battery and it gave me the full battery sing. So I unplugged it than I shut it down for like 30 min and turn back on than I start charging it and talking on Skype with it. So before I went to bed. I shut it down and then when I woke up this morning I went to go plug it in. Than I got the Apple Logo when you first turn it on and then like 15 to 20 sec latter it turn off for no reason and it repeats that over again. I can’t get pass the Apple logo without restarting.

    yeah it worked some what. it went in to and now i cant get out i need to get in to. you would not know how to get out of RECOVERY mod and in to  DFU mode?

Maybe you are looking for

  • Why is my Firefox 4.0.1 crashing and deleting my browsing history and bookmarks?

    This is the third time in the past month and a half that my Firefox 4.0.1 has crashed and deleted both my browsing history and my recent bookmarks. It seems to delete up to about a week's worth of information. In the past, my Firefox browser would cr

  • Problem connecting wirelessly to printer

    Hi, I used to be able to connect wirelessly to my HP Envy 120, and then for some reason it stopped working from my Macbook - I can still print from my iPad, and my daughter can print from her PC.  Any ideas?

  • IPhone 4S and NO volume bar!!

    Hi! I have my iPhone 4S and today the volume bar is no longer viewd. I hear sound from ringtone, but no audio from Music or Youtube. How can i fix it?

  • Mac powerpoint 2011. Can't  I edit sound effects

    Mac powerpoint 2011. Can't  I edit sound effects?  The slides won't move as I have ordered them because the sound effect lasts longer.  Previously (in Office) I have been able to trim the size.  This throws off the entire presentation.  Any ideas?

  • Changing XML document nesting

    Hello, I am trying to change the xml nesting (parent - child) relationships for a returned xml query. I am getting java.lang.Nullpointerexcetion on the following line of code: tempNode := xmldom.appendChild(newRootNode,oldNode); I have initialized in