Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
5 user(s) are online (5 user(s) are browsing encyclopedia)

Members: 0
Guests: 5

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

Database transaction

A database transaction is a unit of interaction with a database management system or similar system that is treated in a coherent and reliable way independent of other transactions. Ideally, a database system will guarantee all of the ACID properties for each transaction. In practice, these properties are often relaxed somewhat to provide better performance.

In Database products the ability to handle transactions allows the user to ensure that data integrity of a database is maintained.

A single transaction might require several queries, each reading and/or writing information in the database. When this happens it is usually important to be sure that the Database is not left with only some of the queries carried out. For example, when doing a money transfer, if the money was debited from one account, it is important that it also be credited to the depositing account. Also, transactions should not interfere with each other. For more information about desirable transaction properties, see ACID.

A simple transaction is usually issued to the database system in a language like SQL in this form:

# Begin the transaction # Execute several queries (although any updates to the database aren t actually visible to the outside world yet) # Commit the transaction (updates become visible if the transaction is successful)

If one of queries fails the database system may Rollback (data management) either the entire transaction or just the failed query. This behaviour is dependent on the DBMS in use and how it is set up. The transaction can also be rolled back manually at any time before the commit.

Transactions are also called LUWs ( Logical Units of Work ) in some systems.

= Transactional databases =

Databases that support transactions are called transactional databases. Most modern databases (such as Firebird (database server), Mimer SQL, PostgreSQL, MySQL, Microsoft SQL Server and Oracle database) fall into this category.

== See also ==
  • Distributed transaction
  • Nested transaction
  • ACID properties
  • Atomic transaction
  • ==External links==
  • [http://c2.com/cgi/wikiTransactionProcessing Transaction Processing]