<script type="text/javascript"> google_ad_client = "pub-5033576919944123"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-10-24: csdn.blog google_ad_channel = "8548491739"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
ACID (atomicity, consistency, isolation, and durability)
原子性,一致性,不相關性和持久性
ACID是一種縮寫,它代表了操作(也稱爲操作管理器)的四個主要性質:
原子性:在一個操作中涉及兩個或兩個以上獨立的信息,這些信息要麼全部提交,要麼一個也不提交。
一致性:操作要麼創建新的有效的數據狀態,要麼(如果發生任何錯誤的話),將所有數據返回到初始狀態。
不相關性:操作在沒有提交併不與別的任何操作發生任何關係。
持久性:即使發生錯誤重新啓動,保存過的已經提交的數據在正確狀態下仍然有效。
ACID概念在ISO/IEC 10026-1:1992第四節中有詳細描述。每個性質都有一個測試程序。一般說來,操作管理器或監視器被設計來實現ACID概念。在分佈式系統中,一種實現的方法的是兩階段提交(2PC),這樣可以確保所有相關的工作點提交的工作要麼完成,要麼一點也不進行,操作作滾回處理。
<script type="text/javascript"> google_ad_client = "pub-5033576919944123"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-10-24: csdn.blog google_ad_channel = "8548491739"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>