1. 程式人生 > >187.Which two statements describe good practices for an application developer to reduce locking conf

187.Which two statements describe good practices for an application developer to reduce locking conf

187.Which two statements describe good practices for an application developer to reduce locking
conflicts in Oracle database? (Choose two.)
A.Avoid coding unnecessary long-running transactions.
B.Allow the database to handle locks in default locking mode.
C.Always explicitly code the locks as per the requirement of the application.
D.Allow escalation of row locks to block locks if too many row locks cause problem.
答案:AB
A:正確,減小事務造成鎖的時間
B:正確,使用oracle內部機制來進行處理這些
C:錯誤,這個只是加重了鎖
D:錯誤,如果升級到塊鎖那鎖的範圍更大