EXIT
EXIT [SUCCESS | FAILURE | WARNING |n
|variable
[COMMIT | ROLLBACK]
Commits all pending transactions (unless AUTOCOMMIT is set to OFF), passes a return code to the operating system, and exits SQL*Plus.
Exits normally with a return code indicating success. This is the default.
Exits with a return code indicating failure.
Exits with a return code indicating a warning.
Exits with a specific numeric return code.
Exits with a user-defined or system variable whose value will be used as the return code.
Commits pending changes to the database before exiting.
Rolls back pending changes before exiting.