Long running updates and lock escalation

I have a question about locking when updating tables from SAP on a MSSQL2005 database.
Once a month we have a report for updating several rows (1 mio) on a special ledger table.
This report is taken the update as one transaction because of the possibility for rolling back. It is ledger data so we want to keep the update safe.
When running this report the online users has access to the same table. The users can make INSERT into the same table without any problems.
But after 15-20 minutes runtime the whole table is locked by a table lock instead of row locks. Therefore the users goes into a "hanging" situations when trying to make INSERT into the table. The locks are held until our program has finished.
Is there any way to raise the level of row locking escalation on a MSSQL2005 database?
I have found the trace flag 1211 and 1224 but is it safe setting this on a production database?

Hii,,
I would suggest you to run the report when the users are not there as it is related to ledger table.
just schedule it at the low peak times.
Also the trace flags that you have mentioned can be harmful also
so i would better recommend not to use it.
Please refer to the link
http://blogs.msdn.com/sqlserverstorageengine/archive/2006/05/17/Lock-escalation.aspx
Also if u want to activate these traces I would recommend to talk to SAP before that
Rohit

Similar Messages

  • Call long running process and return immediately

    Hi everyone,
    Here' my problem : I am calling an onDemand application process when clicking on a button. It's a very long running process; and while waiting for the response my browser stops responding (white page).
    So, is there a way to call a process and return immediately to the javascript. The process will set a field to a given value when it finishes. In javascript side, I can then check in a while boucle the value of this field to know if the process has ended.But I dont know how to return just after the application process call ...
    Thanks and best regards,
    Othman

    I presume that you can achieve that by means of a batch job.
    You can use an automatic page reload every X seconds until a certain "flag" (or similar mechanism) changes state and check it in a before header process. In the meanwhile you can display some animated GIF for instance.
    Once the processing is completed you remove the reload timer from the header or you branch to a different page using a programmatic technique like procedure owa_util.redirect_url.
    Bye,
    Flavio
    http://www.oraclequirks.blogspot.com/search/label/Apex

  • Running slow and locking up, additional tests for hd, memory?

    My iBook has slowed to a crawl recently, and I suspect hardware problems, maybe the hard drive or memory. I've tried all hte usual things (disk repair, fix permissions, reinstalling the last update, running in safe mode) but the computer runs slow and at times just stops -- earlier today it stopped responding or refreshing anythign but the spining ball for >20 min, at which point I did a hard reboot, and it took it almost another 20 minutes to reboot. I've run the hardware tests from the utility disk a few times but nothing shows up. The only thing of note in the system log is that lookupd seems to die and restart pretty often, and around when it locked up earier today there are lots of messages about "IOATAController device blocking bus."

    It took it more than 10 minutes to boot and for me to log in this time, and a few more minutes to display the contents of the hard drive, but when I finally got Disk Utility up, it still said SMART Status: verified. However I hit the "verify disk" button, and the computer has been locked up for about 10 minutes now with nothing more than 'Verifying volume "Macintosh HD"' in the status window and nothing but the spinning beach ball when I try to do anything else. I'll let it go and see if it ever recovers.
    I have a recent bootable clone, but even small file writes can take an hour now, so I can't imagine a complete copy ever finishing. After more research on the message "IOATAController device blocking bus" I find that a few people who get that are able to recover by using disk utility from the install disk and doing a disk repair, but most end up with their hard drive needing to be replaced. I've done the first a few times now with no improvement, so I'm guessing I'm headed for the second. The local Apple Store had no more appointments available today but I'm going to try and get in tomorrow.

  • 7.1.1 Update and Locked Screen Stopwatch

    After I completed the 7.1.1 update, when I start a stopwatch and lock my phone, it will no longer show the time remaining on the locked screen when wake my phone up. 
    This was working properly before the update.

    [UPDATE]
    Sorry about misleading you and anyone on this forum.  I should have double checked what was really wrong with my phone before posting this.  It was not the stopwatch that had a problem of not showing on the lock screen, but it was the Timer that did not show on the lock screen after the 7.1.1 update.  After I did a reboot (shutting the device of and power it back on), this corrected the issue and now I see the Timer on the lock screen.

  • I just took my I-Pod touch to a computer repair shop to replace cracked screen and now am told main part of I-Pod needs to be replaced.volume button no longer works, headphone and locking device also no longer working. Even though it all worked when given

    I just took my I-Pod touch to a computer repair shop to replace a cracked screen. Told it need the main part to it. They said the volume button, headphone and locking part no longer worked. Told me to pick it up. When I gave it to them all components were working. Said because they weren't able to fix it there was no charge. Don't understand this.

    Probably when you dropped, kicked, smashed, threw, or whatever you did to break your screen it also damaged the logic board and the connections to the volume button, headphone jack and sleep button. Happens all the time. Apparently the shop you selected to work on it is not very good so take them off your shopping list.
    Then go buy a 5th Generation iPod Touch.

  • Long-running transactions and the performance penalty

    If I change the orch or scope Transaction Type to "Long Running" and do not create any other transaction scopes inside, I'm getting this warning:
    warning X4018: Performance Warning: marking service '***' as a longrunning transaction is not necessary and incurs the performance penalty of an extra commit
    I didn't find any description of such penalties.
    So my questions to gurus:
    Does it create some additional persistence point(s) / commit(s) in LR orchestration/scope?
    Where are these persistence points happen, especially in LR orchestration?
    Leonid Ganeline [BizTalk MVP] BizTalk Development Architecture

    The wording may make it sound so but IMHO, if during the build of an orchestration we get carried away with scope shapes we end up with more persistence points which do affect the performance so one additional should not make soo much of a difference. It
    may have been put because of end-user feed back where people may have opted for long running transactions without realizing about performance overheads and in subsequent performance optimization sessions with Microsoft put it on the product enhancement list
    as "provide us with an indication if we're to incurr performance penalties". A lot of people design orchestration like they write code (not saying that is a bad thing) where they use the scope shape along the lines of a try catch block and what with
    Microsoft marketing Long Running Transactions/Compensation blocks as USP's for BizTalk, people did get carried away into using them without understanding the implications.
    Not saying that there is no additional persistence points added but just wondering if adding one is sufficient to warrant the warning. But if I nest enough scope shapes and mark them all as long-running, they may add up.
    So when I looked at things other than persistence points, I tried to think on how one might implement the long running transaction (nested, incorporating atomic, etc), would you be able to leverage the .Net transaction object (something the pipeline
    use and execute under) or would that model not handle the complexities of the Long Running Transaction which by very definiton span across days/months and keeping .Net Transaction objects active or serialization/de-serialization into operating context will
    cause more issues.
    Regards.

  • Long Running SQL and ORDS Spawns Multiple Database Sessions

    Hi all.
    We have a strange situation when accessing a long running SQL Report (a single APEX Page).
    The SQL takes about 15 mins to run but when I monitor what database sessions are spawned by the APEX Listener, I see multiple sessions all executing the same SQL. It appears that after 6 minutes, the APEX Listener spawns a new database session to execute the same SQL.
    Has anyone seen this before and if so, is there a key setting I am missing as I don't want this to happen. I am new to the APEX Listener and WebLogic so apologies if this is the way it's meant to work but it seems odd that after a certain amount of time (6 minutes in my case) a new database session is spawned to do the same work.
    We are running:
    WebLogic: 10.3.0.6
    APEX_LISTENER_VERSION 2.0.0.354.17.06
    Datadate: 11.2.0.3.0 Production
    APEX: 4.2.1.00.08
    Cheers for any help.
    Duncs

    Hi Duncan,
    With all respect, you should please rethink your interface.  I would never consider writing a Web application with a request that knowingly takes 15 minutes to return the results.  You can consider doing this asynchronously via DBMS_SCHEDULER and then alerting the user (via email, perhaps) that their results are ready.  Or if you can precompute this in advance, consider using materialized views so that the user's response time is sub-second.
    In an era where the patience of the average end-user is measured in single-digit seconds, it is impractical to ever expect an end-user to wait 15 minutes for their resultant Web page.
    Joel

  • Long running Update-Statement

    I'm having a update-Statement that is running in Version 1.1 more than 30 minutes, but in Version 1.0 and SQL-Plus only 30 seconds.
    SQL-Developer is running on WinXP
    Oracle is Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    and this was the statement (witch is updating 2830 rows):
    update hist_person p1
    set letzte_vermittlung = (select letzte_vermittlung from hist_person p2
    where p2.datum = add_months(date '2006-01-01',-1)
    and p2.p_nr = p1.p_nr)
    where p1.datum = date '2006-01-01'
    and p1.p_nr in (select aktmon.p_nr
    from hist_person vormon, hist_person aktmon
    where aktmon.datum = date '2006-01-01'
    and vormon.datum = add_months(date '2006-01-01',-1)
    and vormon.p_nr = aktmon.p_nr
    and vormon.letzte_vermittlung > nvl(aktmon.letzte_vermittlung, date '1900-01-01'));

    Mmm, read up on the "NLS_COMP set to ANSI" threads.
    Try setting NLS_COMP to binary for the session, then run your update and see if that fixes the issue. If so, the forthcoming patch will probably fix the issue, else get back here...
    K.

  • Why does it take so long to update and then tell me after it's done that it failed? 5 hours.

    I processed the latest update and after 5 hours, it said "done." When I unplugged, though, I was informed that it failed to backup. I plugged it back in and the process started from scratch. Why wouldn't it inform me that it wasn't working early on? Frustrated per the usual.

    You just happened to run into an bug produced by your Apple TV and your Internet connection. Even though they don't want you to switch off they device disconnect your Apple TV from your power chord. When it restarts you can use your Apple TV like before. Often a day later the updates is done in less than 10 minutes. I happened to run into this problem a few times since I have my Apple TV 3

  • Power book runs slow and locks up

    My powerbook G4 runs slow and then locks up and I have to force quit. A window pops up and say something to the effect that:
    " a script is runing in this movie causing Macromedia Flash to run slow. If I dont turn it off it will get worst."
    I am not runing a movie (?) nor a script that I know of. What can I do?

    Welcome to the Apple discussions.
    One place to start is to load the activity monitor, on your hard disk in applications/utilities, look at active tasks, and see what's running.

  • Why do I no longer have keyboard and lock click sounds?

    Sometime in the last few weeks, maybe since 7.1 I can't be sure, I lost my keybaord click and lock sound. They are both turned on in the contol area they just don't work. Any ideas? i have tried powering down. Also, turned off the sounds in the control panel and turning them back on. I have not restored although that might be next. Any ideas would be welcome. It's not serious, just annoying.

    I had this problem too and it drove me crazy.  I have iPhone 5s, iOS 7.1.1.   Keyboard clicks and notification alerts (tweets!) went silent about two weeks ago and I could not figure it out.  Missed a lot of calls, notifications, etc.  I tried all that was being posted about settings here on the forum and one poster somewhere mentioned a MUTE button on an iPhone4.  Long story short...come to find out there is a MUTE button on the left side top of my iPhone 5s.  I didn't even know it was there.  Apparently, it can easily be clicked into MUTE mode when sliding into a pocket or a bag depending on the type of cover you have. 
    Anyway, I flipped that switch and all is back to normal.  Hope the info helps someone.

  • Apps take very long to update and with not much progress

    Hi, i have tried to download some new apps and update some of my apps with my itouch, but it takes super long to update without success. Tried cancelling and installing again, tried off-ing and on-ing and even resetting the itouch but to no avail.
    Even attempted to update through itunes but once again, it takes super long and super slow and end up with connection timed out. Please advise. Thanks.

    Craig,
    Thanks for the tip. I'll call my customer to make him try it. I will know
    in a couple of days.
    Abel Julien
    > My guess is that you are all of a sudden pulling info from a remote replica.
    > Enabling the option "Always Evaluate Referals" in your launcher configuration
    > may help. This will force ZEN to try and ensure it is using the closest
    > replica.
    >
    > Normally this is set to off since it does add a little overhead, but if you
    > are accidentlally crossing some slow links, it could be a real help.
    >
    > [email protected] wrote:
    >
    > > Hi,
    > >
    > > I have ZfD 3.2 and I use NAL explorer to find and deliver applications. It
    > > works just fine most of the time but, from time to time, it can take
    > > extremely long to find the applications (15-30 minutes).
    > >
    > > This installation is in a large tree with containers spread all over a WAN
    > > and I have the local OU with the option "set as top of configuration tree"
    > > checked. I have to use groups to associate applications to the users but
    > > they are in groups don't expand the local partition.
    > >
    > > I have not been able to find a cause/effect relationship. I get it working
    > > fine and wrong in the very same workstation during the same day. Also,
    > > there seems to be no different among users.
    > >
    > > Any suggestions? It would be interesting to be able to track what the hell
    > > the application launcher is doing when it does not find the applications.
    > >
    > > Thanks
    > >
    > > Abel Julien
    >
    > --
    > Craig Wilson
    > CNE3, 4, 5 - MCSE - CCNA
    > NSC Sysop (http://support.novell.com/forums/)
    >
    > Tech Writer - http://www.ithowto.com
    > (I Peter 4:10)
    >
    >

  • Why do i have a long running script and how to get rid of it ????

    My computor stalls with twc not responding due to long running script. Just rebooted  back to factory default.

    mrswalt wrote:
    It doesn't say what script. But when I go to shut down there is a window icon on screen BUT DOES NOT say which window.
    Plus just bought a hp deskjet 2540 printer that will not print. HP info person is of NO help.
    This will be hard since we have no scripts for myself or others to look at to backtrack where the problem is coming from?
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • HT5567 Tried several times to run update and it always comes back attempt failed. Now what?

    Tried running update. Keeps coming back attempt failed. now what?

    See these threads and pages about searchqu/searchnu:
    *[[/questions/816181]]
    *[[/questions/790833]]
    *[[/questions/921690]]
    *http://bit.ly/searchqutoolbar
    *http://www.ilivid.com/faq.htm#8
    *http://www.beyourownit.com/forum/security-malware-issues/4758-searchnu-searchqu.html

  • My mac is running slow and locking up

    My laptop recently started running slowing and giving me the colored circle to indicate it is thinking. I didn't think Mac's got viruses, but this feels like one. It slow when I type and search the internet.

    Back up all data immediately as your boot drive may be failing.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU|I/O' | tail | open -ef
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the window will be empty. If you get output like this:
    kernel[0] <Debug>: disk0s2: I/O error
    the boot drive is failing, or there's some other hardware fault in the storage subsystem.
    If you get output like this:
    kernel[0] <Debug>: ** GPU Debug Info Start **
    kernel[0] <Debug>: ** GPU Debug Info End **
    there's a fault in the graphics processor or logic board. The two kinds of output are not mutually exclusive, but if you get both, a logic-board fault is likely.

Maybe you are looking for

  • Lan set up on powerbook 520c

    Hi My daughter has a Powerbook 520c which we would like to connect to my lan network running Linux and winxp (if at all possible). She has a farallon adaptor to connect the cable but we have no idea where to start or even if we have the software inst

  • Multiple accounts in ichat- can you make all windows come up

    If you have more than one account using ichat (mobile me, and aim account, etc), and you close the buddy lists. Whenever you click on the ichat icon in the dock, only one buddy list comes back up. Is there a way to make all of the active ones come up

  • Srw.run_report dropping job id?

    Hi, Looking at the source of the SRW package it looks like it drops any error messages and job id:s etc when the submitting fails (e.g. a report trigger fails). How have you dealt with displaying the original error message from the report?

  • Restore Content from 3200 to 6670 fails, error mes...

    Hello, I lost my Nokia 3200, but fortunately 2 months ago I made a backup with the nokia content copier, (PC suite 6.80.20),(nokia content copier 3.0),Windows XP Sp2, I have the files .nfc and .nbc. One friend of mine let me a 6670 while im deciding

  • Error when trying to access keynote presentation saved as ppt

    When I export my keynote presentation as a power point (.ppt), I get an error message that states "there was an error accessing Macintosh HD:Users:" and then the rest of the file path. I am trying to save the file onto the desktop but it doesn't matt