Identification of sessions
At a given time, each session is identified by a session id or SID.
Since the SID is reused, a past session is identified by the combination of the SID and a serial number.
The functions
current_session_id and
current_session_serial in
dbms_debug_jdwp provide a session's id (SID) and serial#.
See also
Information, data and metadata that is shared among sessions is stored in the
Shared Pool (metadata) and
buffer cache (data)
The
SQL*Plus command
connect disconnects the current session and starts a new one.
v$mystat records statistical data about the session that accesses it.
Similarly,
v$sesstat provides these statics for all current session.
development/databases/Oracle/installed/dynamic-performance-views/session/blockers displays the blocker sessions for each blocked session.
dbms_pipe allows two or more sessions to communicate with each other.
Resources that are shared among sessions are protected by
latches from being corrupted.
v$sess_time_model reports accumulated times for various categories of waiting operations.
Other temporary data which is only required during the livetime of a session might be stored in a
temporary tablespace.