Commits pending changes to the database and logs the current username out of Oracle Database, but does not exit SQL*Plus.
Use DISCONNECT within a script to prevent user access to the database when you want to log the user out of Oracle Database but have the user remain in SQL*Plus. In SQL*Plus command-line, use EXIT or QUIT to log out of Oracle Database and return control to your computer's operating system.
Your script might begin with a CONNECT command and end with a DISCONNECT, as shown later.
SELECT LAST_NAME, DEPARTMENT_NAME FROM EMP_DETAILS_VIEW;
SET INSTANCE FIN2