Issue in updating large number of rows which is taking a long time

Hi all,
Am new to oracle forums. First I will explain my problems as below:
1) I have a table of 350 columns for which i have two indexes. One is for primary key's id
and the other is the composite id (combination of two functional ids)
2) Through my application, the user can calculate some functional conditions and the result
is updated in the same table.
3) The table consists of all input, intermediate and output columns.
4) The only way of calculation is done through update statements. The problem is, for one
complete process, the total number of update statement hits the db is around 1000.
5) From the two index, one indexed column is mandatory in all update where clause. So one
will come at any case but the other is optional.
6) Updating the table is taking a long time if the row count exceeds 1lakh.
7) I will now explain the scenario:
a. Say there is 5lakh 100 records in the table in which mandatory indexed column id 1 has
100 records and id 2 has 5 lakhs record.
b. If I process id 1, it is very fast and executed within 10seconds. But if I process id 2,
then it is taking more than 4 minutes to update.
Is there any way to increase the speed of the update statement. Am using oracle 10g.
Please help me in this, Since I am a developer and dont have much knowledge in oracle.
Thanks in advance.
Regards,
Sethu

refer the link:
http://hoopercharles.wordpress.com/2010/03/09/vsession_longops-wheres-my-sql-statement/

Similar Messages

  • Update large number of rows

    I have a query as follows:
    UPDATE TABLE_1 A SET COLUMN_1 = (SELECT COLUMN_1 FROM TABLE_2 B WHERE A.COLUMN_2 = B.COLUMN_2)
    Both tables have 400k to 500k rows and the update is taking a long time. How can I improve this update statement? Can I use a parallel query? How about using hints?
    Thanks

    How can I improve this update statement?You can add a WHERE clause to make sure you don't update an existing column to null if no row is found in the subquery:
    UPDATE TABLE_1 A
    SET    a.COLUMN_1 = (SELECT b.COLUMN_1
                         FROM   TABLE_2 B
                         WHERE  A.COLUMN_2 = B.COLUMN_2)
    WHERE  EXISTS       (SELECT b.COLUMN_1
                         FROM   TABLE_2 B
                         WHERE  A.COLUMN_2 = B.COLUMN_2)
    ;For the performance...you'll need to look at (and post) an explain plan to see what's going on.

  • Af:table Scroll bars not displayed in IE11 for large number of rows

    Hi. I'm using JDeveloper 11.1.2.4.0.
    The requirements of our application are to display a table potentially displaying very large numbers of rows (sometimes in excess 3 million). While the user does not need to scroll through this many rows, the QBE facility allows drill-down into specific information in the rowset. We moved up to JDeveloper 11.1.2.4.0 primarily so IE11 could be used instead of IE8 to overcome input latency in ADF forms.
    However, it seems that IE11 does not enable the vertical or horizontal scroll bars for the af:table component when the table contains greater than (approx) 650,000 rows. This is not the case when the Chrome browser is used. Nor was this the case on IE8 previously (using JDev 11.1.2.1.0).
    When the table is filtered using the QBE (to a subset < 650,000 rows), the scroll bars are displayed correctly.
    In the code the af:table component is surrounded by an af:panelCollection component which is itself surrounded by an af:panelStretchLayout component.
    Does anyone have any suggestions as to how this behaviour can be corrected? Is it purely a browser problem, or might there be a programmatic workaround in ADF?
    Thanks for your help.

    Thanks for your response. That's no longer an option for us though...
    Some further investigation into the generated HTML has yielded the following information...
    The missing scroll bars appear to be as a consequence of the setting of a style for the horizontal and vertical scroll bars (referenced as vscroller and hscroller in the HTML).  The height of the scrollbar appears to be computed by multiplying the estimated number of rows in the iterator on which the table is based by 16 to give a scrollbar size proportional to the amount of data in the table, although it is not obvious why that should be done for the horizontal scroller.  If this number is greater than or equal to 10737424 pixels then the scroll bars do not display in IE11.
    It would seem better to be setting this height to a sensible limiting number of pixels for a large number of rows?
    Alternatively, is it possible to find where this calculation is taking place and override its behaviour?
    Thanks.

  • I am trying to update a number of items which the software check brings up:      It runs and says it is installing but at the end I get this error message:    The update could not be expanded, and may have been corrupted during downloading. The update wil

    Hi,
    I am trying to update a number of items which the software check brings up:
    It runs and says it is installing but at the end I get this error message:
    BUT then I ge tthis:
    Can anyone help me to enable the software to update?
    Thanks

    Thanks.  Something isn't right as I just tried to download the iphoto update - it said it had competed the download but then when I clicked on the download item I get this:
    Think will have to take it into the store.....
    thanks for replying.

  • Oracle Error 01034 After attempting to delete a large number of rows

    I sent the command to delete a large number of rows from a table in an oracle database (Oracle 10G / Solaris). The database files are located at /dbo partition. Before the command the disk space utilization was at 84% and now it is at 100%.
    SQL Command I ran:
    delete from oss_cell_main where time < '30 jul 2009'
    If I try to connect to the database now I get the following error:
    ORA-01034: ORACLE not available
    df -h returns the following:
    Filesystem size used avail capacity Mounted on
    /dev/md/dsk/d6 4.9G 5.0M 4.9G 1% /db_arch
    /dev/md/dsk/d7 20G 11G 8.1G 59% /db_dump
    /dev/md/dsk/d8 42G 42G 0K 100% /dbo
    I tried to get the space back by deleting all the data in the table oss_cell_main :
    drop table oss_cell_main purge
    But no change in df output.
    I have tried solving it myself but could not find sufficient directed information. Even pointing me to the right documentation will be higly appreciated. I have already looking at the following:
    du -h :
    du -h8K ./lost+found
    1008M ./system/69333
    1008M ./system
    10G ./rollback/69333
    10G ./rollback
    27G ./data/69333
    27G ./data
    1K ./inx/69333
    2K ./inx
    3.8G ./tmp/69333
    3.8G ./tmp
    150M ./redo/69333
    150M ./redo
    42G .
    I think its the rollback folder that has increased in size immensely.
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 10800
    undo_tablespace string UNDOTBS1
    select * from dba_tablespaces where tablespace_name = 'UNDOTBS1'
    TABLESPACE_NAME BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS
    MAX_EXTENTS PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU SEGMEN DEF_TAB_ RETENTION BIG
    UNDOTBS1 8192 65536 1
    2147483645 65536 ONLINE UNDO LOGGING NO LOCAL
    SYSTEM NO MANUAL DISABLED NOGUARANTEE NO
    Note: I can reconnect to the database for short periods of time by restarting the database. After some restarts it does connect but for a few minutes only but not long enough to run exp.

    Check the alert log for errors.
    Select file_name, bytes from dba_data_files order by bytes;
    Try to shrink some datafiles to get space back.

  • JDev: af:table with a large number of rows

    Hi
    We are developing with JDeveloper 11.1.2.1. We have a VO that returns > 2.000.000 of rows and that we display in a af:table with access mode 'scrollable' (the default) and 'in Batches of' 101. The user can select one row and do CRUD operations in the VO with popups. The application works fine but I read that scroll very large number of rows is not a good idea because can cause OutOfMemory exception if the user uses the scroll bar many times. I have tried with access mode in 'Range Paging' but the application works in strange ways. Sometimes when I select a row to edit, if the selected row is the number 430 in the popup is show it the number 512 and when I want to insert a new row throws this exception:
    oracle.jbo.InvalidOperException: JBO-25053: No se puede navegar con filas no enviadas en RangePaging RowSet.
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2132)
         at oracle.jbo.server.QueryCollection.fetchRangeAt(QueryCollection.java:5430)
         at oracle.jbo.server.ViewRowSetIteratorImpl.scrollRange(ViewRowSetIteratorImpl.java:1329)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStartWithRefresh(ViewRowSetIteratorImpl.java:2730)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStart(ViewRowSetIteratorImpl.java:2715)
         at oracle.jbo.server.ViewRowSetImpl.setRangeStart(ViewRowSetImpl.java:3015)
         at oracle.jbo.server.ViewObjectImpl.setRangeStart(ViewObjectImpl.java:10678)
         at oracle.adf.model.binding.DCIteratorBinding.setRangeStart(DCIteratorBinding.java:3552)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager._bringInToRange(RowDataManager.java:101)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowIndex(RowDataManager.java:55)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowIndex(FacesCtrlHierBinding.java:800)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <LoopDiagnostic> <dump> [8261] variableIterator variables passivated >>> TrackQueryPerformed def
    <LifecycleImpl> <_handleException> ADF_FACES-60098:El ciclo de vida de Faces recibe excepciones no tratadas en la fase RENDER_RESPONSE 6
    What is the best way to display this amount of data in a af:table and do CRUD operations?
    Thanks
    Edited by: 972255 on 05/12/2012 09:51

    Hi,
    honestly, the best way is to provide users with an option to filter the result set displayed in the table to reduce the result set size. No-one will query 2.00.000 rows using the table scrollbar.
    So one hint for optimization would be a query form (e.g. af:query)
    To answer your question "srollable" vs. "page range", see
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#ADFFD1179
    Pay attention to what is written in the context of +"The range paging access mode is typically used for paging through read-only row sets, and often is used with read-only view objects.".+
    Frank

  • Number of rows which can be retrieved in Discoverer Report

    Hi All,
    Is there any maximum limit on the number of rows which can be retrieved in Discoverer Report.
    Regards,
    Ankur

    Hi ankur,
    Rows for tables are fetched from the database incrementally in groups. The number of rows in each group is specified in the Options dialog box based on the value set in the option "Retrieve data incrementally in groups of." Click the Query Governor tab on the Options dialog box to see that option.
    To override that setting you can retrieve all the rows at once instead of incrementally. Retrieving all rows applies only to tabular style reports.
    * To retrieve all the rows at once instead of incrementally, choose
    Sheet | Retrieve All Rows. The table includes all the rows.
    * To count the number of rows choose Sheet | Count All Rows.
    I think there would be some maximum limit,do check it out.
    By,
    Kranthi.

  • How to Capture a Table with large number of Rows in Web UI Test?

    HI,
    Is there any possibility to capture a DOM Tabe with large number of Rows (say more than 100) in Web UI Test?
    Or is there any bug?

    Hi,
    You can try following code to capture the table values.
    To store the table values in CSV :
    *web.table( xpath_of_table ).exportToCSVFile("D:\exporttable.csv", true);*
    TO store the table values in a string:
    *String tblValues=web.table( xpath_of_table ).exportToCSVString();*
    info(tblValues);
    Thanks
    -POPS

  • I just downloaded the new update for itunes and the itunes store wont open up it is taking a long time it still hasnt loaded since 5pm

    i just downloaded the new update for itunes and the itunes store wont open up it is taking a long time it still hasnt loaded since 5pm, i also cant sighn in either it just keeps on saying accessing itunes....

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Update of latest ios taking a long time

    I have the first ipad and am doing the update to the latest ios version through a PC.  I am trying to install the download; however, it is taking a long time (more than an hour) and seems to be stuck on the backing up stage.  I'm afraid to stop it because it took me five times already just to download the update (over an hour long each) before I realized that I needed to turn off my antivirus to have it download successfully.  Now that it's stuck trying to do the actual update, do I try to stop it and start over or should I just let it run?  Is there something else I should be turning off to have this run more quickly or successfully?

    I finally decided to stop the install because it didn't appear to have any activity in the CPU.  After doing this, it had trouble stopping as well and I had to force a shut down of iTunes.  Then I had issues trying to rerun the install because it would tell me that it was having trouble starting a session for the backup.  To resolve this, I deleted all the backups in iTunes and had to restart my iPad.  After restarting, I was able to do a normal, manual backup of the iPad, so I then tried running the installation again and was successful.

  • What's in the apple TV update that came out tonight?  It's taking a long time to load.

    What's in the apple TV update that came out tonight?  It's taking a long time to load.

    Apple TV Software Update 5.2
    Feature
    Summary
    iTunes in the Cloud
    Browse and play your purchased iTunes music directly from iCloud. This feature may not be available in all countries.
    Bluetooth keyboard
    Use your Apple Wireless Keyboard to control your Apple TV. See this articlefor more information.
    AirPlay audio for videos
    Send stereo audio from movies, TV shows, and other videos on Apple TV to AirPlay-enabled speakers and devices (including AirPort Express and other Apple TVs).
    Stability and performance
    Includes general performance and stability improvements.
    If it's taking awhile to load it could be due to slow network speed or interference. It's around 600MB. If on ethernet, some have reported issues, try wifi.

  • Why are my apps taking a long time to update both on my phone and iPad?

    Why are my apps taking a long time to update both on my phone and iPad?

    Hi ariasm21,
    Thanks for visiting Apple Support Communities.
    If the App Store on your iPhone seems unresponsive or app updates are not completing, try the steps below.
    First force close the apps using these steps:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app's preview up to close it.
    These steps come from this article:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Next, restart your device:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Try updating an app again. If the issues persist, you may want to troubleshoot your internet connection next:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    All the best,
    Jeremy

  • I having issue with my Iphone 4 while playing music its taking too much time to play

    I am using Iphone which is taking too much time to play music & some time its shows one album cover and playing others song please help and let me know whats the issue

    Hello Sanjay,
    I would recommend steps 1, 3, and 5 from our iPhone Troubleshooting Assistant found here: http://www.apple.com/support/iphone/assistant/phone/#section_1
    Here is step 1 to get you started.
    Restart iPhone
    To restart iPhone, first turn iPhone off by pressing and holding the Sleep/Wake button until a red slider appears. Slide your finger across the slider and iPhone will turn off after a few moments.
    Next, turn iPhone on by pressing and holding the Sleep/Wake button until the Apple logo appears.
    Is iPhone not responding? To reset iPhone, press and hold the Sleep/Wake button and the Home button at the same time for at least 10 seconds, until the Apple logo appears.
    If your device does not turn on or displays a red battery icon, try recharging next.
    Take care,
    Sterling

  • Why iPad2 is taking too long time for a software update?

    Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me

    Hi, i have iPad2 with iOS 4.3, now I'd like to update to iOS 6.1.2, but it is taking too long time to update when i connect to iYunes.My internet speed is 15mbps.I am unable to understand the problem.Please help me

  • I am trying to update my ipad mini but taking too long time 5 hours

    i am trying to update my ipad mini to ios 7  but taking too long time 5 hours so what i have to do
    Message was edited by: GOPAL DHRUW

    You can try resetting your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Try again to see if the problem persists.

Maybe you are looking for

  • Syncing to iPad copies Master

    I upgraded from iPhoto to Aperture recently.  All seems good, and I'm getting to grips with the new application.  Once problem I'm having is syncing photos to my iPad.  I've created Albums in Aperture which are synchronised with my iPad.  This works

  • Problem while developing Front End

    Hi all I am developing GUI ( Front End ) where a user is allowed to add labels, buttons at runtime . Also he can add images to the screen at run time. He should be able to resize the size of the image at runtime. Also he should be able to resize the

  • Dw cs3 error

    i am trying to delete multiple checkbox and i have done a command procedure but it gives me error pls help. here is my code <% Dim Command1__@@varName@@ Command1__@@varName@@ = "@@defaultValue@@" If (@@runtimeValue@@ <> "") Then Command1__@@varName@@

  • Digitized thread in importing mini-DV

    I am importing from a Panasonic Mini-DV (not HD) and in the first few minutes of the clip (30 minutes total) the image has lots of digital blocks and the like and is very poor quality. Then after 2-3 minutes it's fine. It's not on the original. Any i

  • Problem accessing j2ee application in oracle 10g AS

    Hi, I have Oracle 10g AS installed on a Linux 4.0 system. I have deployed an ear file in the AS. The problem is while accessing the application, the login screen is showing, but after submitting it says "Page can not be displayed". The control is not