Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Rollback (data management)

From Wikipedia, the free encyclopedia
Database operation that restores a previous state

Indatabase technologies, arollback is an operation which returns the database to some previous state. Rollbacks are important for databaseintegrity, because they mean that the database can be restored to a clean copy even after erroneous operations are performed.[1] They are crucial for recovering from database server crashes; by rolling back anytransaction which was active at the time of the crash, the database is restored to a consistent state.

The rollback feature is usually implemented with atransaction log, but can also be implemented viamultiversion concurrency control.

Cascading rollback

[edit]

A cascading rollback occurs in database systems when a transaction (T1) causes a failure and a rollback must be performed. Other transactions dependent on T1's actions must also be rollbacked due to T1's failure, thus causing a cascading effect. That is, one transaction's failure causes many to fail.

Practical database recovery techniques guarantee cascadeless rollback, therefore a cascading rollback is not a desirable result. Cascading rollback is scheduled by dba.

SQL

[edit]

SQL refers to Structured Query Language, a kind of language used to access, update and manipulate database.InSQL,ROLLBACK is a command that causes all data changes since the lastSTART TRANSACTION orBEGIN to be discarded by therelational database management systems (RDBMS), so that the state of the data is "rolled back" to the way it was before those changes were made.[2]

AROLLBACK statement will also release any existingsavepoints that may be in use.

In most SQL dialects,ROLLBACKs are connection specific. This means that if two connections are made to the same database, aROLLBACK made in one connection will not affect any other connections. This is vital for properconcurrency.

Usage outside databases

[edit]

Rollbacks are not exclusive to databases: anystatefuldistributed system may use rollback operations to maintainconsistency. Examples of distributed systems that can support rollbacks includemessage queues andworkflow management systems. More generally, any operation that resets a system to its previous state before another operation or series of operations can be viewed as a rollback.

See also

[edit]

Notes

[edit]
  1. ^"Database Rollback – What and Why". 3 November 2019. Retrieved16 April 2022.
  2. ^Ben Richardson (26 December 2019)."Rollback SQL: Rolling back transactions via the ROLLBACK SQL query". Retrieved16 April 2022.

References

[edit]
Types
Concepts
Objects
Components
Functions
Related topics
Types
Technology
General
Features
Mechanism
Memetics
RSS
Social
Standard
Form
Media
Alternative media
Micromedia
Related
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Rollback_(data_management)&oldid=1337077918"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp