7.7 V$ACTIVE_SESSION_HISTORY
V$ACTIVE_SESSION_HISTORY
displays sampled session activity in the database.
It contains snapshots of active database sessions taken once a second. A database session is considered active if it was on the CPU or was waiting for an event that didn't belong to the Idle
wait class. Refer to the V$EVENT_NAME
view for more information on wait classes.
This view contains one row for each active session per sample and returns the latest session sample rows first. A majority of the columns describing the session in the active session history are present in the V$SESSION
view.
Column | Datatype | Description |
---|---|---|
|
|
ID of the sample |
|
|
Time at which the sample was taken |
|
|
Time at which the sample was taken in UTC (Coordinated Universal Time) time zone |
|
|
Time in microseconds since the last sample was taken |
|
|
Indicates whether this sample has been flushed or will be flushed to the Automatic Workload Repository ( |
|
|
Session identifier; maps to |
|
|
Session serial number (used to uniquely identify a session's objects); maps to |
|
|
Session type:
|
|
|
Reserved for future use |
|
|
Oracle user identifier; maps to |
|
|
SQL identifier of the SQL statement that the session was executing at the time of sampling |
|
|
Indicates whether the SQL identifier in the |
|
|
Child number of the SQL statement that the session was executing at the time of sampling |
|
|
Indicates what phase of operation the SQL statement was in; maps to See Also: "V$SESSION" for information on interpreting this column |
|
|
SQL command name |
|
|
Signature used when the |
|
|
SQL identifier of the top level SQL statement |
|
|
Indicates what phase of operation the top level SQL statement was in |
|
|
Indicates whether the SQL plan of the sampled database session is a resolved adaptive plan or not |
|
|
Numerical representation of the complete SQL plan for the cursor being executed by this session |
|
|
Numeric representation of the SQL plan for the cursor. This information might not be available for all session samples. |
|
|
SQL plan line ID |
|
|
Plan operation name |
|
|
Plan operation options |
|
|
SQL execution identifier |
|
|
Time when the execution of the SQL started |
|
|
Object ID of the top-most PL/SQL subprogram on the stack; NULL if there is no PL/SQL subprogram on the stack. Maps to DBA_OBJECTS.OBJECT_ID. |
|
|
Subprogram ID of the top-most PL/SQL subprogram on the stack. Maps to DBA_OBJECTS.DATA_OBJECT_ID. |
|
|
Object ID of the currently executing PL/SQL subprogram. Maps to DBA_OBJECTS.OBJECT_ID. |
|
|
Subprogram ID of the currently executing PL/SQL object; NULL if executing SQL. Maps to DBA_OBJECTS.DATA_OBJECT_ID. |
|
|
Query coordinator instance ID. This information is only available if the sampled session is a parallel query slave. For all other sessions, the value is |
|
|
Query coordinator session ID. This information is only available if the sampled session is a parallel query slave. For all other sessions, the value is |
|
|
Query coordinator session serial number. This information is only available if the sampled session is a parallel query slave. For all other sessions, the value is |
|
|
Reserved for internal use |
|
|
If If See Also: Oracle Wait Events |
|
|
Identifier of the resource or event for which the session is waiting or for which the session last waited. Interpretation is similar to that of the |
|
|
Number of the resource or event for which the session is waiting or for which the session last waited. Interpretation is similar to that of the |
|
|
Sequence number that uniquely identifies the wait (incremented for each wait) |
|
|
Text of the first additional parameter |
|
|
First additional parameter |
|
|
Text of the second additional parameter |
|
|
Second additional parameter |
|
|
Text of the third additional parameter |
|
|
Third additional parameter |
|
|
Wait class name of the event for which the session was waiting at the time of sampling. Interpretation is similar to that of the |
|
|
Wait class identifier of the event for which the session was waiting at the time of sampling. Interpretation is similar to that of the |
|
|
Total wait time for the event for which the session last waited if the session was on the CPU when sampled; Note: Whether or not |
|
|
Session state:
|
|
|
If If a wait event lasted for more than a second and was caught waiting in more than one session sample row, then the actual time spent waiting for that wait event will be populated in the last of those session sample rows. At any given time, this information will not be available for the latest session sample. |
|
|
Status of the blocking session:
|
|
|
Session identifier of the blocking session. Populated only if the blocker is on the same instance and the session was waiting for enqueues or a "buffer busy" wait. Maps to |
|
|
Serial number of the blocking session |
|
|
Instance number of the blocker shown in |
|
|
Indicates whether the information about |
|
|
Object ID of the object that the session is referencing. This information is only available if the session was waiting for application, cluster, concurrency, and user I/O wait events. Maps to |
|
|
File number of the file containing the block that the session is referencing. This information is only available if the session was waiting for cluster, concurrency, and user I/O wait events. Maps to |
|
|
ID of the block that the session is referencing. This information is only available if the session was waiting for cluster, concurrency, and user I/O wait events. Maps to |
|
|
Row identifier that the session is referencing. This information is only available if the session was waiting for cluster, concurrency, and user I/O wait events. Maps to |
|
|
Oracle top level call number |
|
|
Oracle top level call name |
|
|
Consumer group ID |
|
|
Transaction ID that the session was working on at the time of sampling. |
|
|
Remote instance identifier that will serve the block that this session is waiting for. This information is only available if the session was waiting for cluster events. |
|
|
Time model information |
|
|
Indicates whether the session was doing connection management at the time of sampling ( |
|
|
Indicates whether the session was parsing at the time of sampling ( |
|
|
Indicates whether the session was hard parsing at the time of sampling ( |
|
|
Indicates whether the session was executing SQL statements at the time of sampling ( |
|
|
Indicates whether the session was executing PL/SQL at the time of sampling ( |
|
|
Indicates whether the session was executing inbound PL/SQL RPC calls at the time of sampling ( |
|
|
Indicates whether the session was compiling PL/SQL at the time of sampling ( |
|
|
Indicates whether the session was executing Java at the time of sampling ( |
|
|
Indicates whether the session was doing bind operations at the time of sampling ( |
|
|
Indicates whether the session was closing a cursor at the time of sampling ( |
|
|
Indicates whether the session is loading in sequence (in sequence load code) ( |
|
|
Indicates whether the session was querying the In-Memory Column Store (IM column store) at the time of sampling ( |
|
|
Indicates whether the session was populating the IM column store at the time of sampling ( |
|
|
Indicates whether the session was prepopulating the IM column store at the time of sampling ( |
|
|
Indicates whether the session was repopulating the IM column store at the time of sampling ( |
|
|
Indicates whether the session was trickle repopulating the IM column store at the time of sampling ( |
|
|
Indicates whether encryption or decryption of a tablespace occurred at the time of sampling ( |
|
|
Indicates whether the session is executing capture code ( |
|
|
Indicates whether the session is executing replay code ( |
|
|
Indicates whether the session is being captured ( |
|
|
Indicates whether the session is being replayed ( |
|
|
Indicates whether the session is holding a synchronization token ( |
|
|
Hash that identifies the Service; maps to |
|
|
Name of the operating system program |
|
|
Name of the executing module when sampled, as set by the |
|
|
Name of the executing module when sampled, as set by the |
|
|
Client identifier of the session; maps to |
|
|
Client's operating system machine name |
|
|
Client port number |
|
|
Execution context identifier (sent by Application Server) |
|
|
If the session is being captured or replayed, then |
|
|
If the session is being captured or replayed, then |
|
|
Time interval (in microseconds) over which |
|
|
Amount of time this session spent on CPU over the last |
|
|
Amount of time spent by this session in database calls over the last |
|
|
Time interval (in microseconds) since the last time this session was sampled or created, over which the next five statistics are accumulated |
|
|
Number of read I/O requests made by this session over the last |
|
|
Number of write I/O requests made by this session over the last |
|
|
Number of I/O bytes read by this session over the last |
|
|
Number of I/O bytes written by this session over the last |
|
|
Number of I/O bytes sent over the I/O interconnect over the last |
|
|
Number of read bytes through the buffer cache |
|
|
Amount of PGA memory (in bytes) consumed by this session at the time this sample was taken |
|
|
Amount of TEMP memory (in bytes) consumed by this session at the time this sample was taken |
|
|
The database ID of the pluggable database (PDB) |
|
|
The ID of the container to which the data pertains. Possible values include:
|
|
|
Database operation name. If the type is SQL, the |
|
|
Database operation execution identifier for the current execution. If the type is SQL, the |
See Also:
-
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_APPLICATION_INFO.SET_MODULE
procedure -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_APPLICATION_INFO.SET_ACTION
procedure