How To Rollback An Uncommitted DML In SQL*Plus (Doc ID 334358.1)

Last updated on JUNE 28, 2017

Applies to:

SQL*Plus - Version 8.1.7.4 to 10.2.0.1 [Release 8.1.7 to Oracle10g]
Information in this document applies to any platform.

Goal

 

In SQL*Plus, by default the DML (data manipulation language) transaction is committed to the database upon exit. 

Is there a  way to rollback the transaction upon exit or prior to exiting the SQL*Plus session if the commit has not been explicitly defined?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms