Commit to taking a lot of time for the update statement to bulk - 11 GR 2

Hi team,

We have a source table, which is the main table for our application.

When I commit a transaction after update block, it takes long about 2 to 4 minutes.

I don't understand why it takes too long...

Could you please help me on this fix, please...

It's the details on the table,

Total number of records: 35 M record

Validation interval: 500 records / commit

Total scores: 3

total number of columns: 95 - including primary, unique and foreign key columns (all columns will be updated for each update because update from the app online)

Total no of the foreign key columns: 12

Unique key column: 1

Total index: 27 ( including the key index foreign 12 + 1 + 1 index of primary key Unique key index )

example of update statement,

UPDATE DIRECTORY_LISTING_STG
SET
  COLUMN_1 = :VAL_1
  .
  .
  .
  COLUMN_94 = :VAL_94
WHERE RECORD_KEY = :P_KEY_VAL;

The table is.

Plan hash value: 2997337465

--------------------------------------------------------------------------------------------
| Id  | Operation          | Name                  | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------------------------
|   0 | UPDATE STATEMENT   |                       |     1 |   308 |     3   (0)| 00:00:01 |
|   1 |  UPDATE            | DIRECTORY_LISTING_STG |       |       |            |          |
|*  2 |   INDEX UNIQUE SCAN| XPKDLS_STG_PARTPN     |     1 |   308 |     2   (0)| 00:00:01 |
--------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - access("RECORD_KEY"=TO_NUMBER(:P_KEY))

Details of the database,

Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production

Thank you

RAM

2793617 wrote:

Hello

I am updating table via an application using Hibernate jdbc connection online.

If the update statement will be sent to the database in a pack of 500 documents (batch update).

Thanks Ram

line-by-line UPDATE is slow by slow transformation

In Oracle no other session can 'see' upgrade from uncommitted changes.

The only way to significantly reduce the elapsed time is to have only 1 UPDATE & 1 COMMIT!

Tags: Database

Similar Questions

  • What will be the best time for the update of the window?

    Does anyone have a directive on execution of the Update window?

    Someone has suggestions on when to do and how to do?

    Thanks in advance for your suggestions

    After you install installers, it will jump to the top message to reboot XP? or it will restart XP automatically?

    Thanks a lot everyone for all the suggestions

    Get WU to work for you, by choosing an option that works for you, for example you can be notified only and then you can choose to download and install, and reboot when it's convenient for you: -.

    Windows XP

    To activate the automatic updates yourself, follow these steps:

    1. Click Start, click run, type sysdm.cpl, and then press ENTER.
    2. Click the automatic updates tab, and then click to select one of the following options. We recommend that you select the automatic (recommended) automatically download updates that are recommended for my computer and install them .
      • Automatic (recommended) automatically download updates that are recommended for my computer and install them

        If you select this option, Windows recognizes when you are online and uses your Internet connection to find updates on the Windows Update Web site or on the Microsoft Update Web site that apply to your computer. Updates are automatically downloaded in the background, and you are not notified or interrupted during this process. An icon appears in the notification area of your taskbar when the updates are downloaded. You can point to the icon to display the status of the download. When the download is complete, you receive another message in the notification area so that you can review the updates are planned for installation.

        • Click to select the day and time for scheduled updates to download and install. You can schedule automatic updates for any time of the day. However, your computer must be on at the scheduled updates to install.
        • You can choose to install the updates as soon as they have finished downloading. To do this, click Download message (or the Update icon), and then click install. If you choose not to install updates when they finish downloading, Windows starts the installation on your set schedule.
      • Download updates for me, but let me choose when to install them

        If you select this option, Windows recognizes when you are online and uses your Internet connection to automatically download updates on the Windows Update Web site or the Microsoft Update Web site. An icon appears in the notification area of your taskbar when the updates are downloaded. You can point to the icon to display the status of the download. When the download is complete, you receive another message in the notification area so that you can review the updates are planned for installation.

        • When you want to install the downloaded update, click the message (or the Update icon), and then click install to install the update.
        • If you do not want to install a downloaded update, click Details, and then click to clear the check box next to that update to decline.
      • Notify me but don't automatically download or install

        If you select this option, Windows recognizes when you are online and uses your Internet connection to search for downloads from the Windows Update Web site or from the Microsoft Update Web site. An automatic updates icon and message appear in the notification area of your taskbar when new updates are available to download or install.

    • Click the icon or message to view the updates. If you do not want to download a selected update, click to disable the check box next to that update to decline. Click Start Download to download the selected updates. The automatic updates icon remains in the notification area of your taskbar, while updates are downloaded. You can point to the icon to display the status of the download.
    • When the download is complete, you receive another message in the notification area indicating that the updates are ready to install. Click the automatic updates icon or the message, and then click install to install the updates.
  • Click OK.
  • Windows 7 Home Edition, taking a lot of time to install updates

    I shut down my computer last night and Windows said it would install 47 updates. When I got up at 7:00, it's always the update number 8. Is this normal?

    Some updates are small, but some are large.  If one of these updates was to SP1, we can take an hour or two.   But assuming that it was more than 6 hours between the time that you have already told him to stop and 07:00, which seems like a very long time. What is your C: partition and how much space does?   What CPU you have (for example, Pentium dual core Intel I3, I5, AMD A4, E7400, etc.)?

  • Tuning PL/SQL - tkprof still shows a lot of work for the RECURSIVE STATEMENTS

    Hello

    First of all I don't know if this should be in the "database - general' or 'SQL and PL/SQL. Given that it is more a question specifically on the PL/SQL performance, I'll put here in 'database - general. " I hope that doesn't offend anyone.

    I just started watching a performance in our application issue. One of the developers establish me a procedure that replicates the question, I ran by tracing the session and then fed the tkprof on trace file. The results at the bottom of my eyes like this tkprof output file:
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse        3      0.01       0.07         10         60          0           0
    Execute      3      0.01       0.01          0          3          0           3
    Fetch        0      0.00       0.00          0          0          0           0
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total        6      0.03       0.08         10         63          0           3
    
    Misses in library cache during parse: 1
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       5        0.00          0.00
      SQL*Net message from client                     4        1.68          1.70
      db file sequential read                        18        0.01          0.10
    
    
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    
    call     count       cpu    elapsed       disk      query    current        rows
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    Parse      416      0.00       0.01          0          0          2           0
    Execute   1456      0.71       0.75         26       1739        425         590
    Fetch     2932      0.12       2.21        337       6338          0        3061
    ------- ------  -------- ---------- ---------- ---------- ----------  ----------
    total     4804      0.84       2.98        363       8077        427        3651
    
    Misses in library cache during parse: 25
    Misses in library cache during execute: 24
    
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                       343        0.08          2.09
      db file scattered read                          1        0.00          0.00
    
       47  user  SQL statements in session.
      888  internal SQL statements in session.
      935  SQL statements in session.
       31  statements EXPLAINed in this session.
    I'm looking in particular to this relatively high activity RECURSIVE STATEMENTS, because for me, NO RECURSIFS (ie the actual submitted statements that form our code) seems harmless enough. It's my first experience to try to solve some complex looking for PL/SQL and I have no idea what might be considered more "normal", but I think I know and research on google, the results seem pretty strange to me.

    Is this strong activity for RECURSIF INSTRUCTIONS a problem, and if so, what should I start looking to reduce this activity?



    Kind regards

    ADOS

    should I concentrate my efforts on the identification of our STATES RECURSIFS

    1 456 executions took 2.98 seconds. If you are concerned? It depends on if it is essential for your application.

    Published by: Hemant K grapple on July 30, 2009 16:43

  • Windows 8, taking a lot of time at the stop

    Hello

    I use Windows 8 in my laptop Sony vaio SVE15136, it takes a long time to stop. Please help me solve this problem

    Hello

    I use Windows 8 in my laptop Sony vaio SVE15136, it takes a long time to stop. Please help me solve this problem

    I would like to try normal these steps.

    Scan if there is no virus / malware then try the steps below.

    1 remove temporary files: start > run > type "Temp". Press ENTER.

    delete all the files/folders that are stored (ensure that all applications are closed)

    2 remove the local temporary files: start > run > Type "%Temp%". Press ENTER.

    delete all the files/folders that are stored (ensure that all applications are closed)

    3. delete prefetch files.

    Start > run > type "prefetch". Press ENTER.

    delete all the files/folders that are stored (ensure that all applications are closed)

    Also, I would reset the Internet Explorer settings to default and remove 3rd party addons that are not necessary.

    4. increase virtual memory to 2 times the size of the real memory.

    5. If none of these work. I would recreate user profile with elevated (Admin) access.

    See you soon!

    Love Alison

  • Breaking point taking up too much time for each step for every time to Jdeveloper 11.1.1.7

    Hi all

    I use Jdeveloper to ADF application development 11.1.1.7 and I use 64 bit JDK. When I run my application in debug mode, if the program control passes to the location of the breakpoint taking too in time for the next step (F8) a few times because of this I need to restart the server from WL. During this time of progress/loading showing symbol on the screen. I don't know why this is happening... ? Please someone help me on this.

    Vinoth-

    Try closing the Panel of the Structure of the ADF. I noticed a lot of requres JDev struggle to maintain synchronization with the Structure of the ADF. It helps in the design of JSF page and in brakepoints in support beans and other JSF related classes.

    I also had problems with 64 bit JDK on Windows and came back to 32-bit. (do not remember if I had WLS crashes but I know I had a lot of problems)

    Try growing JDev memory and heap WLS.

  • Windows 7 by taking a lot of time to start!

    Dear Sir.

    I have a few questions here, and I hope that someone could help me with them. my laptop in the first days it takes only about 30 seconds to start windows, but now I need more than 90 seconds to start windows. I have the machine of SONY (VAIO), model number is CPCCW2S1E. I need to know what takes a long time for the computer to boot. and I would like to know whether the registry is incharge somehow on this subject. I work with photo and video stuff, I always install and uninstall programs, so I thought that maybe make my pc speed. and if the regestry is incharge thereon, is there somehow or no software to clean the registry database or to do something? If there is no recommended program, let me know please...

    Thank you

    Is your system error free?

    To access the system log, select Start, Control Panel, administrative tools, Event Viewer, in the list on the left of the window select Windows and the system logs. Place the cursor on the system, right click and select filter current log. Check the front of the error and click OK and see you only reports errors. Click header to sort on the Date and time. You may need to click a second time to see the last report above.
     
    A tip for posting copies of error reports! Run Event Viewer and double-click the error you want to copy. In the window, you will see a button resembling two pages. Click on the button and close Event Viewer. Now start your message and paste it into the body of the message. Make sure that it is the first dough right out of the event viewer.

    I suggest you download Process Explorer.
    For more information about Process Explorer, see here:
    http://www.Microsoft.com/technet/sysinternals/SystemInformation/ProcessExplorer.mspx

    This freeware utility performs a similar function to the Windows Task Manager, but it goes much further.

    In process Explorer, please add a column. Select View, Select, columns, process, performance, and check the box before the start time. Then, select "Show processes from all Users" and click on the 'Start Time' column header. This will sort so that you can see start with the first sooner. You may need to click twice or three times.

    On my Windows 7 machine, the first point I see is smss.exe = Manager of Session. You should then see a long list of items over a short period of time to load. The boot process is not responding on my computer with two files AVG loading (my anti-virus is AVG 10. Before these two files is a file uns.exe that loaded this morning 2 minutes and 20 seconds after smss.exe. USN.exe is a file of Intel, so may not be on your computer.

    Questions. How long it take to smss.exe loading to the main files to load? What are the files that arrive at the end, and how long does it take so that they appear after smss.exe?
    Can you also detail what anti-malware software is installed?

    Hope this helps, Gerry Cornell

  • For the last week or three Firefox updated two or three times for each update and sometimes for no apparent reason...

    For the last week or three Firefox updates two or three times for each update. Sometimes it refreshes without obvious reason. For example, I'll be in the middle of typing in the message forum block & it refreshes. Or by filling out an online form. Or simply viewing a page.

    You can check for problems caused by an extension that is not working properly.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.
  • "Look for the update is not available at this time. Try again later. »

    I use a Photon on the Sprint 3 G EVDO network. When I open the settings app and click the option to check the software update from Motorola, the following screen appears: "look for the update is not available at this time. Try again later. "When I'm on a Wi - Fi network, a similar message appears (no screenshots):" your device is up to date! No update is necessary at this time. "Can someone please provide more information about what exactly is the message originally in my screenshot below to appear? Thank you for your help.

    If you go to Menu > settings > Data Manager > delivery data > social apps > Sync only over wifi. If this box is checked, and that you are connected to 3g / 4g and no wifi, you will get the server is not available because you are not connected to our servers. As soon as you connect to the wifi it reconnect to our servers and see no upgrade is available or an update if one is available. Your phone works as expected.

    Mark

    Support Forums Manager

  • The waiting time for the activation of the subscription of creative cloud?

    The waiting time for the activation of the subscription of creative cloud?

    Hi Evgeny,

    You can follow the article: solve common activation Adobe Creative Cloud (login) and questions (disconnect) disabling or error messages and errors in connection with Creative Suite and creative Cloud applications, activation and connection Solutions to resolve activation problems.

    Let us know if this solves the problem for you or not.

    Thank you

    Yann Arora

  • Just changed my account information for payment, but payment results in a week, enough time for the new payment will be held for the new account?

    Just changed my account information for payment, but payment results in a week, enough time for the new payment will be held for the new account?

    HI Lucas,.

    I see that you have tried to change the billing details, but they were not properly updated.

    Please get in touch with the customer: -.

    Contact the customer service

  • Elapsed time for the materialized view vs Master table query

    Hello all;

    Small confusion about time up for the vs Master materialized view table query

    SQL > select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:30.54
    SQL > create materialized view mv1
    2 activate the rewrite of the query as
    3. select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    Materialized view created.
    Elapsed time: 00:00:01.45
    SQL > select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:00.01

    Please see the three cases "Elapsed Time"...

    When comparing other cases.
    1. my query takes long time (30.54), extraction of data from the sale
    2. create a materialized view takes less time (01:45) why?

    Source: http://uhesse.com/2009/07/08/brief-introduction-into-materialized-views/

    >
    Small confusion about elapsed time for the materialized view vs Master table query

    SQL > select count (*), sum (quan_sold), sum (amt_sold) from the sale.

    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:30.54

    SQL > create materialized view mv1
    2 activate the rewrite of the query as
    3. select count (*), sum (quan_sold), sum (amt_sold) of the sale;
    Materialized view created.
    Elapsed time: 00:00:01.45

    SQL > select count (*), sum (quan_sold), sum (amt_sold) from the sale.

    COUNT (*) SUM (QUAN_SOLD) SUM (AMT_SOLD)
    6000000 12000000 720480000
    Elapsed time: 00:00:00.01

    Please see the three cases "Elapsed Time"...

    When comparing other cases.
    1. my query takes long time (30.54), extraction of data from the sale
    2. create a materialized view takes less time (01:45) why?
    >
    Many queries take less time the second time you run them. After the first performance, there may be many, if not all, lines in the buffer cache. Then the second round will not make any or all e/s physical but will obtain data from the buffer cache.

    Also, you haven't checked that the MV was even used for the second run.

    Drop the MV and make the query several times and means of the time. Then create the MV and do the same thing.

  • choose Start and end in time for the ashes report

    I'm using Oracle 11.2.0.3.

    I have sql_id for an update statement, which took almost 4 hours. It took place from 18/04/2013 19:20 to 18/04/2013 22:30 approximately.

    I'm under ashes using @$ORACLE_HOME/rdbms/admin/ashrpt.sql report

    What should I use to start time and the end time?
    should start on time be exactly when the query started / or before the beginning of the request, or after request started?

    If I want to search awr report should I take the snapshot taken at 7 and 11?

    Also, is there other reports or query that I should check to diagnose long-running sql?

    Thank you.

    spur230 wrote:
    ... Etc...
    What should I use to start time and the end time?
    should start on time be exactly when the query started / or before the beginning of the request, or after request started?

    If I want to search awr report should I take the snapshot taken at 7 and 11?

    Also, is there other reports or query that I should check to diagnose long-running sql?

    (1) If you have pictures of an hour, watch 7-> 11 range o.
    (2) get the SQL_ID of the query which poses problem and use the Advisor of Tunnig SQL (DBMS_SQLTUNE) to identify and resolve the performance problem.
    (3) also, you must consider the plan of the explanation of problematic queries.
    : p

  • FRM - 40603:Records is no longer reserved for the update. Query for changes

    Hi I have a form that has been developing 6i and upgraded to 11g form work well in 6i, but when I try to do the same function in 11g get this error

    FRM - 40603:Records is no longer reserved for the update. Query for changes
    When I commit this execute_query (for_update); It is the form to clear values when it loads, the error comes when I try to delete

    How can I do this

    Action: If you want to change the block, you will need to re - interview.

    Captureerror3.PNG

    I use When-Timer-Expired (WTE) trigger

    You have a 'relationship' defined between the blocks of your master and detail? If so, simply update your master block and the block of details will automatically be re-interviewed. If you cannot use a relationship, then you can use can create a timer in the trigger that updates the database, then in the trigger When-Timer-Expired (WTE) you can go to the retail block and run a query. For example: / * the sample on change trigger * /.

    DECLARE
      timer_id  TIMER;
    BEGIN
    ....your code here that performs the update....
      /* Now create an instance of a timer */
      timer_id := Create_Timer ('upd_detail',1,NO_REPEAT);
    END;/* Sample Form Level When-Timer-Expired trigger */
    DECLARE
      timer_id  TIMER;
    BEGIN
      -- Find the timer first
      timer_id := FIND_TIMER('upd_detail');
      IF NOT ID_NULL(timer_id) THEN
          GO_BLOCK('DETAIL_BLOCK');
          Execute_Query;
      END IF;
    END;
    
  • Satellite 4090 BIOS number - message "ready for the update BIOS... ' appears

    Hi all! Excuse my poor English because I'm french.

    A friend gives me his cell phone (a Satellite exactly 4090CDS) because he had a problem.
    In fact, the problem is that when I turn on the computer, I have a single message (not even the toshiba red logo) that is "ready for the update of the BIOS. Place the BIOS update floppy in the drive and press any key when you are ready to move forward."

    So I go to the french site of toshiba, in the BIOS download, I find that I must download this update: http://support.toshiba-tro.de/tools/bios/satellite/4030-4060-100/bios_820.zip

    OK, I download and unpack it on a floppy disk and I start the laptop with the disjette, he said that the update has been successful and it restarts automatically.
    This time, the Red toshiba logo appears, but then I have a black screen with a message:

    Bad checksum (CMOS) *.
    Check the system. Then press the [F1] key.

    And after that, I can't do anything, not even, press F1. If I restart the laptop, I myself meet once more with the first message «Ready for the update of the BIOS...» "and it's still the same.

    If someone could help me understand what the problem is, that would be fine.
    Thank you.

    Bastien.

    It sounds as if your CMOS chip has a problem. It is possible to s that the CMOS battery has failed and the BIOS settings are lost.
    Maybe the RTC battery is empty. In this case, you should connect the AC adapter to charge the battery of the CCF.
    Please note that the RTC battery (CMOS battery) can be fluffed once the main laptop battery has been recharged. In this case, the charge process may take several hours.

    But if after this long process of load this message appears again then I guess the battery is dead.
    I suggest that you only contact your ASP closest to get your phone checked.

Maybe you are looking for

  • tabs do not close when I click on more than 10 links

    After updating to Firefox 11 a strange problem occurs when I click on more links then 10 and try to close: links do not close and I have to close the window. It's never happened before. I have some paid click Programs click on many links, so it's not

  • Satellite M40-296: broadcast of TV-OUT - image is black and white

    My M40-296 with ATI Express 200 M doesn´t work well with TV-OUT. While the BIOS is set to Pal, and the software is configured for PAL-G (Portugal) the image is black and white. I ve tried two cables. A s-video/composite and s-video live. Can anyone h

  • Update KB953297 does not install

    Message reads as follows:Some updates could not be installedThe following updates were not installed:Microsoft .NET framework 1.1 Service Paack 1 security update for Windows 2000, Windows XP, Windows Vista, Windows Server 2008, Windows 7 and Windows

  • cursor moves irregularly... typing very difficult because it moves independently running programs...

    Let me look at what I've done. I had to reformat my hard drive.  I rebooted my Windows Vista (Home Basic) and made Windows updates on a daily basis. Cursor of the laptop worked very well.  Now, after reformatting, my cursor will move... he can move a

  • 'Unidentified network' after every reboot with Windows 7

    Hi guys,. It seems to be a large number of people with this problem and a multitude of suggestions on how to fix it. I had no chance.So far, I've tried everything, including the quite this long list here (excluding those of the 'method III' that I'm