2.4. Disconnecting

There is a difference between “disconnecting from the database” and exiting the SQL*Plus application. When you use the EXIT command:

  1. Any database changes you submitted, such as INSERT statements, are committed; that is, they are permanently applied to the database. This is because SQL*Plus does an implicit commit when you end your session.

  2. Your point-to-point session is terminated.

  3. Finally, your SQL*Plus program exits and you are back to your desktop or command shell.

From within SQL*Plus, you do have the option to just DISCONNECT from your current database connection but keep the SQL*Plus application up. When you disconnect:

  1. Any database changes you submitted, such as INSERT statements, are committed; that is, they are permanently applied to the database.

  2. Your point-to-point session is terminated.

  3. You are still within the SQL*Plus application but you no longer have a connection to a database. From this point you can reconnect to the same database, connect to a different database, or exit from SQL*Plus with the exit command.

Whether you DISCONNECT or you EXIT, SQL*Plus does an implicit commit.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.181.209