Oracle 11gR1
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 |
|
| 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 |
|
| 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 |
|
| Signature used when the |
|
| SQL identifier of the top level SQL statement |
|
| Indicates what phase of operation the top level SQL statement was in |
|
| Numerical 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 |
|
| 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 |
|
| 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 |
|
| If If |
|
| 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 |
|
| 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 |
|
| 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. |
|
| 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 ( |
|
| 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 |
No comments:
Post a Comment