What is the ACID principal?

By: Ramlak Emailed: 1609 times Printed: 2077 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

The ACID principal is the foundation which has guided the implementation of transactions in relational databases. This acronym stands for the following:

  • Atomicity
  • Consistency
  • Isolation
  • Durability

Atomicity

The term atomicity applies to the ability to group multiple database updates into a single transaction that can be treated as an atomic update. The term atomic is derived from the Greek word for the smallest indivisible element. An atomic transaction is indivisible, since the failure of the one of the updates in the group is considered a failure for the whole group of updates. Either all of the updates will be completed or none be completed, and the transaction will be rolled back, leaving the database in the state it was in before the transaction started.

Consistency

The term consistency applies to the various rules associated with the data in the transactions. These rules may apply to relationships between the tables in the update or to rules concerning the primary key for a table. These rules may be broken during the transaction, but the inconsistent data will not e visible to other users. Once the transaction is complete, the rules must be valid and the database must be in a consistent state.

Isolation

A given transaction should appear as though it is running alone in the database. The work of other users must be coordinated with other transactions to maintain this isolated view. The work of other transactions is invisible to the user in a transaction.

Durability

The work of a committed transaction is guaranteed to persist and remain in the database even in the event of various system failures. A transaction is not considered durable until it commits. A system failure entails a database recovery, which includes a rollback procedure for all uncommitted transactions, ultimately leaving the database in a consistent state.


JDBC Home | All JDBC Tutorials | Latest JDBC Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Ramlak
While Loop in VB.net
For Each…Next Loop in VB.net
For Loop in VB.net
Do Loop in VB.net
Setting Up SSL on Tomcat
Unicode and UTF-8 in C
Sample program to demonstrate the use of ActionListener
java.io.IOException: HTTPS hostname wrong: should be
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
NotifyUtil::java.net.ConnectException: Connection refused: connect
'LINK.EXE' is not recognized as an internal or ext
Using Transactions in JDBC
What is the ACID principal?
How connection pooling works in Java and JDBC
A simple JDBC application sample code

More Tutorials in JDBC
TEXT datatype SPLIT in MSSQL - to solve the 8000 limit set by varchar
Import TEXT to TABLE in MSSQL
What is Referential Integrity in databases?
Handling CSV in Stored Procedures
setSavepoint and releaseSavepoint Example in Java
Calling a Stored Procedure from JDBC in Java
java.lang.NoClassDefFoundError and java.lang.NoSuchMethodError
Creating Database Connection Pool in Tomcat 5.0 and Tomcat 5.5 for MySQL and Java
JDBC Basics and JDBC Components
SELECT Statements
WHERE Clauses in SQL
Joins example in SQL
Common SQL Commands
Result Sets, Cursors and Transactions in SQL
Stored Procedures example in SQL

More Latest News
Most Viewed Articles (in JDBC )
A simple JDBC application sample code
How connection pooling works in Java and JDBC
Using JDBC to connect to MySQL from Java Program
JDBC Components
What is the ACID principal?
Creating Database Connection Pool in Tomcat 5.0 and Tomcat 5.5 for MySQL and Java
Using the DriverManager Class vs Using a DataSource Object for a connection
Creating Database Tables Using ANT
PreparedStatement Example in Java
java.lang.NoClassDefFoundError and java.lang.NoSuchMethodError
WHERE Clauses in SQL
Common SQL Commands
Result Sets, Cursors and Transactions in SQL
Handling CSV in Stored Procedures
TEXT datatype SPLIT in MSSQL - to solve the 8000 limit set by varchar
Most Emailed Articles (in JDBC)
How connection pooling works in Java and JDBC
What is the ACID principal?
Stored Procedures example in SQL
Using the DriverManager Class vs Using a DataSource Object for a connection
Data Access Technologies in Java
WHERE Clauses in SQL
Common SQL Commands
Result Sets, Cursors and Transactions in SQL
Creating Database Tables Using ANT
setSavepoint and releaseSavepoint Example in Java
What is Referential Integrity in databases?
Using JDBC to connect to MySQL from Java Program
What is JDBC?
JDBC and Tomcat context settings
Creating Database Connection Pool in Tomcat 5.0 and Tomcat 5.5 for MySQL and Java