READ the events when you insert data into a CLOB to waiting

Hello people,

I too read waiting for IO (db file sequential read) on a CLOB, when data is inserted, and I don't understand why.

Statement:
INSERT into TABLE (< all columns list >) values < list of all values >;

Duration:
between 250ms and 500ms, so much is too long by far

Location:
* Database 11 GR 2 (11.2.0.3.0) Standard Edition on Linux (OEL 5) x86_64
* Usually, I have about 200 of these inserts in a single transaction. Thus, generally such a transaction is open for at least 50 seconds.
* This is an OLTP environment, so I can't drop indexes or constraints 'before' loading, in fact I'm loading and reading the table all the time.
* Insertion happens simultaneously by multiple Java threads, all in France via JDBC thin driver.
* The table is not partitioned (Standard Edition).
* The table contains < 7 million lines.
* I can't ADD, because the table is served in a logical way, and I do not have maintenance windows to rearrange segments.
* There are a lot of NON NULL and check constraints simple insertion-value based on the table, but only SINGLE (as part of the numeric primary key) constraint.
A column is a CLOB, but there is no constraint on the CLOB column.

What I have done:
Raised the execution plan. Here it is:
------------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Begins | Cost | A - lines. A - time | Pads | Bed | Written |
------------------------------------------------------------------------------------------------------------
| 0 | INSERT STATEMENT. 1. 1. 0 | 00:00:02.75 | 5064 | 840. 2.
| 1. LOAD TABLE CONVENTIONAL | 1 | | 0 | 00:00:02.75 | 5064 | 840. 2.
------------------------------------------------------------------------------------------------------------

I tried to find out where all this runtime will, so I enabled level 12 10046 for this SQL tracing and tkprof analysis shows:

Elapsed time are waiting on the following events:
Event waited on times max wait for the Total WHEREAS
----------------------------------------   Waited  ----------  ------------
DB file sequential read 61 0.01 0.29
direct path write 30 0.01 0.00
direct path read 15 0.00 0.00

= > So now I know where my runtime is spent on: reading!

The raw trace file says:

WAITING #139690535902720: nam = 'db file sequential read' ela = 8514 file No. = 5 block #= blocks 16950925 = 1 obj #= tim 84425 = 1354644922207564
WAITING #139690535902720: nam = "Write direct path" ela = 376 of file = 5 first dba = 16956449 block cnt = 1 obj #=-1 tim = 1354644922208331
WAITING #139690535902720: nam = 'db file sequential read' ela = 321 file #= 5 block #= blocks 16956449 = 1 obj #= tim 84425 = 1354644922208727
WAITING #139690535902720: nam = "direct path read" ela = 216 number of file = 5 first dba = 16956449 block cnt = 1 obj #= tim 84425 = 1354644922208998
WAITING #139690535902720: nam = "Write direct path" ela = 375 folder = 5 first dba = 16956449 block cnt = 1 obj #= tim 84425 = 1354644922209458
WAITING #139690535902720: nam = 'db file sequential read' ela = 5471 file #= 5 block #= blocks 8907590 = 1 obj #= tim 84422 = 1354644922215025
EXEC #139690535902720:c = 2999, e = 18440, p = 4, cr = 14, cu is 38, SIG = 0, r = 1, dep = 0, og = 1, plh = 0, tim = 1354644922215246
"STAT #139690535902720 id = 1 cnt = 0 pid = 0 pos = 1 obj = 0 op ='LOAD TABLE CONVENTIONAL (cr = pr 14 = 4 pw = 2 time = 16415 US)"
OUTCOME #139690535902720:c = 0, e = 17, dep = 0, type = 1, tim = 1354644922216200

obj #= 84425 is my CLOB


Now my question:
Why my reading INSERT a CLOB so heavily when inserts a row of data in my table?
I wasn't able to find out, please share your thoughts.
If you need more/other information, let me know.

I thank very you much in advance!

Best regards
Martin Klier
Principal, s/n

Please check MOS note:
Insert a LOB has bad performance; ARM reads in the Top 5 of the wait events [ID 1291494.1]

Tags: Database

Similar Questions

  • catch the event when you click on the cross of closing

    Hello

    How you catch the event when you click on the cross of closing?

    Thanks in advance,

    Fred

    Discover the reminders of events management of window on page 122 of the Guide to Javascript Adobe pdf tools.

    You want something like:

    myWindow.onClose = function() {}

    your code goes here

    };

    or

    myWindow.onClose = myCloseFunction;

    function myCloseFunction() {}

    your code goes here

    }

  • What is the DateTime format, when you insert data in the DateTime column in the DB?

    Hi all

    I can't find an example to insert data into db that contains a DateTime column. I tried different date format, but none of them works. Someone has an idea how to do that? Is there a sample project?

    Thank you

    Dong

    Thanks for your reply, I'll check and give it a try.

    Dong

  • -Pop-up menu (allows you to choose what program you use to open the file) when you insert sim or cd does not appear

    When a disk or sim card or data storage device is connected to the computer there should be a menu pop up that allows you to choose which program to use to open the file. This is no longer the case. Any ideas how to restore it?

    Hi John,.

    1 are you referring to AutoPlay settings in Windows XP?

    2. did you of recent changes on the system?

    If you are referring to AutoPlay settings in Windows XP, you can see the following article in Windows XP to enable the feature.

    The Autorun feature or the AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows

    You can also consult the following article:

    How to change or choose the program that starts when you double-click a file in Windows XP

  • How to get the best image quality when you insert PDF into Word?

    I am able to insert a PDF file as an object in Word, but the image quality is a bit fuzzy.  Is this what I can adjust in order to improve the clarity of the image in Word?

    You can try to extract the images with the help of extract all Images or select only the parameters of the screen recording you get when you save in a DOC, but I think that the general result is that the image recorded with the same resolution as shown in the PDF document. It may be that you simply adjust your screen in WORD. You can look at the picture in WORD and see if it is used at 100% or some other resolution. Bitmaps are not very forgiving if the resolution is changed to the document and not as something other than the small number of fractions of resolution appears change.

  • Satellite A30 crashes when starting the Bios when you insert a USB

    My A30-104 laptop hangs when starting the bios, whenever I insert a USB key into the USB port.
    The only message that appears at the bottom of the screen and the message is something like this:
    Press F12 for the boot configuration or F12 for...

    Pressing F2 or F12 does not change the start state.
    Note that Microsoft XP Home SP2 is installed on the machine.
    No idea why startup is suspended?

    Thank you
    Sam

    Maybe the laptop tries to start the USB, but it is not possible to
    It's just a suggestion, but I remember that something similar happened to a friend of mine.
    The printer is connected to the USB and the laptop could not start in the OS.

    Well, maybe we can solve this problem on the laptop you by changing the boot order in the BIOS.
    Please enter the BIOS and change the order on the disk HARD - CD - etc.
    Make sure that the HARD drive was chosen first

  • How to get the event when you click Add another button in a table.

    Hello
    How to recognize the event in processFormRequest click on the button Add another line of the footer of a table?

    Suppose if the ID is anotherRow (I mean ID of the button to add another line of the footer)

    If I give if (pageContext.getParameter ("anotherRow")! = null)... its not recognizing the event that is returning null only...

    I want to perform certain actions when the user clicks Add another line of footer. Please let me know the details of how identify when add another line is clicked...

    Thank you
    Srikanth

    Hello

    If you have only one table with add_row_button, and then copy the following code works perfectly

    If (tableBean.getName () .equals (pageContext.getParameter (SOURCE_PARAM)))
    (& ADD_ROWS_EVENT.equals (pageContext.getParameter (EVENT_PARAM)))
    {
    ...
    }

    tableBean is the Handle for your advanced table, hope, it will help you.

    Kind regards
    Out Sharma

  • iPhone cuts read the mail when you open the mail application and pushing new messages

    Everytime I open the mail application on my iPhone 6 (9.2.1) all my mail previously reading disappears as soon as it pushes new messages.

    I found no adjustment that deals already read the mail on my iphone.

    Any ideas? And no it's not because I'm opening mail on the server's desktop in outlook that I rarely use more except as archive. I usually open mail on my iPhone first.

    Please confirm that you are in the mailbox of all mailboxes and not the mailbox unread. To do this, up on the back of boxes button at the letters on the top.

  • Lost hyperlinks when you insert pages into a large document

    Hello

    When inserting pages in a large pdf document, hyperlinks that work differently in the source document, get lost in the target document. In addition, we get an error several messages, including "Invalid parameter" and "Dict object expected", which are rather useless.dict-object.jpg

    Is there a work around for the problem of hyperlink? We tried several methods to combine the files into multiple versions of Adobe Acrobat (9-DC), on computers running Windows 7.

    Thank you!

    There is something wrong with the documents. Re-save documents with file > Sophie as...

  • Generate the command Id and insert data into two different tables: oracle apex 5.0

    I have three tables. name of the tables: PRODUCT, ORDER_HEADER, ORDER_DETAIL. I took REPORT inter ASSETS in which the VALUES from TABLE product. I need to use the trigger here, there is a TEXT ARTICLE called ORDER ID: it will generate through trigger. so whenever new order placed order id must be unique. There is a button when this button is clicked, the VALUES of REPORT must be inserted in to ORDER_HEADER , ORDER_DETAIL (in fact, I am in confusion is it even possible).

    I tried to create the trigger: not work if


    CREATE OR REPLACE TRIGGER "EMP_TRG1".

    Before Insert on order_header

    for each line

    Start

    If: new. Order_ID is null

    then

    Select lpad (demo_seq.nextval, 8, '0'): new. Order_ID order_header;

    end if;

    end;

    SQL:

    Select

    apex_item. Text(1,p.PRODUCT_ID) PID.

    PN.product_name,

    apex_item. Text(2,p.PRODUCT_QTY) qt.

    apex_item. Text(3,p.unit_price) upward,

    apex_item. Text(4,p.TOTAL_AMOUNT) am

    OMS_SHIP_CART_DETAIL p, pn OMS_PRODUCT

    where p.product_id = pn.product_id

    DA:

    var arr_f01 = [];

    var arr_f02 = [];

    var arr_f03 = [];

    var arr_f04 = [];

    var arr_f05 = [];

    product_id var;

    unit_price var;

    Var Qty;

    var total_1;

    () $("input[name='f01']").each

    function() {}

    product_id = $(this).closest('tr') .children ('td [headers = 'PID']') .text ();

    unit_price = $(this).closest('tr') .children ('td [headers = "Uprice"]') .text ();

    Qty = $(this).closest('tr') .children ('td [headers = "Qty"]') .text ();

    total_1 = $(this). Closest ('tr'). Children ('td [headers = "total"]'). Text();

    arr_f01.push ($(this).) Val());

    arr_f02.push (product_id);

    arr_f03.push (total_1);

    arr_f04.push (unit_price);

    arr_f05.push (Qty);

    }  );

    (apex). Server.Process

    "Insert a command."

    , {f01: arr_f01, f02: arr_f02, f03: arr_f03, f04: arr_f04, f05: arr_f05}

    }

    , {dataType: "text", success: function (pData) {alert ('added product') ;}}

    );

    Ajax callback:

    declare

    l_count number;

    Start

    -insert into OMS_ORDER_HEADER (USER_ID, TOTAL_AMOUNT, batch, ORDER_DATE) values(:P1_USER_ID,:P42_TOTAL,'PENDING',SYSDATE);

    I'm looping 1.apex_application.g_f01.count

    insert into OMS_ORDER_DETAIL (PRODUCT_ID, UNIT_QTY, UNIT_PRICE, TOTAL_AMOUNT)

    values (APEX_APPLICATION. G_F01 (i), APEX_APPLICATION. G_F03 (i), APEX_APPLICATION. G_F04 (i), APEX_APPLICATION. G_F05 (i));

    commit;

    end loop;

    end;

    Hi Dominique,.

    I create a process page away present in your application

    declare
      l_order_id varchar2(8);
    begin
      insert into order_header(ORDER_ID
                            , STATUS
                            , ORDER_DATE)
                      values(lpad(demo_seq.nextval,8,'0')
                            , 'Pending'
                            , sysdate)
      returning ORDER_ID into l_order_id; 
    
      for rec in(select ID
                      , QTY
                      , PRICE
                  from product)
      loop 
    
        Insert Into Order_Detail ( ORDER_ID
                                  , PRODUCT_ID
                                  , QTY
                                  , UNIT_PRICE)
                            Values(l_order_id
                                  , rec.id
                                  , rec.qty
                                  , rec.price); 
    
        commit;
      end loop;
    end;
    

    Please check and let me know.

    Kind regards

    Jitendra

  • What trigger to use to insert data into the table db forms

    Hello

    My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
    I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
    Is - shutter release key of the form-level validation?

    Please notify.

    Thank you
    Didi.

    You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.

    Hi didi.
    And this is my last post I'll sleep. ;)
    Take form level trigger named preform
    and write on it

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • Insert data into another database with a script

    Hello.

    What is the best way to insert data into one database with a script

    INSERT INTO BF_PRUEBASMTP.bf_mtp_agr_inscription (ain_agreementid, ain_customerid, ain_paymethodsid, ain_servicemoduleid, referencia)

    SELECT AAG. AAG_AGREEMENTID, ACU. ACU_CUSTOMERID, 2, 2, ins. NUMERO_REFERENCIA

    OF BF_PRUEBASMTP.bf_mtp_agr_biller ABI

    JOIN IN-HOUSE

    BF_PRUEBASMTP. BF_MTP_AGR_AGREEMENT AAG ON ABI. ABI_BILLERID = AAG. AAG_BILLERID

    INNER JOIN 'CLIENTEUNICO. ALMUERZO" ins

    ON THE AAG. AAG_AGREEMENTID = ins. CONVENIOID

    INNER JOIN BF_PRUEBASMTP.bf_mtp_agr_customer ACU

    ON ACU.acu_typedocumentid = ins. TIPO_DOCUMENTO

    AND ACU.acu_numberid = ins. NUMERO_DOCUMENTO;

    CLIENTEUNICO. INSCRIPCIONES = SELECT * DE INSCRIPCIONES - to a DIFFERENT DATABASE


    Thank you very much.

    2931095 wrote:

    If I don't have permissions to create a database link. Is there another way to do this?

    Thank you.

    link to database IS the method by which an Oracle database accesses to a different database.

    If you are the ADMINISTRATOR, you should have permission.

    If you are not the ADMINISTRATOR, you should not have permission and need to talk to the ADMINISTRATOR that is allowed.

  • What happens when you insert/modify/delete a row in a table - concepts

    I am trying to understand the below concepts regarding the internal concepts (for example, undo and redo)

    (1) what is happening in the database when you insert a row in a table?

    (2) what is happening in the database when you update a row in a table?

    (3) what is happening in the database when you remove one line in the table?

    I have read the oracle documentation and mistook the redo and undo behavior. It would be great if someone explains the concept in a simple way.  I'm a novice programmer to understand database concepts. Any help would be much appreciated.

    INSERTIONS and deletions are handled the same way.  The cancellation of an INSERT is a DELETE.   The cancellation of a REMOVAL is an INSERT.

    Therefore, the generation 'Cancel' for INSERTION is less than that of a DELETION (because the cancellation of a DELETION is to reinsert the line - the value of each column in the row must be captured in the undo).

    If restore you an INSERT, then Oracle executes effectively a DELETE tablename WHERE rowid =... rowid_that_was_inserted.  A cancellation for an INSERTION is 'rapid '.

    If restore you a DELETION, then Oracle executes effectively an INSERT tablename values (col1, col2, coln).  The cancellation of a DELETION takes more time because Oracle would have to re-enter the values.

    Remember that Oracle also captures the redo to undo it (and do it again for the price drop if you do a restore).

    Hemant K Chitae

  • AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Original title: computer disc drive

    Download or CD extract of music reading, record music, download CD etc... Before my hard drive had to be replaced, when a disc is inserted into my computer, a window appears, asking what you want to do... Burn music, Rip, copy in folder etc... now when I insert a disk, the window no longer appears, which gives you options and you get to this site... How can I get that back?

    Hey Big-Mack,

    Try the steps of troubleshooting mentioned in the following article and check the result.
    See the enforcement function automatic or AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    If the problem persists, run the Autoplay Repair Wizard and check the result.
    See Autoplay Repair Wizard

    Play functionality; New in Windows Media Player 12 makes it easy to listen to the music, video and photos from your computer to other computers, TVs or stereo on your home network.
    For more information, see play in

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Reading file from the ftp server and importing data into the table

    Hi experts,

    Well, basically, I text with different layout files have been uploaded to an ftp server. Now, I must write a procedure to recover these files, read and insert data into a table... what to do?

    your help would be greatly helpful.

    Thank you

    user9004152 wrote:
    http://it.Toolbox.com/wiki/index.php/Load_data_from_a_flat_file_into_an_Oracle_table

    See the link, hope it will work.

    It is an old method, using the utl_file_dir parameter that is now obsolete and which is frankly a waste of space when external tables can do exactly the same thing much more easily.

Maybe you are looking for