My Oracle Support Banner

How to Exit from SQL*Plus with a Rollback to Prevent Automatic Commit (Doc ID 270140.1)

Last updated on JANUARY 31, 2022

Applies to:

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


After executing an INSERT, UPDATE, or DELETE command, SQL*Plus automatically
saves all pending changes as soon as you enter the EXIT command. This is regardless of AUTOCOMMIT setting, when sqlplus exits a commit is accomplished.

How to exit sqlplus with a rollback?


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.