What is a deadlock in SQL? How can you prevent it?



What is a deadlock in SQL? How can you prevent it?..

Answer / hr@tgksolutions.com

A deadlock occurs when two or more transactions hold locks that the other needs, causing them to wait indefinitely.
Ways to prevent deadlocks:
• Use consistent lock ordering.
• Keep transactions short and fast.
• Use lower isolation levels when possible.
• Implement deadlock detection mechanisms.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How to define a variable to match a table column data type?

0 Answers  


How to drop a stored procedure in oracle?

0 Answers  


What are the different types of trigger and explain its various uses and functions?

0 Answers  


What is an Oracle Instance?

0 Answers  


How to create a table index?

0 Answers  


What is rich query?

0 Answers  


What is difference between cartesian join and cross join?

0 Answers  


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

0 Answers   MCN Solutions,


List out the types of joins.

0 Answers  


What is difference between Rename and Alias?

1 Answers  


How would you design a database for an e-commerce website?

1 Answers  


What are the execution control statements?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)