Purpose of Rollback and commit statements

          

Purpose of Rollback and commit statements.

<<Previous  Next>>

Oracle - Explain the purpose of Rollback and commit statements. - Feb 23, 2010 at 11:00 PM by Rajmeet Ghai

Explain the purpose of Rollback and commit statements.  

ROLLBACK: Rollback is used to rollback or undo all the work done in the current transaction.
Example:
The example below undoes all changes committed until the save point.
ROLLBACK TO SAVEPOINT savepoint_name

COMMIT: Commit is used to save the work done in the current transaction.
Example:
The example below saves all the work done in the transaction
COMMIT WORK

Oracle - Explain the purpose of Rollback and commit statements. - April 10, 2009 at 11:00 AM

Explain the purpose of Rollback and commit statements.  

Rollback and commit statement controls database transactions. Both statements ensure the data consistency. They allow users to preview the data before making permanent. 

Also read

Oracle transaction

The parser scans the statement and breaks it into logical units such as keywords, identifiers and operators, A query or a sequence tree is built using the units above. This is done to transform the source data into the format required by the result set.............

What are transaction isolation levels supported by Oracle?

READ COMMITTED: If row locks are obtained by a certain transaction, then any other transaction that contains DML needs to wait until the row locks have been released by that particular transaction.............

What are the uses of Rollback Segment?

Rollback segments undo changes when a transaction is rolled back, they also ensure that transactions leave the uncommitted changes unnoticed..............

What is Rollback Segment in oracle?

Rollback Segment in oracle is used to store "undo" information temporarily..........

<<Previous  Next>>



Write your comment - Share Knowledge and Experience


 

 
Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring