IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Manage connection sessions

Last modified: 21 June 2023

In the Services tool window, you can view data sources, connection sessions, and session clients.

The Services tool window

In the picture above:

  1. Data source node.

  2. Disconnected session.

  3. Connected session.

  4. Session clients.

For information about the connection session managing options and toolbar controls, refer to Services tool window controls.

When you connect to a database server from the IDE, IntelliJ IDEA and the server establish a session to exchange information. The session is a wrapper that stores information about the connection (connected or disconnected), transaction control (automatic or manual), the DBMS_OUTPUT state for Oracle (enabled or disabled), and other settings.

A session has two states: connected and disconnected. When you run a query to a database or refresh an object state, the session connects. A small green circle indicates that communication between the IDE and a data source is active.

If you close IntelliJ IDEA and open it again, all your sessions will be available in the Services tool window, but they will be disconnected.

A session node may include a different number of session clients. A session client is any entity that needs to communicate with a database. It can be a query console; an SQL file; a table, a view or any other object opened in the data editor.

The following table includes basic actions that you can use to work with sessions.