Deadlock and lock

Dears,
I have a situation where from time to time there is an enq : TX- row lock contention in the database and many other sessions are blocked until the DBA kills the blocked session. From time to time I have also a deadlock situations that are cleared automatically by Oracle.
But the Oracle Entreprise manager is showing in one situation the enq : TX- row lock contention and it mentions also this *"A deadlock has been detected in the blocked sessions"*
Does this mean that both a deadlock and a lock happens at the same time?
If no, is this situation possible?
Regards

Hi,
The Lock:Deadlock event class is produced when an attempt to acquire a lock is canceled because the attempt was part of a deadlock and was chosen as the deadlock victim.
Refer to below links for resolution
enq: TX - row lock contention
Tuning row lock contention wait events
HTH
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/

Similar Messages

  • Microsoft sql client deadlocked on lock resources with another process

    Hi
    I wrote a forecasting report for a customer which creates an excel spreadsheet with the information
    Depending on how they run the report it can take between 5 to 15 minutes to run
    We have just upgraded the customer to SAP 8.8 PL10 and Microsoft SQL Server 2008 and they seem to be getting an error -
    Microsoft sql client deadlocked on lock resources with another process .......
    The error seems intermittent, they may get the error once and the next time they run it, it is fine.
    I have never seen this error before and they never had it before on SAP 2005
    Can anyone suggest anything please?
    Thanks
    Regards Andy

    Hi Andy,
    I was having the same problem. I'm gonna tell you what i did.
    My query usually takes from 10 to 15 minutes to show results. That long time also block all transaction in the database.
    I was reading about some techniques to improve queries performance. Some of the tips are:
    1. Review indexes in the table you are querying
    2. Use Views
    3. Avoid cursors
    4. Archive old data
    5. Use the correct transaction isolation level
    The last one, was the tip that helped me to avoid the block in the database.
    By default the isolation level in SQL Server is Read Commited, that explains why the database block some transactions. For example, if you have a query that take data from JDT1 table and it takes several minutes to show the results, other transactions that try to write in the same table should be blocked if they arrive at the same time of the first query.
    To solve this, you can make your query in a transaction with Snapshot isolation level. It means that your select query will take a snapshot of the data without blocking any other transaction.
    Here is an example how you can make it. The difference is that you may use ADO.NET connection replacing DI API Connection:
    oConnection = OK1.Generic.Helpers.setConnection(server, password, userID, db); // You have to set anyway your sqlconnection
                        if (oConnection.State == ConnectionState.Open)
                            oCommand = new SqlCommand();
                            oCommand.Connection = oConnection;
                            oCommand.CommandTimeout = System.Convert.ToInt32(timeOut);
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION ON";
                            oCommand.ExecuteNonQuery();
                            sqlTran1 = oConnection.BeginTransaction(IsolationLevel.Snapshot);
                            oCommand.CommandText = query;
                            oCommand.Transaction = sqlTran1;
                            oCommand.ExecuteNonQuery();
                            sqlTran1.Commit();
                            oCommand.CommandText = "ALTER DATABASE " + db + " SET ALLOW_SNAPSHOT_ISOLATION OFF";
                            oCommand.ExecuteNonQuery();
                            if (oConnection.State == ConnectionState.Open)
                                oConnection.Close();
    In this example I write the data to show in the report in other table, then the report takes the data from that table.
    I hope it will be helpful for you.
    Regards,
    Juan Camilo

  • Transaction (Process ID 477) was deadlocked on {lock} resources

    hi !!!
    Has anyone encountered the following error:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver][SQLServer]Transaction (Process ID 477) was deadlocked on {lock} resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    My prgram contains many thread which Update the database, the same table but different rows.
    Thanks and Regards,

    This problem relates to the Microsoft SQLServer, the server has decided to decline the request from that instance due to an internal deadlock issue. Your instances request was arbitrarily chosen as the one to terminate. So the SQLServer sent an error status back that would have been passed on thru the ODBC bridge to the JVM and then to your application.
    How you want to handle this event within your app is up to you.

  • Transaction (Process ID 112) was deadlocked on lock resources

    i got a error when i run the ssis,how to fix it.
    Transaction (Process ID 112) was deadlocked on lock resources with another pr
                                   ocess and has been chosen as the deadlock victim

    i got a error when i run the ssis,how to fix it.
    Transaction (Process ID 112) was deadlocked on lock resources with another pr
                                   ocess and has been chosen as the deadlock victim
    Moderators please  move this to Databse engine forum.Can you see if this ooutput gives you deadlock graph.If you are on SQL server 2008 or later
    SELECT
    xed.value('@timestamp', 'datetime2(3)') as CreationDate,
    xed.query('.') AS XEvent
    FROM
    SELECT CAST([target_data] AS XML) AS TargetData
    FROM sys.dm_xe_session_targets AS st
    INNER JOIN sys.dm_xe_sessions AS s
    ON s.address = st.event_session_address
    WHERE s.name = N'system_health'
    AND st.target_name = N'ring_buffer'
    ) AS Data
    CROSS APPLY TargetData.nodes('RingBufferTarget/event[@name="xml_deadlock_report"]') AS XEventData (xed)
    ORDER BY CreationDate DESC
    --Got from Erland
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Deadlocked on lock resources

    Hi people!!
    Sometimes an error with this message happens in my process:
    1205 : 40001 : com.microsoft.sqlserver.jdbc.SQLSERVERException: Transaction (Process ID 102) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    The deadlock happens in my DB SNPS_WORK but it not happens every time
    Anybody knows what can i do with this?
    Ty!

    You can search which batch or process use the same table at the same time...
    Cause you may have 2 transactions launched on the same object and one of the 2 is blocked.
    Search in ODI if there is 2 executions on the same object at the same time...
    or search on your RDBMS log...

  • Deadlocked on lock resources error

    Forum,
    We have a system on 8.81 PL07. Intermittently they get the following messages when trying to add a sales quote or order:
    1). [Microsoft][SQL Native Client][SQL Server]Transaction 'Special Prices' (OSPP) (Process ID 123) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Again this has happened before but with a slightly different transaction name.
    Has anyone come across this before or have any suggestions?
    Regards,
    Juan

    HI Juan,
    check Microsoft sql client deadlocked on lock resources with another process if it will help.
    Thanks,
    Neetu

  • Find deadlock and send notification

    Hi World,
    I am looking for trigger to find out the deadlock and send an email to me to kill .
    can you help me please

    proora, the condition you are speaking about is probably just lock waited task rathter than a deadlock. A deadlock (simple form) is where task_A wants resources held by task_B and task_B want resources held by task_A. Since both process hold resouces needed by the other neighter will ever be able to get the resouces it needs to continue. Oracle will detect this situation and automatically choose a process and kill it so the other process can get the newly freed resources and complete. Oracle records when this occurs.
    Your situation is more highly a locked waited task caused by one session performing DML and not issueing a timely commit to release the locks. Oracle provides a lock tree script in the $ORACLE_HOME/rdbms/admin directly named something like utlltree.sql Numerous lock waited scripts have been posted on this and other forumns.
    The other possibility is that the entire database is hung, but this situation is unlikely. Oracle support provides articles on what to do in the case of a hung database.
    HTH -- Mark D Powell --

  • Crashes and Lock-ups

    I have been experiencing crashes and lock-ups in Premiere CS4.
    Last week I was running Encore to burn a DVD and when I noticed the processor was running flat out. I decided to run Core Temp to check the temperatures. At that point my encoding stopped and Encore locked up.
    Now I usually have Core Temp start when I load Windows. I have now disabled it and when I ran Premiere last night guess what? No lock-ups. Now this is early days but I suspect Core Temp might be the problem. I hope so. I'll report back with my findings when I have had more time to experiment.
    PS I'm running Windows XP SP3, Quad Core 6600 and 4Gb RAM
    Cheers,
    Tim

    You posted near the end of a similar thread in the CS5 forum.  I branched your post into a new topic and moved it here to this forum.  My post #1 was a request to be more careful where you post.
    If you want to see where you originally posted, click on the word "thread" in the phrase "Branched from an earlier thread", located at the top of the post list.
    -Jeff

  • Please help! Major problems (performan​ce and lock-ups) with brand new W520 with Intel 520 SSD

    My company primarily uses HP machines but I've been a long time IBM (now Lenovo) fan so I recently had IT purchase me a new Lenovo W520 (product ID 42763LU).
    Once the machine arrived I had them do the following:
    Remove the 500GB HDD and replace it with an Intel 520 series 240GB SSD
    Remove the optical drive and install the 500GB hard drive that came with the machine in the optical bay (with the bay adapter of course)
    Format both drives and put a preconfigured windows 7 64-bit image on the SSD
    A general summary of the system is the following:
    Intel i7-2860QM CPU
    8GB RAM
    NVIDIA Quadro 1000M
    Intel 520 240GB SSD (primary HDD) [SSDSC2CW240A3]
    Hitachi 500GB HDD (optical bay) [HTS727550A9E365]
    Intel Advanced-N 6205 network adapter
    TouchChip Fingerprint Scanner
    The machine was a few days delayed getting to me due to "hard drive driver issues" (that's what I was told). When I received the machine I immediately noticed that it was much slower than I expected (I have a custom built i5 HTPC at home running windows 7 on a Crucial SATA III SSD that I was comparing it to) and I was experiencing frequent hangs (ranging from 30 seconds to multiple minutes), super long boot times, general “slowness” at times, and occasional lock-ups. Since our "baseline" laptop here at work is the "equivalent" HP workstation my IT guys have been less than helpful in helping me to solve this issue. Being reasonably computer savvy I decided to try to try to fix the issue myself. I performed the following “troubleshooting” steps:
    1. One of the first issues (errors) I noticed in the event viewer was errors related to the optical drive. Clearly the image they installed on the machine was not from a machine with the same hardware configuration. So, I decided to just wipe the machine and perform a fresh install of windows 7 from the disks (well, USB). After spending multiple days installing windows, performing updates, making sure all the drivers were current, and installing only the critical software I need, I was disappointed to realize that although I fixed the optical drive errors the machine was still slow, was hanging, and locking up regularly.
    2. Removed the cover on the machine and removed/reinstalled the drive to verify it was secure.Everything looked good.
    3. Verified the latest firmware is installed on all my Intel hardware. Everything seemed up to date.
    4. I performed a number of troubleshooting steps like booting the machine with/without the battery, with/without the HDD in the optical bay, installed/removed from the docking station, etc. and none of these things helped (also a note – occasionally when running on the battery I was hearing a strange “buzz” or “static” sound coming from the area around the SSD).
    5. Next I did some internet research and learned quite a few things. First, it sounds like others have had similar problems with this machine and/or SSD combo and there were quite a few options suggested to “fix” these issues. The general consensus for troubleshooting steps were:
    5.1. Download and install the latest Intel chipset drivers and AHCI controller drivers (overwriting whatever windows installs during updates).This didn’t fix anything.
    5.2. Turn off PCI express link state power management in the power manager. This didn’t fix anything.
    5.3. Disable superfetch, prefetch, indexing, defragmentation, page file, system restore, and hibernate. A few of these were already disabled by windows so in those cases I just verified they were disabled in the services and application editor. These things may have slightly increased performance but did not fix the major hang/lockup issues I was having.
    5.4. I followed online steps to edit the registry to disable the PCI link power management by adding ports, adding the required variables, and setting them all to 0. This did seem to have fixed the hangs and/or lock-ups but the machine is still much slower than I would expect (boot times are still pretty slow and it does “stutter” when I’m doing more than one thing at a time. Also a note here – I have the Intel SSD toolbox installed and I noticed that it was giving me a warning for DIPM not being optimized. I made the mistake of clicking “Tune!” and then started having the hang/lock-up issues again. I went back into the registry and sure enough the PCI link power management variables for ports 0 and 1 were set back to 1. I set them back to 0 and the hangs have gone away. I will not be “tuning” the DIPM through the Intel SSD toolbox again…
    6. I also fixed a couple of other minor errors I was seeing in the event viewer by disabling benign services and/or making slight timeout modifications (I researched each issue on the internet to verify they were benign before I implemented any changes). These fixes didn't seem to do anything other than make some of the errors/warnings go away. So, the list of errors/warnings has become much smaller but I’m still getting the following (maybe an issue, maybe not?):
    Event ID 37 for every processor saying that they are in a reduced performance state for xx seconds since the last report
    Event ID 10002 - WLAN Extensibility Module has stopped
    Event ID 4001 - WLAN AutoConfig service has successfully stopped
    Event ID 27 – Intel® 82579LM Gigabit Network Connection link is disconnected
    I suspect the WLAN errors have something to do with windows fighting with the Lenovo access connection tools?
    7. Since the machine still seemed slow I downloaded the program AS SSD and checked the performance of the SSD. When I compared my performance numbers to the benchmark numbers I found onlineI was very surprised to discover that I’m getting about 50% of the performance that I should (values below are read/write).
    Seq: 262.11 / 188.32 (s/b 504.58 / 298.28) [MB/s]
    4K: 15.83 / 44.92 (s/b 21.70 / 62.60) [MB/s]
    4K-64Thrd: 165.23 / 154.46 (s/b 241.38 / 234.08) [MB/s]
    Acc.time: 0.218 / 0.294 (s/b .0186 / 0.208) [ms]
    Score: 207 / 208 (s/b 314 / 327)
    Overall Score: 533 (s/b 797)
    One more note - it seems like my cooling fan is running at a high speed almost all of the time. This is probably one of my power settings (I think I have it set for max performance) but it's even doing this when there is no load (i.e. I'm using IE and just vieweing webpages - like right now).
    So, I apologize for such a long post but I’ve spent countless hours researching and troubleshooting this problem and haven’t been able to figure out what the heck is wrong here. Am I missing something simple or do you guys think I have a SSD and/or problem with the machine itself? To say that any and all help would be greatly appreciated would be a massive understatement – I’m on the verge of pulling my hair out and I really need this machine working as quickly as possible!
    Please let me know if you have any suggestions and/or need additional information. Thanks in advance for your help!
    -Erik

    Lol gotcha about the drive as an option. I didn't go SSD with mine. Do you have the latest firmware on your drive? It is supposed to be v1.97. Just checking (ah and I see item 3 so guess so). Do you have the SSD drive toolbox software installed?
    http://downloadcenter.intel.com/SearchResult.aspx?​lang=eng&ProductFamily=Solid+State+Drives+and+Cach​...)
    Seems some useful tools are in there. I can't say much beyond that with the drive. Oh. Why does your fan always run at high speed? Can you describe that?  I mean, are we troubleshooting the right kind of issue? Is there anything else going on with your system? I saw about the reduced core speeds message. what are your system loads like? Anything causing high cpu utilization? Could be something other than the drive causing your low numbers and lockups.

  • Overheating and Lock ups with MSI TI4200 128DDR

      This card seems to overheat and lock up during game play.
      Does anyone have a solution?
    My system:
    P4 1.8Ghz 512K
    Intel D845WNL
    512 Mb PC133
    SB Live 5.1
    MSI TI4200 128DDR
    WIN 98SE
    300W PSU in a standard P4 case
    No overclocking
    Currently I play games with the case open and an external fan blowing into it.
    This as fixed the problem.
    I looking for a permanent solution.
    Should I get a better PSU?
    ...or should I just get an ATI 9700 Pro

    From what you said your PSU is handling the load but having a dual fan PSU will help temps by maybe a degree or two.
    You may not have adequate ventilation and need to ad some fans to your case but that may be the straw that breaks the camels back if you are on the edge as far as adequate power is concerned.
    There are quite a few folks that run with the side covers off but you have to keep in mind the ambient temperature where the PC is being used in any case.
    So far my experience with GF4 cards is they inherently run hot and can raise the temp in your case several degrees. Nature of the beast.
    Bottom line, better cooling and airflow is paramount and take a look at the heatsink, it may have been mounted poorly...this happens with any manufacturer at times and I usually re-mount it with a thermal paste of my preference. Keep in mind you will probably void your warranty with the manufacturer should you need to return or RMA the product.

  • Screen problems - black screen and lock-up (plus HDMI issues)

    Hi, I'm not sure if these are related to the same fundamental issue, but they are both serious problems that need resolution.
    I have a new mid-2012 MBPretina.  I am on all the latest updates (10.8.2).
    The first problem is the most recent, and the most serious problem.  Since I updated the Java a couple of days ago I've been experiencing random black screens and lock-ups.  Essentially, what happens is that sometimes when I perform an action (opening an app, clicking a link on a webpage, performing other kinds of in-app actions, etc.) the computer screen will go black.  About half the time I can, through my own memory, try keyboard combinations to quit or force quit the most recently used app (the one where the action was just performed), and I will get some glimpse of the underlying apps, while the menubar and other areas will remain black until I move a window on top of the black space.  Sometimes no key combinations work and I am forced to perform a hard restart with the power button.  This is a serious issue, obviously, since I will lose current work/progress in my apps.  I'm not sure if this is because of the new Java update, or has to do with something else, but it started happening shortly thereafter, over the last 2 days.  I work most of my waking day on my laptop, and this "black screen of death" has happened about 5 or 6 times a day.
    The second problem I have been experiencing since I starting using my MBPr with external HDMI displays in August/September.  The problem is that I will plug the MBPr into an HDMI display, the screen will temporaliy go black, and then bring me to the login screen (as if it's crashing, albeit softly).  This happens about 1 out of 4 times nowadays.
    How can I fix these problems, especially the first?

    UPDATE:
    Clearly there's a problem because a third of the way through a clean reinstallation from scratch it black screened again. Hmmmm.
    Now this is not good. Problem is I can't rule out potential updates from Apple that might have caused this either.
    The search for solutions continues.

  • Hangs, severe slowness and lock-ups running Firefox 27.0 / 28.0 on Windows XP / Is it possible to block plug-in container?

    Been experiencing severe slowness and lock-ups with Firefox of late, which ends with a sudden drop in memory usage and me having to repeatedly shut it down through Task Manager. I have created a new profile and disabled hardware acceleration. I have tried disabling all plug-ins and extensions, yet I noticed that at times (not always) plug-in container was still an active process, which I don't understand. Why would it be active when there are no enabled plug-ins? I also noticed that when plug-in container is not active (showing under Processes in Task Manager) I do not have this problem and Firefox runs normally? I need to block plug-in container. Please help.

    I have just tried on Windows 7 and used process explorer on that. I would expect the results to be displayed in a similar manner on Windows XP.
    Plugin-container is shown as being run from Firefox, and in turn if I mouse over or left click the line for plugin-container .exe then under ''command line'' it tells me what is running, in my case at this instance it is Flashplayer and so it displays
    .... \Macromed\Flash\NPSWF32_12_0_0_77.dll .... plugin ....
    It is identifying it is FlashPlayer
    The worry with your apparently unknown operation is that within the plugin-container it may be safe but if plugin-container is disabled maybe it could be malware and cause a problem.

  • My iMac locks up constantly in email. I click on one or two emails. Then when I click on another email, I get the spinning wheel and have to relaunch. Why does it get confused and lock up?

    My iMac locks up constantly in email. I click on one or two emails. Then when I click on another email, I get the spinning wheel and have to relaunch. Why does it get confused and lock up? Seems like it is stuck.

    10.6.8 here, MacBook Pro. Comcast. Mail  freeze ups. Occasional warnings to use "Log Out" under the Apple icon.
    Disk Repair run several times. Shows lots of Java  "remote" issues.
    I run Disk Repair several times, shows a lot of Java, "remote" issues.
    Restart don't know if it helps, I do it all the time. What's with quitting Mail but it doesn't quit, and why a separate maneuver to "Log Out".
    i

  • Problem with unlocking and locking the Materials in MARA using idocs.

    We are sending a inbound idoc from one cluster to the other to update the materials
    If the material is locked ( MARA-MATFI=x ) before it needs to be unlock it  ,update it and lock again .
    If its not locked ,we just need to update it and lock the material .
    When we are trying to implement this the materials are not getting locked at all times .
    the update inbound idoc is being sent to 5 clusters at a time .
    The same material is getting locked in some clusters and some it is not . (But the data is being updated in all the clusters )
    Can you please suggest me a solution or give me an idea where the problem would be lying.

    The client has a Keystone Server where alll the Master data is kept and there are 5 Production Servers .
    When ever there are any updates to the Materials they are first updated in the Keystone server .
    And with the help of a Batch Job they send inbound idocs to the 5 Production Servers.
    On the Production servers if the material in MARA  that needs to be updated is locked ,it needs to be unlocked updated and locked again .
    Hope i have  given u the clear idea of the scenario

  • I am trying to connect my new iMac to my Buffalo router.  I forgot my router password, so I reset it and it is working.  I can't figure out how to reset my router password and lock it on my iMac.

    I am connecting my new iMac to my Buffalo router.  I forgot my router password so I pushed the reset button and my computer was able to connect.  The problem is, I can't figure out how to set my new password and lock the router.  I went to the Buffalo website and downloaded the CD, as I can't find that either.  I can't open any of it because it says it is Windows and can't open it.  I am new to Apple!

    kellyfromdanville wrote:
    I am new to Apple!
    Ah, new to routers too.
    Perhaps it's best to have a local computer support person come set you up?
    To explain everything would require writing a book here.
    But this is what you want basically.
    Router, new Wireless N, firmware updated.
    1: Two accounts, one admin, one guest Internet access. Random +30 plus character lenght passwords each preferred.
    (guest password to max password length of any iDevices)
    2: Encryption: WPA2 AES. No Ping. No remote access. No MAC filtering. Visible.
    3: Guest access on devices and computers only.  Passwords written down and stored.
    4: OpenDNS preferred but not mandatory.
    If you get OpenDNS, you can log into their website for free and set parental controls on things like inappropriate sites for children. So whatever device is used on your network can't access a large portion of those sites (nothing is perfect) by most users who are not technical oriented.
    What your doing now is running the bare bones unsecure router which can be used harmfully against you.
    Even a Apple Airport router has to be very well secured. The defautl cd and out of the box setup is not a secure solution.

Maybe you are looking for