Issues when Insert and Analyze at the same time

Hi All,
We have a weekend job that used to take 12-15 hours usually and insert around 8 millions of records to a table from external table. Last weekend the same load took 60 hours and it move to Monday and there are some business impact.
While we investigate the same issue we identified that there is one more weekend analyze job for all the tables and indexes and took around almost same time and we noticed that the table we inserted the 8 million records alone it took around 15 hours. This table now has around 91 Core records.
We need to identify why this jobs taken long time as almost 4 times compare to the normal scenario.
I would like to know what exactly happen when Analyze and insert happened to the table at the same time. And What all issues can occur because this.
Best Regards,
Shijo

Ok,
It is unclear what version you are using as you forgot to post that.
Furthermore it is unclear what 'Analyze' is, as analyze statistics was already deprecated in 9i.
Secondly, most people is this forum speak English, and they are accustomed international units only.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • Insert and Delete at the same time?

    Hi,
    I have a dynamic list and dynamic form. When a person inserts a record using the dynamic form, I would like to delete a record from another table using a foreign key when the new record is added (assuming a record exists in the other table). Is this achievable, and if so, can anyone provide any help?
    Thanks in advance for any advice provided.
    Gary

    As kendenny says, this appears to be a misunderstanding of how database transactions work.
    As Hoek says, if it's an insert and delete on the same table, there is a MERGE statement that can help do that as a single statement.
    However, you do not do an INSERT from one table and a DELETE at the same time from another table.  But that doesn't matter, because that's the point of logica transactions on a database.
    You perform your insert, which starts a transaction (if one isn't already started).
    You then delete from your other table (which adds to the transaction)
    When you're happy that both things are done, you COMMIT your transaction which then applies those changes.
    If you're not happy with something you can ROLLBACK, and that will undo all the changes from the transaction.
    So, the commit and rollback allow the changes to be applied as one logical unit, even though the changes are applied in multiple steps.

  • Does MagSafe 2 T Connector get hot when charging and using at the same time (while the light still in amber) ?

    Hi,
    Just want to check out with the other Apple Users here. I am using a Late 2013 rMBP, however the T Connector do get hot while I am charging and using the mac at the same time. Is this normal ? or do I have to drop by an Apple Store to check it out ?
    Thanks in advance

    Hello there.
    It's quite normal for the magsafe 2 connector (magnetic one) to become a bit warm while it's charging your mac. It will be warmer when your battery is low and the heat will start to dissipate as the battery charges. There is absolutely nothing to worry about. Normally your magsafe can go upto 35℃ depending your surrounding temperature. Even mine does. Just remember the warmth should not be untouchable, if that is what you feel take to a apple genius bar to get it checked.
    Hope that helps.
    Thank you.

  • Several of us have a iPhone 6s and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Several of us have a iPhone 6plus and are having trouble with hearing and speaking at the same time when using the phone. ? The speakers seem to be too far apart? Are others having this issue? Solutions?

    Not having the problem, don't personally know anyone who is.

  • Strange problem with SQLPLUS when client and server on the same box

    Hi,
    I have the problem with SQLPLUS when clinet and server on the same machine.
    With client and server on the same machine i am running the command
    sqlplus -l username/password@connect_identifier as SYSDBA.
    With this command, even if you pass in wrong username or wrong password or both as wrong you can able to connect to database and execute queries.
    Once Connect_identifier is correct and trying to log in as SYSDBA ,sqlplus will log in to DB with any username and password.
    How to get rid of this behaviour. Is there any way to do this.
    I am running this command by creating a process in C#
    Edited by: user11000236 on Jun 16, 2009 10:31 AM

    user11000236 wrote:
    Thanks for the info.
    How does Oracle/SQLPLUS allows any username or password to log in to DB with SYSDBA Privillages? What is the concept behind this.?
    This is explainted in the above mentioned link:
    Operating system authentication takes precedence over password file authentication. If you meet the requirements for operating system authentication, then even if you use a password file, you will be authenticated by operating system authentication.

  • When i hold down command and r at the same time after restarting it comes up with a

    When i hold down command and r at the same time after restarting it comes up with a black screen and a lock symbol and a field bellow where you would input a password, i have tried ALL of my possible passwords including my password i use for the mac and it stil will not work! all that happens is the text i put in bellow erases itself after hiting enter or clicking the arrow.

    I've tried my apple ID password and that doesn't work either . I don't recall seting a password for an encrypted disk either :/ if it was for an encrypted disk, would it be in keychain anywhere? if so how can i find it?
    Thanks!

  • IPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    iPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    Talk to your email provider. They control their servers and what happens to your email.

  • How do i start video and audio at the same time in ios

    How do i start video and audio at the same time in ios?
    I have tried a lot of different ways but i cant figure it out?
    I can get the sound and animation (timeline) to start playing.
    There is no problem to start the video and the animation at the same time.
    But i cant get both the video and the audio to start playing when i press a button.
    It works great in OSX and on windows?
    Here is an example:
    // insert code for mouse click here
    // Play an audio track
    sym.$("_1")[0].play();
    // Play a video track
    sym.$("host")[0].play();
    // Play the timeline at a label or specific time. For example:
    // sym.play(500); or sym.play("myLabel");
    sym.play("marker1");

    If the game has sound in it (and possibly even if it doesn't) it may be overriding the Music app and causing it to stop playing - in which case there is nothing that you can do about it.

  • Problem with audio of my notebook. Audio works through pc speakers and earphones at the same time

    Hi all, 
    thanks in advance for your advices.
    I have a problem with my notebook (HP pavilion g6 2305 sl).
    The problem is that when I connect my earphones the audio of my pc don't stop, hence I can hear (music, film, ...) both by earphones and speakers at the same time.
    I tried to install again the latest driver audio, but nothing was changed.
    I tried to use another pair of earphones, but nothing.
    I have noted that if I connect the Jack at my pc, but not until the end, the audio stops from the speakers and goes through the earphones, but only if the jack is not completly inserted in the notebook.
    I read a lot of forum on the web but I'm not able to find a solution for my problem.
    (ps. the problem comes out suddenly, without any signal. I don't have installed any update or new software before the problem's start)

    Right click on speaker icon, lower right screen.
    Choose playback devices.
    Select "speakers and headphones" as your default.
    Disable "communications headphones".

  • Error Running Oracle Apps and Discoverer at the same time

    Hello,
    We are having trouble running Oracle Apps and Discoverer at the same time on certain user's machines. Here are the specifics:
    The user opens Oracle Apps in Internet Explorer. The user then opens Discoverer in another Internet Explorer windows and receives the following error: Runtime Error! Program: C:\Program Files\Internet Explorer\iexplore.exe abnormal program termination
    As a work around, I installed Firefox on those user's machines. These users run Oracle Apps in Internet Explorer and run Discoverer in FireFox. This has solved the problem in 99% of the cases. However, there is one user who is having FireFox using Discoverer freeze when running Oracle Apps in Internet Explorer.
    Can anyone provide any insight on how I can solve these conflict issues so users can run Oracle Apps and Discoverer at the same time?
    Thanks in advance for your help,
    Carlos

    Hi Michael,
    I agree with you completely. It is reccommended to run 10g on a separate physical server unless you have sufficient resources to run on the same server (which even most large clients do not) Even then, I would recommend a separate server.
    I should have put my comment in context :-)
    a.) I was only stating that it was possible
    and
    b.) whether 10g is installed on the same physical server or separate should not affect the client browser crashing issue that was posted.
    I do have an install with EBS11i and Discoverer 10g on the same physical server and it works fine (this is sandbox/ TEST). Most of my large customers have 10g installed on multiple physical servers due to load balancing (capacity).
    I do work for Oracle. I try to help out on the forum when I can, but it is hit or miss :-(
    I would be glad to discuss anything privately.
    As for the issue at hand, I can reproduce the problem and here is what is occuring.
    I have EBS 11i configured with Jiniator 1.3.24
    I have Discoverer 10g configured with Sun Java plugin 1.4.2_06
    1. If you launch EBS 11i apps and a form with MS IE, then the browser launches the form using Jiniator JRE 1.3.xx (whatever you have configured in AutoConfig for EBS11i)
    2. Next, the user navigates to EBS 11i SSWA and launches a Discoverer workbook.
    What occurs is a child IEXPLORE.exe process is spawned from the parent IEXPLORE.exe process and Discoveer Plus is launched. The parent iexplore.exe process will be attached to the Jiniator JVM. Now if Discoverer is configured with
    a.) Sun Java Plugin or
    b.)a version of Jinitiator that is a different version from what EBS 11i is configured with
    then you may get this conflict.
    It really is an MS IE/JRE conflict with Jinitiator and Sun Java Plugi and the way the broswers attaches to the JVM (IMHO) as this behaviour could be reproduced with other non-oracle java applets.
    You can workaround the situation by:
    a. configure EBS11i and Discoverer to use the same version of Jiniator 1.3.xx
    b. educate the users to open one MS IE browser to connect to EBS11i and then open a second MS IE browser to login to EBS11i SSWA or Discoverer 10g Plus directly to launch workbooks. They need to to this by clicking on the icon and not using File >> New browser. Clicking on the icon will spawn a new parent iexplore.exe process that can attach to a second/different JVM. File >> New Window will spawan a child of the parent.
    c. As you did use two browser versions. MS IE for EBS11 connection and FireFox for Disocverer 10g connection.
    I would choose optoin b, so that you can use Sun Java Plugin with Discoverer.
    Open to any comments. I hope that helps you workaround the problem. The ideal solution is to have EBS 11i use/cerified with the 1.4 or 1.5 JRE. In poking around, I see there is a related post to this on one of Oracle's EBS 11i Product Managers Blog.
    See:
    http://blogs.oracle.com/schan/2006/04/18#a23

  • Droid Turbo talk and surf at the same time

    Hello,
    So I just brought my Droid Turbo home and have started testing it. I bought it knowing that it only had one antenna, but I had read that a new update was pushed that allowed for simultaneous talk and surfing. My software update is up to date (21.44.12.en.US), and the notes on the update even mention this feature was included in the update (why it is a "feature" and not a standard is beyond me). I just tried it again, and I can't surf and talk at the same time. Can someone explain this issue; is it only possible when using advanced calling over XLTE? The discussions I could find on here were all dated 6 months ago (before the latest update).
    Thanks.

    Yes, they both have to have Advanced Calling for HD voice to work....but that is not what the OP was inquiring about.  You can do simultaneous calls and data with the Turbo with ANY other phone (cell or landline) as long as you have Advanced Calling enabled on your phone.  The HD is an EXTRA feature that makes for better call quality if both have Advanced Calling, but I assure you that you can make regular voice calls the same as with any other device, AND use data calling any cell or landline once you have it enabled on the Turbo. 

  • Recording vocals and guitar at the same time, using the Alesis IO dock!

    Hi there!
    I have an Ipad 2 with the newest OS installed etc. And I rea the other posts in here.
    I bought an IO dock from Alesis the other day and was full of exspectations, but I got a bit disappointed -> Garageband! When I bought the Ipad dock I exspected that I would be able to record (or just play and hear the inputsound from two devices) at the same time in my headphones! But I wasn't... Now I'm wondering if this is going to be fixed in an update or not? I think it would be a shame if this issue isnt adressed, due to the huge abilities the Ipad/garageband/Ipad docks withhold.
    So anyone know anything? I went to my musicstore and spent about an hour or so with the tech dude there trying dfferent setups, but unfortunatly without luck! Just to clarify that I didt just plugged in my guitar and got mad that it wasnt apple intuative!
    Hope someone can help :)

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • Surf and Talk at the same time (AT&T Commercials)

    So I see all these commercials saying AT&T has the fastest 3G network. I also see the commercials about being able to surf and talk at the same time.
    Now I was almost positive that was crap but figured let me test this out again just to be sure. Sure enough, on the Edge network (which might be the issue, might actually work on 3G which is very limited with AT&T it appears), the iPhone won't talk and do surfing at the same time. You get "Cellular data connections are not available during this call" as the message on your screen.
    So is this just an issue with the iPhone specific or is this just bad marketing on AT&T's part?

    This is possible when connected to AT&T's 3G network, which is not available in most rural areas. I do this often.
    http://www.wireless.att.com/coverageviewer/popUp_3g.jsp
    Verizon's 3G network has better coverage, but it is fast as AT&T's EDGE network.

  • I cannot use data and voice at the same time.

    I cannot use data and voice at the same time.
    I am on Wifi (connected) and at the same time I am on a voice call. when I switch to my RSS feed reader it does not sync it comes out with a message cannot connect to internet, I thought it is a problem with the feed reader application, IE 10 behaves the same I cannot browse when I am on a voice call.
    This is a very basic issue, am I missing something? Please help.
    My Model is lumia 820 with the latest portico update.
    TIA
    Sandeep

    I am aware that packet data via EDGE and voice cannot happen at the same time, surprisingly when I am on voice call I cannot connect to internet via Wifi too

Maybe you are looking for

  • Making a Game on a Java Applet

    I want to write an applet for a game, like a card game or something, could you tell me where i should look for libraries or code examples for linking two or more users together for the game. I can write the game code easy enough it the linking togeth

  • Which view contains the exact sql statement

    Dear All, Developers have used bind variables in their sql inside their applications (for example: SELECT Name FROM Employee WHERE EmployeeID =:empno) This bind variable is supplied a value within the application. I wanted to know which data dictiona

  • I can't open a file, it appears a new page: "buscar en historial y marcadores"

    I want to see a pictures in a website, but I can not open that file, instead , it change to a blocked page. can i speak in spanish?

  • Can I use SPRO to configure SAP CRM web based application.

    Hi,    I am just 5 days old in SAP solutions. I want to know if I can use SPRO (IMG) to configure master data and business processes pertaining to SAP CRM web based solution ? Regards, Diptendu.

  • FM/BADI to create INFORECORD

    Hi all, I've searched a lot, but I'm unable to create an INFORECORD. When creating a quotation, I need to check if the materials have an inforecord, if they don't have an inforecord I have to create it. I'm using ME_PURCHDOC_POSTED badi to input my c