Sun River
          Topics about Java SE, Servlet/JSP, JDBC, MultiThread, UML, Design Pattern, CSS, JavaScript, Maven, JBoss, Tomcat, ...
          posts - 78,comments - 0,trackbacks - 0

          --) Dirty Read??
          Dirty reads occur when transactions are allowed to see uncommitted changes to the data. In other words, changes made inside a transaction are visible outside the transactionbefore it is committed. If the changes are rolled back instead of being committed, it is possible for other transactions to have done work based on incorrect, transient data.

          --) Nonrepeatable reads occur when:
          ?a) Transaction A reads a row

          ?b)Transaction B changes the row

          ?c)Transaction A reads the same row a second time and gets different results


          --) Phantom reads occur when:??
          a)Transaction A reads all rows that satisfy a WHERE condition???
          b)Transaction B inserts an additional row that satisfies the same condition???
          c)Transaction A reevaluates the WHERE condition and picks up the additional phantom row

          --) READ_UNCOMMITTED?
          By setting the isolation level to you are saying that you won't have a problem with reading data that might get rolled back. If this is unacceptable, use a more restrictive isolation level.

          --) What is the default transaction isolation level ?
          A. READ_UNCOMMITTED
          B. READ_COMMITTED
          C. REPEATABLE_READ
          D. SERIALIZABLE
          E. None of Above

          Note:The Isolation level depends on the database in use.

          1. TRANSACTION_READ_UNCOMMITTED - allows transactions to see uncommitted changes to the data. This means that dirty reads, nonrepeatable reads, and phantom reads are possible.
          2. TRANSACTION_READ_COMMITTED - means that any changes made inside a transaction are not visible outside the transaction until the transaction is committed. This prevents dirty reads, but nonrepeatable reads and phantom reads are still possible.
          3. TRANSACTION_REPEATABLE_READ - disallows dirty reads and nonrepeatable reads. Phantom read are still possible.
          4. TRANSACTION_SERIALIZABLE - specifies that dirty reads, nonrepeatable reads, and phantom reads are prevented.
          posted on 2006-09-18 11:08 Sun River 閱讀(344) 評論(0)  編輯  收藏
          主站蜘蛛池模板: 平乡县| 枣强县| 罗源县| 军事| 西峡县| 河津市| 灵山县| 兴安县| 汝州市| 巴东县| 荆门市| 三门县| 永定县| 旌德县| 大宁县| 乃东县| 阿巴嘎旗| 松溪县| 涞源县| 大关县| 葫芦岛市| 祁连县| 藁城市| 桑日县| 柏乡县| 辉县市| 修武县| 米林县| 岳普湖县| 神农架林区| 延吉市| 咸丰县| 哈巴河县| 星子县| 伊川县| 安阳市| 获嘉县| 迁安市| 琼结县| 兰溪市| 盖州市|