UPdation is very slow

Updation in a one table of our database is very slow. How i identify which thing is causing problem.
Any idea ????
Thanks

The tkprof shows that the main problem is due to too much parsing and is two-fold:
1) you are parsing every statement again and again. They are 1019 soft parses and 932 hard parses. By using bind variables you make sure you are not hard parsing every time, under normal circumstances. In your case however you have a second problem:
2) the cursor gets invalidated almost half of the times, and a new hard parse had to take place 932 times.
For the first problem you have to look at the application that is executing the SQL. The application is doing:
parse
bind
execute
close
parse
bind
execute
close
instead of
parse
->bind
->execute
->bind
->execute
close.
It may be because of dynamic SQL inside PL/SQL or maybe the parameter session_cached_cursors is set to 0? Or a java application that parses too much?
The cause of the second problem is hard to tell. What are you doing that makes the cursors go invalid each time? There are numerous ways why this may happen. Maybe you are dynamically granting privileges on the fly? Or are you flushing the shared_pool? At least something non regular is happening here and you have to find out why.
Note that another problem is the row by row processing, but that will be an issue once the bigger one has been solved
Regards,
Rob.

Similar Messages

  • My iPod touch is downloading and updating apps very slow more than an hour.

    My iPod touch 4th gen 32gb verson 4.3.1 is downloading and updating apps very slow more than an hour. I just got it a day ago and I backed up all my apps music and pictures and videos from iTunes. Few months ago I had an iPod touch but I lost it and it was working fine. Luckily before I lost it i backed up everything to iTunes so now everything that was in my old iPod is now in my new iPod. Anyways, When I first bought it I straight away backed up everything and saw that i had many updates on my apps. I started updating it all at once but even the first one was not loading at all and mty ipod was hanging many times during the updates so i cancelled all the updates. i even tried it on my computer and it was taking forever but my laptop does updating and downloading apps slower than my ipod so that doesnt matter. Even when I download an app on my iPod now its take more that an hour. So i was wondering, is my iPod slow cause I backed up too many things when i just got it . I have about 120 apps 150 plus photos and 70 videos and I backed it up all in one night on the day i got my ipod. So now I'm restoring my iPod and updating it to IOS 5 and see what happens. Hopefully it will be faster then but I still need to know what is main problem of m iPod hanging and slow updating/downloading. Need a reply ASAP. Thanks

    Still you can switch it off while syncing.
    You can also do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears)

  • Newest security update is very slow to install

    Newest security software update is very slow to install  for MacBook Pro

    No man wait for it to complete....sometimes due to some reason it may take time if u shutdown in between download process then it is fine u can download again but if u shut down in betw the installing process then u may loose ur data and crash the system....better wait
    do reply cheers TGT

  • Oracle 11G - Update is very slow on View

    I have big trouble with some Update query on Oracle 11G.
    I have a set of tables (5) of identical structures and a view that consists in an UNION ALL of the 5 tables.
    None of this table contains more than 20 000 rows.
    Let's call the view V_INTE_NE. Each of the basic table has a PRIMARY KEY defined on 3 NUMBERS(10,0) -> INTE_REF / NE_REF / INSTANCE.
    Now, I get 6 rows in another table and I want to update my view from the data of this small table (let's call it SMALL). This table has the 3 columns INTE_REF / NE_REF / INSTANCE.
    When I try to join the two tables :
    SELECT * FROM T_INTE_NE T2
    WHERE EXISTS ( SELECT 1 FROM SMALL T1 WHERE T2.INTE_REF = T1.INTEREF AND T2.NE_REF = T1.NEREF AND T2.INTE_INST = T1.INSTANCE )
    I get the 6 lines in 0.037 seconds
    When I try to update the view (I have an INSTEAD OF trigger that does nothing (just return for testing even without modifying anything), I execute the following query :
    UPDATE T_INTE_NE T2
    SET INTE_STATE = -11 WHERE
    EXISTS ( SELECT 1 FROM SMALL T1 WHERE T2.INTE_REF = T1.INTEREF AND T2.NE_REF = T1.NEREF AND T2.INTE_INST = T1.INSTANCE )
    The 6 rows are updated (at least TRIGGER is called) in 20 seconds.
    However, in the execution plan, I can't see where Oracle takes time to achieve the query :
    Plan hash value: 907176690
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | UPDATE STATEMENT | | 6 | 36870 | 153 (1)| 00:00:02 |
    | 1 | UPDATE | T_INTE_NE | | | | |
    |* 2 | HASH JOIN RIGHT SEMI | | 6 | 36870 | 153 (1)| 00:00:02 |
    | 3 | TABLE ACCESS FULL | SMALL | 6 | 234 | 9 (0)| 00:00:01 |
    | 4 | VIEW | T_INTE_NE | 6 | 36636 | 143 (0)| 00:00:02 |
    | 5 | VIEW | X_V_T_INTE_NE | 6 | 18636 | 143 (0)| 00:00:02 |
    | 6 | UNION-ALL | | | | | |
    | 7 | TABLE ACCESS FULL| SECNODE1_T_INTE_NE | 1 | 3106 | 60 (0)| 00:00:01 |
    | 8 | TABLE ACCESS FULL| SECNODE2_T_INTE_NE | 1 | 3106 | 60 (0)| 00:00:01 |
    | 9 | TABLE ACCESS FULL| SECNODE3_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
    | 10 | TABLE ACCESS FULL| SECNODE4_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
    | 11 | TABLE ACCESS FULL| SECNODE5_T_INTE_NE | 1 | 3106 | 2 (0)| 00:00:01 |
    | 12 | TABLE ACCESS FULL| SYS_T_INTE_NE | 1 | 3106 | 17 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("T2"."INTE_REF"="T1"."INTEREF" AND "T2"."NE_REF"="T1"."NEREF" AND
    "T2"."INTE_INST"="T1"."INSTANCE")
    Note
    - dynamic sampling used for this statement (level=2)
    Statistics
    3 user calls
    0 physical read total bytes
    0 physical write total bytes
    0 spare statistic 3
    0 commit cleanout failures: cannot pin
    0 TBS Extension: bytes extended
    0 total number of times SMON posted
    0 SMON posted for undo segment recovery
    0 SMON posted for dropping temp segment
    0 segment prealloc tasks
    What could explain the difference ?
    I get exactly the same execution plan (when autotrace is ON).
    Furthermore, if I try to do the same update on each of the basic tables, I get the rows updated instantaneously.
    Is there any reason for avoiding this kind of query ?
    Any help would be greatly appreciated :-)
    Regards,
    Patrick

    Sorry for this, I lost myself in conjonctures and I didn't think I would have to explain the whole case.
    So, I wrote a small piece of PL/SQL that reproduces the same issue.
    It seems that my issue is not due to the UPDATE but to the use of the IN predicate.
    As you can see at the end of the script, I try to join the 2 tables using different technics.
    The first query is very fast, the second is very slow.
    I need the second one if I want to do any update.
    DROP TABLE Part1;
    DROP TABLE Part2;
    DROP TABLE Part3;
    DROP TABLE Part4;
    CREATE TABLE Part1 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 1 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part1 PRIMARY KEY( Key1, Key2, Key3 ) );
    CREATE TABLE Part2 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 2 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part2 PRIMARY KEY( Key1, Key2, Key3 ) );
    CREATE TABLE Part3 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 3 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part3 PRIMARY KEY( Key1, Key2, Key3 ) );
    CREATE TABLE Part4 ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), PartId NUMBER(10, 0) DEFAULT( 4 ) NOT NULL, Data1 VARCHAR2(1000), X_Data2 VARCHAR2(2000) NULL, X_Data3 VARCHAR2(2000) NULL, CONSTRAINT PK_Part4 PRIMARY KEY( Key1, Key2, Key3 ) );
    CREATE OR REPLACE FUNCTION Decrypt
    x_in IN VARCHAR2
    ) RETURN VARCHAR2
    AS
    x_out VARCHAR2(2000);
    BEGIN
    SELECT REVERSE( x_in ) INTO x_out FROM DUAL;
    RETURN ( x_out );
    END;
    CREATE OR REPLACE VIEW AllParts AS
    SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part1
    UNION ALL
    SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part2
    UNION ALL
    SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part3
    UNION ALL
    SELECT Key1, Key2, Key3, PartId, Data1, Decrypt( X_Data2 ) AS Data2, Decrypt( X_Data3 ) AS Data3 FROM Part4;
    DROP TABLE Small;
    CREATE TABLE Small ( Key1 NUMBER(10, 0), Key2 NUMBER(10, 0), Key3 NUMBER(10, 0), Data1 VARCHAR2(1000) );
    BEGIN
    DECLARE
    n_Key NUMBER(10, 0 ) := 0;
    BEGIN
    WHILE ( n_Key < 50000 )
    LOOP
    INSERT INTO Part1( Key1, Key2, Key3 )
    VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
    INSERT INTO Part2( Key1, Key2, Key3 )
    VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
    INSERT INTO Part3( Key1, Key2, Key3 )
    VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
    INSERT INTO Part4( Key1, Key2, Key3 )
    VALUES( n_Key, FLOOR( n_Key / 10 ), FLOOR( n_Key / 100 ) );
    n_Key := n_Key + 1;
    END LOOP;
    INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 1000, 100, 10, 'Test 1000' );
    INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 3000, 300, 30, 'Test 3000' );
    INSERT INTO Small( Key1, Key2, Key3, Data1 ) VALUES ( 5000, 500, 50, 'Test 5000' );
    COMMIT;
    END;
    END;
    SELECT T2.*
    FROM Small T1, AllParts T2
    WHERE T2.Key1 = T1.Key1 AND T2.Key2 = T1.Key2 AND T2.Key3 = T1.Key3;
    SELECT T1.*
    FROM AllParts T1
    WHERE ( T1.Key1, T1.Key2, T1.Key3 ) IN ( SELECT T2.Key1, T2.Key2, T2.Key3 FROM Small T2 );

  • After 10.5.2 update, computer very slow

    Downloaded/installed update without incident. Microsoft Office programs are now very slow to open and very slow to perform certain tasks, like trashing an email. Emptying trash in the Finder sometimes works/sometimes doesn't. When it doesn't, I get a dialog box saying "You can't open Trash because Trash is being emptyed" or words to that effect. Force quitting hung aps usually does not work. It is sometimes possible to shut down or restart using the commands in the Apple menu but I've had to just power cycle the computer twice today when the commands didn't work. I tried verifying permissions but even that seemed to hang. Verifying the disk worked and it says the disk is ok. Any ideas on how to solve this? It almost feels like I've run out of memory but Activity Monitor says otherwise. Stumped.

    I had some of the exact same issues. After I installed the 10.5.2 update and noticed these issues, I ran Software Update again and found a "Leopard Graphics Update 1.0".
    http://www.apple.com/support/downloads/leopardgraphicsupdate10.html
    Once I installed this graphics update, my computer was back to normal.

  • Update Process Very Slow in Oracle 8 which update bulk data

    Dear all
    i am just updating data through SQLsub-query,but i want to get to column from sub-query and need to update my source table, but there is problem is that through sub-query just return a single column while updating,but i don't wan't to re-type another query for another column due to performance issue.
    Also the other issued related performance is very slow,how should i fast update in bulk.
    Please suggest,
    Thanks

    Actually i am update time roster table with machine date, first i get from file & insert into Machine_table & then
    i make joing query & then update roster table which is like below.
    in roster table data consist 1 to last day of month of every employee.
    update roster a
    set (a.timein,a.timeout) = (select timein,timeout from machine_table mch
    where a.roster_date = mch.roster_date and a.person_id = mch.person_id);
    this query is updating around 7750 & it takes to much time.
    please help urgent thanks.

  • Wsus 6.3 - Server 2012 R2 - Update downloads very slow - no proxy is use

    I have WSUS 6.3.9600.16384 installed on Server 2012 R2 and downloads are very slow, < 500 Kbps.
    A proxy server is not in use and updates are downloading, but very slowly.
    Plenty of BW available, consistent 60 Mbps internet download speed test results.
    Current download setting is set to "on approval".
    Has anyone had a similar problem and hopefully found a solution?

    Am 03.04.2015 schrieb Joel-L:
    Download operation is successful so I do not believe there is a problem with HTTP 1.1. range requests through my firewall.  I would have tried KB anyway but none of the "*SQL.EXE" programs are on my 2012 R2 system so I was unable to try it.
    Resolution 1 i wrote.
    http://support.microsoft.com/en-us/kb/922330 You can install a SQL Server Management Studio, connect to your WID and can run this Query:
    UPDATE [SUSDB].[dbo].[tbConfigurationC] SET BitsDownloadPriorityForeground=1
    Servus
    Winfried
    Gruppenrichtlinien
    HowTos zum WSUS Package Publisher
    WSUS Package Publisher
    HowTos zum Local Update Publisher
    NNTP-Bridge für MS-Foren

  • Update Query very slow

    Hi All
    I have three setups on which i have to run same query which is mentioned below. The execution plan on all three setups is same for the mentioned query. Still in one of the setup the query is taking almost 8 Hrs to complete. while in rest 2 setups it takes 2 Hrs to complete. The Ram Available for the setup is Same(16 GB). I tried to increase yhe SGA size but not got the expected results. i do not have DBA support for the same. I have also analysed and changed the parameter Index_OPtimizer_cost and made sure vthat this parameter is same for all three setups.
    The main problem is i can not modify the query as it is been generated during on the processes. But as mentioned earlier the query generated on all three setup is same. I also changed log_buffer_size. The query is :
    UPDATE /*+ BYPASS_UJVC */ ( SELECT Main Table_name.n_exp_covered_amt_irb AS T0 , CASE WHEN COND0 = 0 THEN BP0 ELSE BP1 END AS T1 FROM Global temp table , Main Table Name WHERE Main Table Name.n_gaap_skey=Gloabl Temp table.n_gaap_skey AND Main Table Name.n_run_skey=Gloabl Temp table.n_run_skey AND Main Table Name.n_acct_skey=Gloabl Temp table.n_acct_skey AND Main Table Name.fic_mis_date=Gloabl Temp table.fic_mis_date) SET T0 = T1
    Indexes are same on the All three setups also one index is present for the column name mentioned in the where clause of the query.
    The oracle version used is 10.0.1.0 in first setup in second setup i am using 10.0.2.0 and in third setup it's 10.0.4.0. The query is taking time where 10.0.2.0 version is installed.
    When i have looked in to the session while the query e=was executing SORT OUTPUT was taking most of the time.
    Thanks in Advance. It's very critical for me to get it resolved.Any suggestions are extremely welcome.

    Hi,
    please check the indexes on the colums of table where sort is happening. if indexes are not there then create it or rebuilt it. also the sql tuning advisor
    recommendation in dbconsole.
    thanks

  • Vendor Mass Update is Very Slow

    Hi All,
    We are running ECC6.0 and have just consolidated our HCM and Financial systems into one instance running in a virtualised environment. We also have a linked SRM 550 running in the same virtualised environment.
    I have been tasked with a project to change all the vendor payment terms on the financila system.
    We have approx 40,000 vendors and 17 Purchase orgs.
    We need to change the terms at the Vendor Level and the Purch Org level and am using MASS LFA1.
    The General Tab changes have been done and these took between 5-8 hours.
    The changes to the Purch Orgs involve 300,000 records and the run times using MASS are getting excessive > 48 hours.
    This is having a serious impact on system resources and has slowed our system down considerably. The MASS jobs have been terminated by our BASIS team after 30 hours because of memory limitations.
    Basis have increased available memory in the virtualised system but still we are having performance problems while modifying the payment terms across the whole system.
    Can anyone else who has tried to do large MASS changes on vendors, share any tips or advise on any other methods that they have used.  Also any tips on running a virtualised environment would be useful.
    We have ruled BDC out as probably taking longer than MASS.
    Any suggestions please?
    Allen

    Hi Allen,
    As you are using MASS transaction for LFA1 for changes but it should do the changes in background processing which will not affect any BASIS storage capacity or any user information change, it will just run in background.
    please check whether you are doing it in Forground or in background.
    As well please check with technical person (ABAP) for direct Table update which will help you to do the changes in Vendor master details at Tbale level directly.
    Regards,
    Ninad Kshirsagar

  • After OS X update loading very slow.

         Hello , i'm new here - my first problems with my mb(late 2009 edition).
    my first problem - after i reinstalled my snow leopard(2 days ago) it was fast (15 -20 seconds to load it up ). after i updated via ( Software Update 10.6.7) it takes ages to load.  usualy almost 2 mins or so... atm no additional apps are instaled just starcraft2 and pixelmator.
    my second problem - after i load it up starcraft2. it's working normaly in the main menu and b.net game lobby. Problems apear only when actual game starts. first 1 - 3 mins is ok after that , persistent freezout's. freezout for a ~0,5 second and it repeats after 1 or 2 seconds again for 0,5 sec freeze. and it usualy can be for entire game. visual and sound settings are all low. this problem occured only after i reinstalled os.
    What actions i did take ? Run disk utilities thats all, dont know what to do more ,
    btw my Safe mode just wont start up tried to to press Shift after starting sound , tried (option , cmd , p , r) wait for 3 sounds(didn't work) and then shift combination didn't work either.
    Btw sorry for my bad english isn't my native language .

    I have noticed something similar on my Win7x64 system, but am not able to reliably reproduce it. It seems, for me at least, to be a combination of +Clarity and Lens Profile Correction which will always trigger an observable screen redraw when moving from segment to segment in 1:1 view mode. The variable is the delay.....most often it's a fleeting effect, but occasionally there's a more obvious delay in redrawing the image display. I suspect the more obvious delay is, in addition to the +Clarity and Lens Correction, some internal resource utilisation over a longer Lightroom session....certainly every time I've encountered it a Lightroom restart has cleared it up.
    Don't know it that helps, or gives you any pointers to reducing the impact. Because of another "issue" with Lens Corrections (when it's applied, Spot Removal work gets slower), I tend to apply it last of all when editing pictures....so that also helps avoid this 1:1 screen redraw problem.

  • EPM Add-In Auto Update is very slow

    Good day, experts.
    Probably someone also encountered the similar problem on SAP BPC 10, SP11 for SAP NW (Windows/Oracle):
    when I start EPM Add-In Excel from the Launch pad on our BPC server in a browser, MS Excel shows me a message about availability of a new version and offers me to start an update. After I confirm this the download process starts, which can take 1,5 hours to finish, though the files size isn't too big (around 150 Mb). This time doesn't change even if I run the update in the same network with our BPC server. 
    I've tried to change several parameters like
    icm/HTTP/max_request_size_KB = 307200
    icm/IIOP/max_request_size_KB = 307200
    icm/P4/max_request_size_KB = 307200
    mpi/total_size_MB = 800
    mpi/buffer_size = 262144
    but in vain. Could you please assist. Thanks in advance.

    This is an older post, but I thought I'd share our solution.
    Take a look at SAP Note 1814184 - Provide chunk size customization for EPM Add-In update.
    We are on SAPK-80011INCPMBPC.  However, the global parameter AUTO_UPDATE_CHUNK_SIZE was not set.  It defaulted to 1MB.
    1.  Open T-Code SIMGH and select 'Planning and Consolidation Configuration' as the IMG structure. Press F7 to diaplay it.
    2. Expand 'Configuration Parameters' and click the query button beside 'Set Global Parameters'
    3. Press F5 to insert a parameter named 'AUTO_UPDATE_CHUNK_SIZE' with an integer value, which indicades the size of a chunk in MB. If you don't set the parameter, the default chunk size is 1MB. Please be aware that you'd better not set the value too big in case you have poor band width of your working network, otherwise the EPM Add-In may become not responding during the upgrading.
    We set AUTO_UPDATE_CHUNK_SIZE to 10 (MB).  The update install time was reduced from 2 hours to 10 minutes.

  • Ipod after updating is very slow!!!

    i updated my ipod touch and it takes 3 minutes to turn on, also the ''other'' space in capacity keeps growing. I've already tried to restore it as new. (i don't have the jailbreak) :/ thanks

    Try:
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Yahoo Finance Portfolios - add/remove page and update data very slow to load

    The Add/Remove symbols page only partially loads then stops dead. Can take a minute or more to complete loading. And when I try to update quantities or price I get a whirling color gif which only sometimes reaches the point of letting me load data. Firefox, no problem.
    Thanks!
    Fresnel1
    New Jersey

    The Add/Remove symbols page only partially loads then stops dead. Can take a minute or more to complete loading. And when I try to update quantities or price I get a whirling color gif which only sometimes reaches the point of letting me load data. Firefox, no problem.
    Thanks!
    Fresnel1
    New Jersey

  • ITunes update library very slow

    I have my system dual-booting with Windows 7 and Snow Leopard with BootCamp. Windows 7 takes a mere thirty seconds to update my library when I open the program, however OSX takes just under an hour to complete. This process must occur every time I boot to the other OS. I am using 9.1 in both OS's.
    What can I do to speed up the OSX update of my iTunes library?

    Trust me, regardless of what operating system you're using you're going to always have some issue whether it be big or small. If there weren't any problems with the Mac OS, there wouldn't be a forum. Get a Mac anyway, it's way cool!

  • Very Slow Speed for OS X Updates

    Hey Everyone
    I have been attempting to download updates through the Mac App Store recently on my mid-2013 MacBook Air, currently running OS X 10.10.2.
    It seems as though a download of 40 MB is going to take around 2 hours... very weird because my connection is extremely fast. For example, I can download about 4 GB in about half an hour.
    Is anyone else experiencing OS X updates downloading very slow through the MAS. It seems as though it doesn't affect any app downloads though.

    I'm facing same issue with same modem.. esp when I use wifi. However, if I connect to ether port its much better.. Please let me know if you found a solution..

Maybe you are looking for