17.3 Session mode
Multi-threading implies that you need a multi-session environment. After all, the Oracle Server can only
execute one statement at a time for any given database session. Things can only run simultaneously if
they run in different sessions. Not all development environments allow for an unlimited amount of
sessions, so that a preference can be set (see chapter 20.2) that controls the amount of sessions that
PL/SQL Developer will use. This preference is called the Session mode, and can have one of the
following values:
Multi session - Each Test Window, SQL Window and Command Window will have its own
session, and another session will be used for compilations. This is the most flexible setting, and
will obviously lead to the largest amount of database sessions. Another possible disadvantage is
that updates in Window X will only be visible in Window Y after they are committed.
Dual session - The Test Windows, SQL Windows and Command Windows belonging to the same
connection will share one session, and another session will be used for compilations.
Disadvantage of this mode is that only one window can execute at a time for a given connection.
Single session - All windows and all compilations for the same connection will use the same
session, making transaction management difficult. The debugger is disabled in this mode. Only
use this setting if you are restricted to using one database session.