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 閱讀(346) 評論(0)  編輯  收藏
          主站蜘蛛池模板: 河东区| 龙胜| 新闻| 阆中市| 西青区| 吉木萨尔县| 谷城县| 湟源县| 叙永县| 米泉市| 本溪市| 雷州市| 威信县| 平遥县| 宿州市| 德令哈市| 封开县| 壤塘县| 兴宁市| 宜城市| 芮城县| 彰化县| 榆林市| 织金县| 凤阳县| 阿克苏市| 合作市| 耒阳市| 龙江县| 金昌市| 绥芬河市| 南郑县| 万荣县| 永康市| 西畴县| 怀化市| 屏边| 南乐县| 老河口市| 措勤县| 文安县|