The EXIT command is used to terminate a SQL*Plus session and return to the operating system:
EXIT [SUCCESS|FAILURE|WARNING|value|user_variable|:bind_variable] [COMMIT|ROLLBACK]
where:
Returns a success status. The exact value of success is operating-system-dependent. This is the default setting, and applies if no other return value is specified.
Returns a warning status. The exact value of a warning is operating-system-dependent.
Returns a failure status. The value of a failure is operating-system-dependent.
Returns an arbitrary value as the status.
Returns the value of the specified user variable as the status. You can also specify SQL.SQLCODE here, to return the status of the most recently executed SQL statement.
Returns the value of the specified bind variable as the status.
Causes SQL*Plus to automatically roll back any open transaction before exiting.