I would like to know different isolation levels with respect to commit, and would also like to know about row-level and table-level lock.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
ANSI/ISO SQL defines four isolation levels:
- serializable
- repeatable read
- read committed
- read uncommitted
According to Oracle's Database Development Guide, chapter 6.6.1: Transaction Interaction and Isolation Level, you can request either isolation level READ COMMITTED
(the default) or SERIALIZABLE
.
Please note, however, that what Oracle call SERIALIZABLE
is actually snapshot isolation.
For more information about row-level and table-level locks, see Overview of the Oracle Database Locking Mechanism and Locking tables explicitly.
回答2:
There are four isolation levels
- Read uncommitted or Read Dirty Buffers
- Read Committed or repeated reads
- Phantom reads
- Serializable