Commit after Delete and Merge

Hi,
I have a Synchronous process which deletes data from the table and then invokes an Asynchronous process that merges data into the table.
We noticed that it takes few minutes to finish the merge and in those few minutes the table is empty as the data was deleted earlier.
I want to know if there is a way I can commit at the very end after the merge is done so the table is not empty after the delete is done....Or is there any other way of doing this...
Thanks and appreciate your help
-Prapoorna

Do it in one BPEL process, and ensure that you are using an XA datasource. The sync process is treated as a separte transaction hence is deleted at the end. If you bring it in line with the BPEL process the the merge and delete will work together in one transaction.
cheers
James

Similar Messages

  • Commit after deleting records

    Hi All,
    I wrote one delete command .This command deletes 20 millions of records.But I want to give "commit" after deleting every 100000 records. How to give "commit" for this requirement.
    please guide me.
    Thank you.

    Depends on your delete statement.
    Sometime you can group the delets into logical units.
    Compare and consider the following three approaches.
    1) This deletes all data from all previous months.Delete from myTable where insertDate < trunc(sysdate,'mm'))
    2) Delete each month separately and commit in between.Delete from myTable where insertDate < trunc(sysdate,'year'));
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),1) -- "january"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),2) -- "February"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),3) -- "March"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    Delete from myTable
    where insertDate >= trunc(sysdate,'year'))
    and insdate < add_months(trunc(sysdate,'year'),12) -- "December"
    and insdate < trunc(sysdate,'mm')) -- do not delete too much!
    commit;
    3) Delete based on ID and logical groups
    Select min(id), max(id) into v_min, v_max
    from myTable where insertDate < trunc(sysdate,'mm'));
    for i in 1..trunc(v_max-v_min)/100000)+1 loop
      delete from myTable
      where id >= v_min+((i-1)*100000)
      and id < v_min+(i*100000)
      and id <= v_max
      and insertDate < trunc(sysdate,'mm')) -- this line is not really needed, maybe remove it depending on the execution plan.
      commit;
    end loop;

  • My mac mail on just keeps sending the same messages even after deleted and shows thousands of emails supposed to be coming in

    My mac mail on just keeps sending the same messages even after deleted and shows thousands of emails supposed to be coming in

    If you have a backup, you can restore the e-mails. Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J.  When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Library/Mail/V2.
    Thanks to leonie for some information contained in this.

  • How can I re-use my ePrint email address after deleting and re-adding ENVY 110 print services?

    I recently had to delete and re-add my ENVY 110 series printer (D411c) to ePrint in an attempt  to solve a Web Services connectivity problem, and now I cannot re-use my original ePrint email address.  Is there a way to reset the address or am I stuck with a new one?

    You are stuck with the new one.  The old one will be released for use after 6 months.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Shortcut reappears after delete and restart

    I have this last Icon/shortcut to a webpage Carbon CXHD pro which come back everytime I restart my phone after deleting it. This has survived all my software full updates as well from the time of IOS 6 onwards. I am annoyed where it is sitting the backup which it pushes back to homescreen even after deliberate attempts to delete it. Any one have any solution.

    It was jailbroken at some point in the past. That's what causes this problem to begin with. As you have learned, it is not always possible to remove all traces of a jailbreak.
    The only thing we can suggest is to put the phone in DFU mode and restore it. Do NOT restore your backup as it may be what's causing your problem now. You will have to re-build it from scratch. That's the best case scenario.

  • Yosemite booting fails after erasing and merging bootcamp

    I have a MBP 15' retina. I had dual system: mac and windows, but windows failed after upgrading to to Yosemite for obvious reasons so I left it there. Yesterday, I decided to erase my bootcamp and merge it to my mac partition. Everything worked out smoothly as long as I did not reboot. After reboot, Yosemite failed. Here are the symptoms:
    Please assist. Thanks

    Click on Utilities -> Terminal and post the output of the following Terminal commands. In Recovery console you have to switch between Terminal and Safari.
    diskutil list
    diskutil cs list
    gpt -vv -r show /dev/disk0
    fdisk /dev/disk0

  • After deleting and adding Yahoo account, there is no Default Account field for Calendar on iPhone

    I read the tips to fix the synch problem with Yahoo Calendar.  A step says to make sure the Default Account is set to a Yahoo one.  When I deleted and added the Yahoo account according to instructions then went to the Calendar section of Settings on the iPhone there is no Default Account field any longer.  I am running iOS 6.1.3 on iPhone 4s.  As a result when selecting the Calendar app and tap Calendars there is no Yahoo calendar listed only iCloud and Facebook.

    I saw a temporary Yahoo calndear for iOS work-around in another Apple Support Forum post, and it does work:
    Re: I sync my iPhone 4S with Yahoo calendar. Since last softeware update (6.1.3) They won't sync. What happened?     May 9, 2013 2:40 PM    (in response to mus4utoo) 
    I have found a workaround thats working for me until they get this yahoo calendar thing solved. I logged into my yahoo account on my pc and opened up the calendar. There is a down arrow next to the name of the yahoo calendar you wish to have on you iDevice. Click the down arrow and select share.Go to "sharing and permissions" and your email address and click save. You will then receive an email with two links. Open the email on your iDevice and and hold down on the second link and select copy. This is the link that says add to outlook. Then on your iDevice go to settings-mail-add account-other-add subscribed calendar. Hold down on the server field and tap paste. Then tap next. In the Description box type the name of your calendar and then tap save. Leave all the other fields alone. You can repeat this for all the yahoo calendars you wish to view on your iDevice. Open your iDevice calendar app, tap the calendar tab and your calendar(s) should now appear under Subscribed. This will allow your view your yahoo calendar(s) on your iDevice. Now if you wish to add appointments to your yahoo calendar open safari and go to m.yahoo.com tap the three bars in the upper left corner of the mobile web page and tap sign in. Use your yahoo id and password to sign in. After signing in tap the three bars in the upper left hand corner again and scroll down and tap more. Tap Calendar. At the bottom of the screen tap the box with the arrow in it and select at to home screen. Name it if you like and then tap add. Now every time you want add an appointment to any of your yahoo calendars you can open the link on your home screen. It will remember your log in. If you wish to view all of your calendars, including the yahoo calendars open the native calendar app. This workaround requires the use of two methods one for entry one for viewing, but at least you can access all of your calendars. You can also view your yahoo calendar(s) from the home page link but I dont like the layout on the yahoo mobile page so I just use that for entry. Hope this helps until they figure this one out.
    iPhone 4S,  iOS 6.1.3

  • Commit after delete

    I have a job that process data for last 7 days. Most of data(90%) is processed in first iteration(first day) after what i delete processed data and do a commit. What is strange is that job continues to work slow as if there is same amount of data like there was before deleting. How to improve performances?

    How to improve performances?Ideally you would trace (with wait events) the session that executes your job and look at the TKPROF report to identify where time is spent and what are the performance bottlenecks in code.
    In order to do so:
    SQL> alter session set events '10046 trace name context forever, level 12'
      2  /
    Session altered.
    SQL> -- run your job code here
    SQL> -- exit when it's finished
    SQL> It will produce a .trc file in your udump directory, that you can make 'readable' by 'tkproffing' it.
    A DBA could help you with this.
    Many threads regarding tuning and interpreting and explanations on tkprof reports can be found here:
    http://asktom.oracle.com/pls/asktom/asktom.search?p_string=%2210046%22
    You can find more information regarding TRACE/TKPROF in the Oracle Performance Tuning Guide:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/toc.htm
    You also might want to read these informative threads that will give you more hints regarding tuning/diagnosing performance problems:
    HOW TO: Post a SQL statement tuning request - template posting
    When your query takes too long ...
    And then you post the queries from the process and their execution plans here, as well as your database version.
    But a trace will give you much more information.

  • Motorola Services Contact re-appears after delete and multiple times

    I have owned this Motorola Droid 3 for a week or so and I am having problems with Contacts. I have successful syncs with gmail, but I don't know why some contacts continue to reappear and continue to be added in spite of deleting them and in spite of already having a contact with the same name. When one edits a contact I want which is in gmail, scrolling the edit page reveals multiple instances of the same contact labeled "Motorola Services Contac". Then if I delete this contact, after a couple of hours, the deleted contact re-appears with multiple instances again. The multiple instances continue to grow and eventually the contact application boggs down. Can anyone help?

    My gmail account contacts are the ones I want. The "Motorola Services contacts" list include the gmail ones, and ones that have been deleted. When I delete all the contacts in the phone by using an App (MyPhoneExplorer), the phone contact list ends up being the precise list that's in gmail, the list I want. A few hours later the "Motorola Services contact" list reappears. Apparently this happens every few hours, as you see repeated instances of all the "Motorola Services contacts" joined as I see by editing a contact. It is as the "Motorola Services contacts" are somewhere in the phone memory. My Backup Assistant list in verizon is empty. I guess I will visit the Verizon rep as I have cleared data areas in the sync services, and any other attempt I make does not cure this problem for me....  Al

  • Nomad MuVo will not play after deleting and re-installing so

    I hope this question has not been answered anywhere in the forums and I have missed it. If so, I am sorry. I have looked and looked at all the discussions, and nobody's advice has been able to fix my player yet. This is the second MuVo I've had that has had this problem. I deleted songs from my player, but now when I try to play the new songs I put on the player, I get nada. I press the play button, and as soon as I let go of it, it turns red. Won't play. The songs are definitely on the player, and I can play them on my computer, but not through the MuVo. I have tried everything suggested on the Creative support site, and everything people have suggested through this forum - nothing works. Creative says my product has reached the "end of service" life and will not give me customer support. Might be time to buy an ipod, but I thought I would give this one more try. Please help!!

    Sorry, should have been more articulate in my description.
    During the installation of Livetype, after choosing the destination for livetype to be _Application support_ and starting the installation, the program goes up to 20% during the writing files procedure... and stops.
    Says Please try install again.

  • Event 4004, Error 9098. after deleting and recreating replication group

    I have my primary server replicating with 3 servers and 3 different replication groups across a WAN. I'm working through a hardware upgrade, and need to move my RG up one folder level now at one of the locations now that I have the new hardware in place.
    I've removed the RG in DFS manager,  I stopped the dfs service and deleted the DFSPrivate folder from both servers.
    Now when I recreate the RG, one folder level higher on the primary server, it replicates in AD/event log on both servers, but after about 7min I get the error 9098 on the primary, and a failure error on the secondary server.
    Replication is still working to other 2 servers, so I'm afraid to run the rmdir "D:\System Volume Information\DFSR" /s command in fears that it will mess up the other 2 RG's.
    Is there a better way to kickstart this new RG? is my only option to rebuild the DB? What does rebuilding do, just rebuild all the file indexes? will I need to also delete it on all the secondary servers? I have good backups of all the data, so I'm not too
    concerned about loosing data, just downtime, and long hours for me.
    I also tried creating a new folder on the secondary server, it seemed to get a little further, it created a new DFSPrivate folder, but still failed a short time later with the same 9098 error on the Primary. I know another option is to recreate the folder
    on both servers, copy data, and replicate, but I'd rather not if I don't have to.

    Followup for anyone in the same boat. on my existing RG, I purged the dfsr folder from both servers(3 servers in total), with the dfs replications service stopped, and each leg of the connecting disabled and purged the DFSPrivate directories, I then restarted
    the service, and enabled the replication for each connection, replication connected on each server but did not start replicating, I had to restart the dfsr service on each server again, and manually set the primary server, both were set to NO when I checked
    membership status. No data loss in this process, it all worked very slick, the initial replication finished in about 2hrs.
    I was then able to recreate the connection for my 2nd replication group that started all of this, it fired right off, no more 9098 errors since both dfsr databases were re-created.

  • Java option icon not displaying AND Java not working, even after deleting and re-installing Java

    Hi, I have uninstalled and re-installed Java. When I look at Add-ons, it shows Java Platform SE7 U17 10.17.2.2 and Java deployment Toolkit 7.0.17… 10.17.2.2 enabled. But it is not working – and I do not see the Firefox plugin to allow occasional use of Java.
    One useful thread which discusses several difficulties in detail is
    https://support.mozilla.org/en-US/questions/944956?esab=a&as=aaq
    I tried to follow scrumpyjoe’s advice in this thread:
    “This fixed it for me (32 bit windows) after installing Version 7 Update 10, but not seeing the plugin:
    1) start regedit
    2) navigate to HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins
    3) right click, add New Key, name: @java.com/JavaPlugin,version=10.xx.xx
    4) click on it, then right click and add new string value, name: path
    5) right click, Modify, change value data to: C:\Program Files\Java\jre7\bin\plugin2\npjp2.dll [check if this is the right dll for your setup]
    6) exit regedit
    7) start FF”
    - but (unless I have made a mistake) it has not resolved my problem.
    What can I try next, please ?
    Background:
    Asus NX90jq
    Intel core I7
    700GB free disk space
    16384Mbytes memory
    O/S: Windows 7 Ultimate, 64-bit
    UPDATE 2apr13
    I have now unistalled and re-installed Firefox 20.0. restored preferences etc. using MozBackup, and Java Platform and Java Toolkit10.17.2.2. both show as working Add-ons - BUT STILL NO JAVA AND STILL NO RED ICON IN TOOLBAR. What is going on, please ?

    I don't understand any of these replies. How do I get Java to run for Pogo.com? I had no problems a week ago. I do not have the red icon. I am not a programer so keep it simple. I am a 59 year old speech therapist.
    [email protected] HELLLLLLP

  • Google Calendars not showing up on iOS 7 after deletion and re-entering of information

    This issue started when I was trying to get a shared Google calendar on my device. When I deleted the Gmail account completely and re-entered information, none of the Google calendars would show up. The calendar sharing is enabled from the Google account. I know that for sure because I can see them on Calendar on my mac. CalDAV does not work.
    iPhone 5c
    iOS 7.1.2

    I had a similar problem as you and went through the different suggestions with no success. What did it for me in the end was a simple "reset all settings" under Settings app -> General -> Reset. You will have to reconfigure a few things e.g. wifi password, wallpaper setting, ringtone etc; but you will regain access to your calendar sync.
    (I updated from iPad 2 with iOS 6.1 to iPad Air, used the back up and restore option. The old gmail calendar (which used the exchange protocol) appeared but I soon realised that all the new events I added since then were not synced to the iPad air, i.e. the iPad Air is only displaying all the calendar items that were already there in the iPad 2 but it's not actually synced to the Google server. I then deleted the exchange account altogether (as I realised Google stopped supporting the exchange protocol in new devices), and tried to set up a new CalDAV account via the instructions by Google, and this is how I ran into "no calendar showing" situation)

  • Infinity blade 3 was installed but later after deleting and reinstalling it on my iphone 3gs it wont install ??? plz help, infinity blade 3 was installed but later after deleting and reinstalling it on my iphone 3gs it wont install ??? plz help

    help

    I realize that the boot is failing at the init stage[1].
    Observing this behavior, I realize that it's something to do with systemd. Emergency mode is a feature of Systemd.[2]
    Systemd was trying to start some processes, but they failed to start because some timed out and some lacked their dependencies. I guess the "A start job is running for..." is an indication that the process is stalling during init and Systemd is trying to jump start it, or something like that.
    And I am coming to realize that the error messages are saying something is wrong with /home, ethernet, and wireless.
    This thread[3], as well as the one linked in it, has given me a clue. Systemd fails when fstab can't detect a partition it expects.
    My research tells me it is common to drop into emergency mode after an issue with fstab.[2] After editing, I should "run systemctl daemon-reload to let systemd refresh its view of it."
    Which of course leads me to the Arch fstab wiki entry, as well as the manual.
    This is the output of cat /etc/fstab
    # <file system> <dir> <type> <options><dump><pass>
    /dev/sda2 LABEL=Arch
    UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext3 rw,relatime,data=ordered 0 1
    # /dev/sda4 LABEL=homefolder
    UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /home ext4 rw,relatime,data=ordered 0 2
    # /dev/sda1
    UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx none swap defaults 0 0
    And /home is still on /dev/sda4 in my /etc/fstab. So perhaps I'll remove /home from fstab and call it good.
    Edited with nano and removed the second line. Then systemctl daemon-reload. Reboot.
    Getty started!
    Marking this as solved.
    [1] https://wiki.archlinux.org/index.php/Arch_Boot_Process
    [2] http://freedesktop.org/wiki/Software/systemd/Debugging/
    [3] https://bbs.archlinux.org/viewtopic.php … 4#p1198194
    Last edited by ingegnue (2014-10-01 16:28:12)

  • Photoshop CC will not launch after deleting and re-installing Lightroom

    Yesterday, I contacted Adobe support because I could not get my Lightroom trial version to convert to my CC subsciption. I was told to delete the Lightroom app by dragging it to the trash and re-installing. I did this, and it fixed my problem with Lightroom, but now my Photoshop CC will not launch. I am on Mac OS Mountain Lion. I have tried launching from the dock and from the finder both.

    Reinstall the original 5.2 and forget the CC version for now. It's exactly the same piece of software. What you did get was a second license, useful if you have more than two machines, but completely redundant if you haven't.
    The situation is different when Lr 6 comes out. You'll get that as part of CC and don't need to purchase the upgrade. So at that point you can just install CC and leave 5.x where it is.

Maybe you are looking for