9.17 V$SESSION
V$SESSION
displays session information for each current session.
Column | Datatype | Description |
---|---|---|
|
|
Session address |
|
|
Session identifier |
|
|
Session serial number. Used to uniquely identify a session's objects. Guarantees that session-level commands are applied to the correct session objects if the session ends and another session begins with the same session ID. |
|
|
Auditing session ID |
|
|
Address of the process that owns the session |
|
|
Oracle user identifier |
|
|
Oracle username |
|
|
Command in progress (last statement parsed). You can find the command name for any value n returned in this SELECT command_name
FROM v$sqlcommand
WHERE command_type = A value of |
|
|
Identifier of the user who owns the migratable session; the column contents are invalid if the value is For operations using Parallel Slaves, interpret this value as a 4-byte value. The low-order 2 bytes represent the session number and the high-order bytes represent the instance ID of the query coordinator. |
|
|
Address of the transaction state object |
|
|
Address of the lock the session is waiting for; NULL if none |
|
|
Status of the session:
|
|
|
Server type:
|
|
|
Schema user identifier |
|
|
Schema user name |
|
|
Operating system client user name |
|
|
Operating system client process ID |
|
|
Operating system machine name |
|
|
Client port number |
|
|
Operating system terminal name |
|
|
Operating system program name |
|
|
Session type |
|
|
Used with |
|
|
Used with |
|
|
SQL identifier of the SQL statement that is currently being executed |
|
|
Child number of the SQL statement that is currently being executed |
|
|
Time when the execution of the SQL currently executed by this session started; NULL if |
|
|
SQL execution identifier; NULL if |
|
|
Used with |
|
|
Used with |
|
|
SQL identifier of the last SQL statement executed |
|
|
Child number of the last SQL statement executed |
|
|
SQL execution start of the last executed SQL statement |
|
|
SQL execution identifier of the last executed SQL statement |
|
|
Object ID of the top-most PL/SQL subprogram on the stack; NULL if there is no PL/SQL subprogram on the stack |
|
|
Subprogram ID of the top-most PL/SQL subprogram on the stack; NULL if there is no PL/SQL subprogram on the stack |
|
|
Object ID of the currently executing PL/SQL subprogram; NULL if executing SQL |
|
|
Subprogram ID of the currently executing PL/SQL object; NULL if executing SQL |
|
|
Name of the currently executing module as set by calling the |
|
|
Hash value of the |
|
|
Name of the currently executing action as set by calling the |
|
|
Hash value of the |
|
|
Information set by the |
|
|
This contains a number that increases every time the session completes a call to the database and there has been an intervening select from a dynamic performance table. This column can be used by performance monitors to monitor statistics in the database. Each time the performance monitor looks at the database, it only needs to look at sessions that are currently active or have a higher value in this column than the highest value that the performance monitor saw the last time. All the other sessions have been idle since the last time the performance monitor looked at the database. |
|
|
Object ID for the table containing the row specified in |
|
|
Identifier for the data file containing the row specified in |
|
|
Identifier for the block containing the row specified in |
|
|
Current row being locked. This column is valid only if the session is currently waiting for another transaction to commit and the value of |
|
|
Oracle top level call number |
|
|
Time of logon |
|
|
If the session If the session |
|
|
This column has been replaced by the |
|
|
Indicates whether and to what extent transparent application failover (TAF) is enabled for the session:
See Also:
|
|
|
Indicates the transparent application failover method for the session:
|
|
|
Indicates whether the session is running in failover mode and failover has occurred ( |
|
|
Name of the session's current resource consumer group |
|
|
If |
|
|
If |
|
|
If |
|
|
If queued ( |
|
|
Client identifier of the session |
|
|
This column provides details on whether there is a blocking session:
|
|
|
Instance identifier of the blocking session. This column is valid only if |
|
|
Session identifier of the blocking session. This column is valid only if |
|
|
The final blocking session is the final element in the wait chain constructed by following the sessions that are blocked by one another starting with this session. In the case of a cyclical wait chain, one of the sessions in the wait chain will be chosen as the final blocker. This column provides details on whether there is a final blocking session:
|
|
|
Instance identifier of the final blocking session. This column is valid only if |
|
|
Session identifier of the blocking session. This column is valid only if |
|
|
A number that uniquely identifies the current or last wait (incremented for each wait) |
|
|
If the session is currently waiting, then the number of the resource or event for which the session is waiting. If the session is not in a wait, then the number of the resource or event for which the session most recently waited. |
|
|
If the session is currently waiting, then the resource or event for which the session is waiting. If the session is not in a wait, then the resource or event for which the session most recently waited. See Also: "Oracle Wait Events" |
|
|
Description of the first wait event parameter |
|
|
First wait event parameter (in decimal) |
|
|
First wait event parameter (in hexadecimal)Foot 1 |
|
|
Description of the second wait event parameter |
|
|
Second wait event parameter (in decimal) |
|
|
Second wait event parameter (in hexadecimal)Footref 1 |
|
|
Description of the third wait event parameter |
|
|
Third wait event parameter (in decimal) |
|
|
Third wait event parameter (in hexadecimal)Footref 1 |
|
|
Identifier of the class of the wait event |
|
|
Number of the class of the wait event |
|
|
Name of the class of the wait event |
|
|
If the session is currently waiting, then the value is
This column has been deprecated in favor of the columns |
|
|
If the session is currently waiting, then the value is the amount of time waited for the current wait. If the session is not in a wait, then the value is the amount of time since the start of the last wait. This column has been deprecated in favor of the columns |
|
|
Wait state:
|
|
|
Amount of time waited (in microseconds). If the session is currently waiting, then the value is the time spent in the current wait. If the session is currently not in a wait, then the value is the amount of time waited in the last wait. |
|
|
Value is interpreted as follows:
|
|
|
Time elapsed since the end of the last wait (in microseconds). If the session is currently in a wait, then the value is |
|
|
Service name of the session |
|
|
Indicates whether SQL tracing is enabled ( |
|
|
Indicates whether wait tracing is enabled ( |
|
|
Indicates whether bind tracing is enabled ( |
|
|
Frequency at which row source statistics are dumped in the trace files for each cursor:
|
|
|
Shows the value that, in the session, would be reported by |
|
|
Address of the creating process or circuit |
|
|
Serial number of the creating process or circuit |
|
|
Execution context identifier (sent by Application Server) |
|
|
Object number of the SQL translation profile |
|
|
The amount of tunable PGA memory (in bytes). Untunable memory is |
|
|
Indicates whether shard DDL is enabled in the current session ( This value is only relevant for the shard catalog database. |
|
|
The ID of the container to which the data pertains. Possible values include:
|
|
|
External name of the database user. For enterprise users, returns the Oracle Internet Directory DN. |
|
|
Indicates whether the session is connected to a PL/SQL debugger. Possible values:
|
Footnote 1
The P1RAW
, P2RAW
, and P3RAW
columns display the same values as the P1
, P2
, and P3
columns, except that the numbers are displayed in hexadecimal.
See Also:
-
Oracle Database Performance Tuning Guide for an example of using
V$SESSION
to help identify an object that is waiting for buffer busy waits -
Oracle Database Performance Tuning Guide for an example of using
V$SESSION
to determine which sessions are waiting for I/O -
Oracle Database PL/SQL Packages and Types Reference for more information on the
DBMS_APPLICATION_INFO
package