Search notes:

SQL*Plus: EXIT

exit terminates an SQL*Plus session.
Using set exitcommit to on or off specifies if the current transaction will be committed or rolled back.

See also

whenever sqlerror exit …
quit

Index