ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

When does deadlock happen between sessions & how do we get rid of it?

user-image
تم إضافة السؤال من قبل mazin elfaki , Application Software Developer , medica import and export Co. Ltd
تاريخ النشر: 2017/02/17
Anish Jose
من قبل Anish Jose , Oracle Consultant , First AbuDhabi Bank

A deadlock occurs when two or more sessions are waiting for data locked by each other, resulting in all the sessions being blocked. In the case of Oracle, the database engine automatically detects and resolves deadlocks by rolling back the statement associated with the transaction that detects the deadlock. Typically, deadlocks are caused by poorly implemented locking in application code.

ayesha nazir
من قبل ayesha nazir , Expereince

deadlock accure with sessions which has been running a SELECT for an hourand session .that is running a single-row UPDATE , and both have the same DEADLOCK PRIORITY.

and we avoide this by Access Objects in the Same Orders, Avoid User Interaction in Transactions and Use Bound Connections.

 

salad Ahmed nur
من قبل salad Ahmed nur , IT SECTOR , IT COMPANY

A deadlock occurs when two or more sessions are waiting for data locked by each other, resulting in all the sessions being blocked. Oracle automatically detects and resolves deadlocks by rolling back the statement associated with the transaction that detects the deadlock. Typically, deadlocks are caused by poorly implemented locking in application code. This article shows the steps necessary to identify the offending application code when a deadlock is detected.

Shahzeb Mokarram
من قبل Shahzeb Mokarram , Software Developer , Sport Ghornatah

 

accepte

A deadlock occurs when two separate transactions each want different resources and neither will release the one that they have so that the other can run

ANKUSH CHAWLA
من قبل ANKUSH CHAWLA , Technical Architect- Oracle DBA , Novartis HealthCare Pvt. Ltd

In a database, a deadlock is a situation in which two or more sessions are waiting for one another to give up locks on same data.

Assume a transaction A is holding block A and waiting for block B ,and a transaction B holding block B and waiting for Block AOracle detects the deadlock and resolve it by rollback one transactions and reports in Alert log file

Amar Nath
من قبل Amar Nath , 76 Server , Infrastructure

  • Locking in the Database Engine
  • Customizing Locking and Row Versioning
  • Lock Modes
  • Lock Compatibility
  • Row Versioning-based Isolation Levels in the Database Engine
  • Controlling Transactions (Database Engine)

Hidayat Khan
من قبل Hidayat Khan , Database Administrator , Provincial Assembly Khyber pakhtunkhwa

When two or more transactions requests for data which are locked by the another transaction and thus both transactions goes in waiting.

Arvind RX
من قبل Arvind RX , IT Specialist , IBM

Locking is most common mechanism in oracle database engine. When a user starts his transaction say an update he locks the table row, say at the same time another user also tries deadlock happens. Oracle then triggers ora-60 deadlock error. One of the session either has to timeout or need to be killed

MOHAMMAD SAJADULLA KHAN PAMUDURTHI
من قبل MOHAMMAD SAJADULLA KHAN PAMUDURTHI , Junior engineer-Product support , HCL Technologies

At this point, neither process can proceed; we have a deadlock. ... If a deadlock occursbetween session A, which has been running a SELECT for ... in the deadlock, and then set about trying to ensure that it does not occur again. .... Locks here will mainly be key, RID, page or table, with more exotic range ..

Jamshed  Ahmed
من قبل Jamshed Ahmed , Database Manager , Virtual Remittance Gateway PVT Ltd

Dead Lock Occur when user session access or performing update/inser on same object. It is autometically resolved...

Wajid  Khan
من قبل Wajid Khan , Oracle DBA , Precise Technology Consultant

A deadlock occurs when two or more sessions are waiting for data locked by each other, resulting in all the sessions being blocked. Oracle automatically detects and resolves deadlocks by rolling back the statement associated with the transaction that detects the deadlock.

المزيد من الأسئلة المماثلة