Tip1. DB lock and avoid DB lock
- When DB lock is occurred
- More than two sessions is trying to update, insert or delete same rows of data, DBMS does not decide which session is right or first-going session. Thus sessions just lock target rows of data each others and system looks stop.
- How to AVOID DB lock
- Design db objects( e.g. jobbed procedures, triggers ) do not approach same set of data
- If two more session approach to same set of data, using db sequences when select data.
- db sequence only go forward by defined interval. It can make that two more session select same rows of data.
Tip2. What is SYNONYM